Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1231 มุมมอง

Hi I'm trying to use odoo e-commerce platform and I have a question.

 when a product is customizable whenever I click on add-to-cart button after I confirm my choices for the  attributes of the product (color, size,…. etc) and needed quantities I find a new line each time I click add-to-cart for the same product with the same attributes  in my cart . I expected another behavior , it should update the quantity of the product I already added without creating new lines.

 
Is there a configuration for this behavior to be achieved?



อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I managed to achieve the desired behviour.


I realized that the add-to-cart button works as I was expecting but the button was creating different lines of the same product in the cart because one or more of the attributes used in the product was set as custome value for example:


Let's say you created a new product (e.g 'jacket') and you specified that this jacket comes in different colors so you specified an attribute(e.g color) as 'varying' and specified this value as custome value now when you add two products with the same color value ('varying') the add-to-cart button will add a line for each product even though technically they're the same variant.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Mohammad.


Yes, there is a way to customize the behavior of the ‘Add to Cart’ button in Odoo. Here are the steps you can follow:


Go to 'Website' ‣ 'Configuration' ‣ 'Settings'.

Under the 'Shop - Checkout Process section', look for 'Add to Cart'.

Select one of the options available.


Hope this helps.

Regards,
Maciej Burzymowski

อวตาร
ละทิ้ง
ผู้เขียน

Thanks a lot for your quick response .
I managed to acheve the desired behaviour using another way.

I posted my solution in the posts answers.

Best Regards