Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2365 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Автор

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 Відповіді Переглядів Дія
3
трав. 19
6118
1
груд. 24
1903
0
жовт. 22
659
0
жовт. 22
379
1
лип. 20
4212