Hi there,
I’m here again to ask you if it’s possible do some tweaking on the php of this plugin.
I’ve upgraded the Finale XL plugin and created three different campaigns. Each campaign has different style attributes so in the product detail page the counter bar has different color: red, orange and yellow.
I actually paste this code in my function.php so I can show a counterbar also in the grid (the same I did for the timer)
/**
* Customize and show inventory bar on grid
*/
add_filter("wcct_add_bar_to_grid", "custom_wcct_add_bar_to_grid");
function custom_wcct_add_bar_to_grid($config)
{
$config = array(
'skin' => 'stripe_animate',
'edge' => 'smooth',
'orientation' => 'rtl',
'height' => '12',
'bg_color' => '#dddddd',
'active_color' => '#00b5f6',
'display' => "Solo <span>{{remaining_units}}</span> rimanenti!\n{{counter_bar}}",
'border_width' => '1',
'border_color' => '#444444',
'border_style' => 'none',
);
return $config;
}
Now with this settings the counterbar will always be the same for all of the campaigns, with this light blue color, despite each campaign has different color (red, orange and yellow). This settings works fine because I can choose the displayed text and the height of the bar (in the product detail page text and height are different).

But if I change the code with this snippet I can achive a pretty good result, showing the actual color of the campaign BUT I need to change the height and the displayed text as in the first screenshot.
/**
* Call Counter Bar in product loop below product name using shortcode.
* This inherit product's bar settings and follow campaign rules.
*/
add_action('woocommerce_after_shop_loop_item', 'wcct_shop_loop_bar_display', 5);
if (!function_exists('wcct_shop_loop_bar_display')) {
function wcct_shop_loop_bar_display() {
echo do_shortcode('[finale_counter_bar skip_rules="no"]');
}
}

Now, here’s my question: is there a way to override the settings of the second snippet so I can set an height of twelve and a displayed text like in the first snippet?
Hope I explained my self… ^^’
Thanks in advance
Regards 