Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. /** * Change a currency symbol */ add_filter(‘woocommerce_currency_symbol’, ‘change_existing_currency_symbol’, 10, 2); function change_existing_currency_symbol( […]
Tag: genesis theme hooks
Rename a country in WooCommerce
Posted on — Leave a commentAdd this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme. /** * Rename a country */ add_filter( ‘woocommerce_countries’, ‘rename_ireland’ ); function rename_ireland( […]
Hide other shipping methods when “Free Shipping” is available
Posted on — Leave a commentOverview By default, WooCommerce will show all shipping methods that match the customer and the cart contents. This means Free Shipping will also show along with Flat Rate and other Shipping Methods. The functionality to hide all other methods and only show Free Shipping requires either custom PHP code or a plugin/extension. If you’d like to see this feature added […]
Unhook/remove WooCommerce Emails
Posted on — Leave a commentThis code allows you to unhook and remove the default WooCommerce emails. Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme. […]
Add/Modify States
Posted on — Leave a commentAdd code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. Add your own or modify shipping states in WooCommerce. Note: You must replace both instances of XX […]
Display product dimensions on archive pages
Posted on — Leave a commentYou need to add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme. Display WooCommerce product dimensions on archive pages, below the […]