Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

filter to conditionally change $sold_text

Home / Forums / Virtue Theme / filter to conditionally change $sold_text

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
March 7, 2016 at 12:39 pm

Hi,

I have some products where I’d like to display “Sold out” (coffee) and some where it should say “Waitlist only” (courses). I know about the sold_placeholder_text setting of virtue, but this is just one global setting.

I looked into the code to see if there is a filter/hook, but unfortunately this is not the case. The relevant files seem to be woocommerce/loop/sale-flash.php and woocommerce/single-product/sale-flash.php:

if(!empty($virtue_premium['sold_placeholder_text'])) {$sold_text = $virtue_premium['sold_placeholder_text'];} else {$sold_text = __( 'Sold', 'virtue');}

Any idea how this might still be possible? I rather do not want to override these files using my child theme as this is always a hassle wrt updates.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.