I am using Hide specifics Flat Rates when Free Shipping is available in WooCommerce 3 lightly changed answer code to hide all shipping methods except one. The only method I want showing is a rate from the “Woocommerce Advanced Shipping” plugin. I am using the correct rate ID etc… Everything works fine except when a customer tries to click that
Tag: cart
Hide “remove item” from cart for WooCommerce product category
I would like to Hide “remove item” from cart for a specific product category in WooCommerce, just like in “Hide “remove item” from cart for a specific product in WooCommerce” answer thread, but for a specific product category. Any help would be appreciated. Answer The following code will hide “remove item” from cart for a specific product category (that you
Make WC_Cart add_to_cart method working for guests in Woocommerce
Im trying to get my code to work. Searching for hours now. I found similar questions like this one. But unfortunately noone seems to find a solution. In my custom plugin I want to add a specific …
Avoid cart items price update for specific product categories in Woocommerce
I am using below script under my WordPress child theme functions.php to overwrite price, but below code is affecting to all the products. Can you please help me “not to run” below code if the product is under some specific “shirts”, “games” category? Above code is working smoothly for all the products but I don’t want to run this code
Custom “Terms and Conditions” acceptance checkbox in Cart page Woocommerce
Works on small home project, and want to add checkmark option bellow “Proceed to Checkout” button into Cart page into my Woocommerce site. I found this function, that is add that option: …
Woocomerce Remove a specific cart items when adding to cart another specific items
Provided solution here Remove a specific cart item when adding to cart a specific product in Woocommerce works perfect for one product id. Is any way to do this for multiple id’s? Answer Update 2 : The following code will work for multiple product IDs: Code goes in function.php file of your active child theme (or active theme). Tested and
Custom remove cart item functionality in Woocommerce
I have the add item function set-up, which looks like this:
Displaying product thumbnail and attribute in Woocommerce cart and checkout
I am isplaying product attributes in my Woocommerce checkout table, see my previous question: Show Woocommerce taxonomy in emails I also want to show the product image, so my ideal would be: Product …
Only allow to purchase one Item In Woocommerce 3
Is there anyway to prevent more than one item for purchase in WooCommerce, or prevent more than one item added to the cart? I have different products but I want to allow only one item per checkout. I tried to search for solution but those existing solutions are not working properly, let’s say when user is not signed in and
Change wc_empty_cart_message function in WooCommerce 3.1
I’ve been trying to change my layout for the empty-cart message. I’ve removed the action, and try to replace it. I’d like to change the htm structure output from: to: My actual code (in functions.php file of my theme): But this code doesn’t work. Does anyone has a suggestions on how to make this work? Answer Here below is the