I want to update products in cart to all have the same attribute

Before adding product to cart, customers have to choose attribute (lease time: 6/12/18 months) and price is updated.

I would like in cart page to only have 1 lease time for all products, so for example if customer add product “A” with lease 12 month, and after product “B” with 18 months lease time => in cart page, we’ll have product “A” & “B” but with 18 month lease time on each

(choose the longer lease time if lease time differs from products in cart)

How can I create a function to do that?

Read more here: Woocommerce / Update all product in cart to same attribute


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: