Price value is printing on shop, category and single product page via get_price_html() function. get_price_html() is a method of WC_Product_Variable class. In this method have a filter “woocommerce_get_price_html”. You can customize the current price structure with this filter as per your requirement. In this tutorial I use this filter woocommerce_get_price_html and add the custom text… Continue Reading
Archives for October 2019
Edits the Add To Cart text on Single Product Page
How do you customize the default “Add to cart” text on single product page? You can easily do it without editing the core file. There have a filter “woocommerce_product_single_add_to_cart_text” for single product’s add to cart text. Change The Add to cart Text Adds Price Value in Add to cart Button Where are you add the… Continue Reading
Disabling sortable functionality for product attributes at Dashboard
I tried this PHP snippet and added into the functions.php file of my active theme.
How to change author info link in blog post?
In this tutorial I am showing how you will change the default author link with custom link. Changing The Link For All Authors Changing The Link of a Specific Author I’m changing the link for a specific author only. Check the PHP snippet at below:
[Astra Theme] Displaying the Availability Status Below the Product Title
PHP snippet for free version of Astra theme. Make sure that you are using the child theme of Astra theme. Now open the functions.php file of your child theme and drop the following PHP snippets at end of the file. PHP snippet for PRO version of Astra theme. Make sure that you are using the… Continue Reading