Conditionally show the Free Shipping option, only when a product with the ‘free-shipping’ Shipping Class is found in the cart. If a product with the ‘free-shipping’ Shipping Class is found in the cart, it will show the Free Shipping option and hide all other shipping rates. If a product with the ‘free-shipping’ Shipping Class is […]
Archive for “WooCommerce”
WooCommerce code snippets and tips.
These are 3 steps to add a WooCommerce cart icon with the cart count to your theme. The number of items will be updated automatically with AJAX as items are added to cart. To avoid errors, this will first check if WooCommerce is active. That way, it doesn’t hurt to add this to any theme […]
This is a function for WooCommerce. It checks to see if there is a product with a certain “Shipping Class” in the cart. It takes one parameter, the slug of the Shipping Class. The function returns true if a product with the Shipping Class is found in the cart. Otherwise, it returns false. Usage For […]
You can disable YITH WooCommerce Zoom Magnifier on one product or many products. To remove it only on one product use this, and change ‘1006’ on line 3 to your product ID. To remove it on multiple products, change line 3 to this, and replace the numbers with your own post IDs:
This hook, woocommerce_product_thumbnails, lets you insert stuff below the product image thumbnails. Replace line 3 with your stuff.
Override the WooCommerce purple button color with these CSS selectors. Replace #00ff80 on line 4 with your custom color code: Override the WooCommerce purple button hover color with these CSS selectors. Replace #000 on line 6 with your custom color code:
Easily Customize the text on the WooCommerce “Thank You” page without any custom template files. The “Thank You” page is also known as the “Order Received” page, or the Receipt page. This lets you do it easily. This can go in your functions file or in a plugin. The default text is, “Thank you. Your […]
WooCommerce Show Attributes now gives you more control over where to show your custom product attributes. There are 16 new options, including the options to show the product weight and dimensions. While I’ve tried to address many feature requests, there are still many more pending. If I haven’t got to yours, thanks for your patience. […]
WooCommerce Show Attributes, a plugin for showing WooCommerce custom product attributes, has just been updated to version 1.2.1. This update adds several new options and one bug fix. The “Visible on the product page” checkbox for each individual product attribute will now be taken into account on the single product page. This is a WooCommerce […]
Get this free plugin on the WordPress repository: WooCommerce Show Attributes WooCommerce Show Attributes is a is an extension for WooCommerce that will show your custom product attributes on the product page above the “Add to cart” button instead of in the “Additional Information” tab. This does NOT affect nor include Attributes which are used […]