Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
1368 Weergaven

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?



Avatar
Annuleer

I’m having the same issue in version 16. I have a product with variants. I add a certain quantity of that product to the purchase order and it behaves as expected. The problem is that when I try to add another quantity of the same product with the same variant, it gets added to the purchase order as a new item. The behavior I’m expecting is for the quantity to update under the same item instead of duplicating it. Any suggestions?

Thanks in advance.

Auteur Beste antwoord

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.

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur

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