- This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › Photo seller – text instead of price list?
Most of my galleries will be selling prints and the plugin will work great for that. However, sometimes I photograph events with restrictions on photo usage. Usually, it’s that the images can only be sold to the press. Is it possible to replace the price list on these galleries with a message that reads something like ‘Press usage only. Please email to purchase high resolution files.’?
Currently you can’t replace the price table.
We might be able to add a filter which you can then use to replace the table with whatever content you wish. I’ll have to have a think about how you can do this.
I found a solution!
First I created a price list called ‘Press’, but I didn’t add any prices to it. Then I added the following code to functions.php:
function change_translate_text( $translated_text ) {
if ( $translated_text == 'There are currently no configured digital or physical variations for this gallery. The administrator needs to configure some variations for the price list associated with this gallery!' ) {
$translated_text = 'Press usage only. Please email to purchase high resolution files.';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
Great Plugin!
Now all you need to do is include keywords in search results and it will be perfect!