Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1246 Widoki

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?



Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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