İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2176 Görünümler

Hi,

I'm familiar with creating products using a custom website form but cannot add to cart automatically after product is created.
What I would like is when I click submit button and product is created, same product created should be added to cart automatically and finally redirect me to pay now page in odoo v12 ecommerce.

Avatar
Vazgeç
En İyi Yanıt

It is possible to automatically add a product to the shopping cart after it is created using Odoo v12 e-commerce. To do this, you will need to create a custom website form and enable the "Add Product to Cart Automatically" option in the Form Editor. Once enabled, the product will be added to the customer's cart automatically when they hit the submit button. You can also set up a redirect URL once the product is added to the cart so that the customer is sent to the Payment page.

Avatar
Vazgeç
Üretici

I created a custom webform and enabled the "Add to Cart" in the customize menu of the shop but it didn't work. Is there any way this can be done from code side without manually clicking the add to cart button?

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
May 19
5901
1
Ara 24
1723
0
Eki 22
659
0
Eki 22
379
1
Tem 20
4003