Greetings, I love your “Get One Free” plugin. It is great. I needed a plugin for a “Buy One Get One Free” sale, but I also needed it to be able to match quantities in the cart (I.E.Buy one get one free, buy two get two free) I changed the code a little in your plugin and it works great: Line 384
‘woocommerce_checkout_item_quantity’, ‘<strong class=”product-quantity”>× ‘ . $values[‘quantity’] . ”, $values, $cart_item_key ) .
I added this code: $values[‘quantity’] instead of ‘0’.
I hope this is useful in-case you want to create a Buy One Get One Free plugin.
]]>Hi, I have a need to have people place one item from a few different categories in their cart. They would not be able to checkout until they had one of the items in their cart from different categories. In the most basic form, I place the category names and search links manually in the cart.php. If a product is not from a listed category and in the cart, the search link shows up and asks the person to place an item from that category in the cart. Can your script be adapted for this? Cheers, J
]]>