Remove cart functionality from WooCommerce so it doesn’t remember the products [closed]

Not sure if this is the right way to do it but I finally found an answer here: https://stackoverflow.com/a/49382476/2308992 and did the following: add_action( ‘woocommerce_add_to_cart_validation’, function( $passed, $product_id, $quantity ) { if( ! WC()->cart->is_empty() ) { wc_empty_cart(); } return $passed; }, 20, 3); What this does basically before WooCommerce tries to add anything in the … Read more

Google Maps for Woocommerce Checkout

I am looking for a similar thing at the moment and am investigating 2 different plugins: https://codecanyon.net/item/woocommerce-checkout-location-picker/6811588 https://wordpress.org/plugins/checkout-address-sugessions-for-woocommerce/ I will be trying out the second plugin first, as it is free. Hope that helps (UPDATE) Neither of the above plugins did the job unfortunately, I would not recommend

Customize the “Available for back order” text for specific variation

I did it. The “stock.available-on-backorder.step-1” is the css class of the availability text ( Available- made to measure ). <?php add_action( ‘woocommerce_before_add_to_cart_quantity’, ‘made_to_measure’ ); function made_to_measure() { global $product; if ( $product->is_type(‘variable’) ) { ?> <script> jQuery(document).ready(function($) { $(‘input.variation_id’).change( function(){ if( ” != $(‘input.variation_id’).val() ) { //var var_id = $(‘input.variation_id’).val(); var pa_size = jQuery( “#pa_size” … Read more