تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2097 أدوات العرض

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?

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
مايو 19
5806
1
ديسمبر 24
1663
0
أكتوبر 22
659
0
أكتوبر 22
379
1
يوليو 20
3957