Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1987 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor

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?

Publicaciones relacionadas Respuestas Vistas Actividad
3
may 19
5663
1
dic 24
1576
0
oct 22
659
0
oct 22
379
1
jul 20
3864