|

Disable double add to cart of a product

If you want to disable multiple or double add to cart quantity for woocommerce product , then you can add the following code on the function.php file. // disable double add to cart of a productadd_filter(‘woocommerce_add_to_cart_validation’, ‘my_validation_handler’, 10, 2);function my_validation_handler($is_valid, $product_id) {foreach(WC()->cart->get_cart() as $cart_item_key => $values) {if ($values[‘data’]->id == $product_id) {return false;}}return $is_valid;}

| |

How to Autocomplete WooCommerce Orders- 2 Easy Ways!

Instantly confirming a customer’s purchase is one of the best ways to improve the customer experience in your store. They will be able to access their stuff as soon as their orders are completed. So, in this piece, we’ll teach you how to autocomplete WooCommerce orders using various ways. We recently discussed some of the…

Thebest variation swatches plugin for woocommerce
| | |

Thebest variation swatches plugin for woocommerce

Using the WooCommerce Variation Swatches plugin , you can add product variation attributes to your products that help users to choose and find expected products from variations. For example, you can add T-shirt size and color as a variable for what you sell in your store. Thus, whenever users come to your site for purchasing…