So there I was searching through the Settings to find the way to change the "Price Not Announced" term when the price of the product was left blank. Client wanted the catalog to show "Physical Purchase only".
So here is how you can change it through code but every time an update is done, I guess you will have to re-configure it again.
Look for the file at wp_content/ plugins/ jigoshop/ classes/ jigoshop_product_class.php
On line 943 code is
if ( $this->regular_price == '' ) $html = __( 'Price Not Announced', 'jigoshop' );
Change the term, 'Price Not Announced' to something you want. So for my example, it will look like:
if ( $this->regular_price == '' ) $html = __( 'Physical Purchase only', 'jigoshop' );
Hope this helps and if anyone has a better way of doing, please do share. Happy coding!
Yes, a better way to do this without requiring the need to make this change after each JS update is installed would be to edit the appropriate jigosho/language/"languagefile" .po file using Poedit (free download) with the appropriate text. Poedit will automatically compile the corresponding .mo file. Then you just ftp them over to the server.
ReplyDelete