Skip to Content
Menu
This question has been flagged
1 Reply
1984 Views

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
Discard
Best Answer

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
Discard
Author

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?

Related Posts Replies Views Activity
3
May 19
5660
1
Dec 24
1575
0
Oct 22
659
0
Oct 22
379
1
Jul 20
3863