|

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…

| | |

Add custom field product single page

To add custom meta field in the product single page and save the field data then get value, Need to add this following code You can add this code in your function.php file // Adding a custom Meta container to admin products pages add_action(‘add_meta_boxes’, ‘create_custom_meta_box’); if (!function_exists(‘create_custom_meta_box’)) { function create_custom_meta_box() { add_meta_box( ‘custom_product_meta_box’, __(‘ Product…

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…