Hi Gerhard
I’m not really a person who sits and waits.
So, I continue to thinking about the solution the rest of the day…
Searching where the hecks would be the line of codes in the theme to make this works…
And suddenly I though:
Maybe would be easier to change the code of the plugin that find a new code for the theme.
And tadan!
So, in wsop/classes/class-wc-sold-out-products.php I changed some lines.
public function __construct( $file ) {
$this->file = $file;
add_action( 'plugins_loaded', array( $this, 'load_textdomain_files' ) );
add_action( 'plugins_loaded', array( $this, 'unload_woocommerce_actions' ) );
add_action( 'widgets_init', array( $this, 'register_widget' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_stylesheet' ) );
add_shortcode( 'sold_out_products', array( $this, 'sold_out_products_shortcode' ) );
add_action( 'woocommerce_before_single_product_summary', array( $this, 'single_sold_out_products_flash' ), 9 );
add_action( 'woocommerce_before_shop_loop_item', array( $this, 'loop_sold_out_products_flash' ), 9 );
add_filter( 'woocommerce_product_is_visible', array( $this, 'make_sold_out_products_visible' ), 10, 2 );
add_action( 'woocommerce_before_shop_loop_item', array( $this, 'show_hide_loop_sale_flash' ), 10 );
}
function unload_woocommerce_actions() {
remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_show_product_loop_sale_flash', 10 );
}
In lines #31, #33 and #37 I changed the parameter:
‘woocommerce_before_shop_loop_item_title’
for this one:
‘woocommerce_before_shop_loop_item’
And now its working perfectly.
Also I did minor tweaks in templates/loop and templates/single-products
changing “Sold Out!” for the word in portuguese…
And the size of the circle in assets/css/style.css
Well, that’s it.
Thanks again for your patience and your nice plugin.
Take care
Alvaro