Answer the question
In order to leave comments, you need to log in
How to prevent woocomerce from combining them into one item when ordering the same items?
I make discounts using variations, but when ordering the same products with the same variations twice in a row, woocomerce combines them into one order item and knocks out the total quantity, and since I implemented the discounts through variations and the entered variations signal in the order that a gift product is needed here , then it turns out that the discount quantity does not match the total summed quantity after combining into one item, I need a hook or filter that intercepts the function of combining the product into one item, and changing it to inactivity, or intercept the variation and divide the quantity value in the basket by the value of the variation, there I entered just the disc number, and output the division result
Answer the question
In order to leave comments, you need to log in
if someone understands, then describe the function with a hook, I'm weak in php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question