catheg
Forum Replies Created
-
Thanks for your explanation, it’s more clear now.
Hi @imagely ,
If I disable CSS/JS concatenation and minify, that solves the problem, but I want to keep this optimization.
If I deactivate NextGen Gallery -> Other Options -> Miscellaneous -> Do not enqueue FontAwesome: Yes” it also solves my problem. So I’m going to take this second solution. But to be honest I don’t exactly what it means, and if it’s a problem of the header plugin or nextgengallery. I didn’t have this problem before the last update of my site this morning.
Thanks for your help.
Catherine.
Hi there,
I haven’t any text view in the description of non necessary cookies.
https://ibb.co/52VvCYRBest regards.
Catherine.
Forum: Plugins
In reply to: [LiteSpeed Cache] crawler is sending all my url in blacklistHi,
Thx @qtwrk ,
I changed for the .189 IP. I’ve now the message :
The crawler feature is not enabled on the LiteSpeed server. Please consult your server admin or hosting providerI contacted my hosting provider.
Just in case you have an idea, I generated a new report : VTOKNQNHBest regard.
Catherine
Forum: Themes and Templates
In reply to: [Astra] Product archive mobile viewHi @brainstormteam ,
No more issue now. with a little css code.
Here is my site :
https://www.monsieursommelier.com/Kind regards.
Catherine.
Hum,
Could you add an echo(‘woocommerce discount’); on the if branch
and an echo(‘woo discount rules discount’); on the elseif branchto see what happens.
Your discount is a regular woocommerce discount or a woodiscount rule ?
Copy the code from there
https://github.com/catheg/woocommerce/blob/main/woocommerce_sale_flash_from_woo_discount_rules_v2I think I understood, you have to replace all the ’ by
' and all the ” by
”And it’s going to be ok.
I think I understood, you have to replace all the ’ by ‘ and all the ” by ”
And it’s going to be ok.
Do you have set up this in the woo discount rules settings ? :
https://ibb.co/tLBHFp0And can you add this in the css file of your child theme
.woocommerce span.onsale {
color: #FFFFFF;
background-color: #BE4F50;
}Are you using exactly the same code?
Try this :
To be displayed as a %, the discount has to be applied, in other case the badge displayed will be the one setup on woodiscount settings.function woocommerce_sale_flash_from_woo_discount_rules_v2($html, $post, $product){
$discounted_price = apply_filters(‘advanced_woo_discount_rules_get_product_discount_price_from_custom_price’, false, $product, 1, 0, ‘all’, true);
$wooco_discounted_price = $product->get_sale_price();if($discounted_price !== false){
if($discounted_price[‘discounted_price’] > 0){ // woo discount rule$max_percentage = ( ( $discounted_price[‘initial_price’] – $discounted_price[‘discounted_price’] ) / $discounted_price[‘initial_price’] ) * 100;
$html = ‘<span class=”onsale”>-‘ . round($max_percentage) . ‘%’ . ‘</span>’;
}
}
elseif ($wooco_discounted_price > 0) // woocommerce discount
{
$max_percentage = ( ( $product->get_regular_price()- $wooco_discounted_price ) / $product->get_regular_price()) * 100;
$html = ‘<span class=”onsale”>-‘ . round($max_percentage) . ‘%’ . ‘</span>’;
}return $html;
}
add_filter( ‘woocommerce_sale_flash’, ‘woocommerce_sale_flash_from_woo_discount_rules_v2’, 101, 3);Hi @tonimerc ,
You can try :
function woocommerce_sale_flash_from_woo_discount_rules_v2($html, $post, $product){
$discounted_price = apply_filters(‘advanced_woo_discount_rules_get_product_discount_price_from_custom_price’, false, $product, 1, 0, ‘all’, true);
$wooco_discounted_price = $product->get_sale_price();if($discounted_price !== false || $wooco_discounted_price==”){
$html = ‘<span class=”onsale”>Special Saint-Valentin</span>’;
}
else if ($product->is_on_sale() )
{
$max_percentage = ( ( $product->get_regular_price() – $wooco_discounted_price ) / $product->get_regular_price() ) * 100;
$html = ‘<span class=”onsale”>-‘ . round($max_percentage) . ‘%’ . ‘</span>’;
}return $html;
}
add_filter( ‘woocommerce_sale_flash’, ‘woocommerce_sale_flash_from_woo_discount_rules_v2’, 101, 3);take a look here :
https://gist.github.com/AshlinRejo/a6420f63934f1377232fd62b2cf67b23Hope this helps.
Kindly.Catherine
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] column totalHi Alex,
Thank you, It works fine !
Just a little question, I changed some format parameters,
‘size’=>8,
‘text_color’ => array(0,0,0), // black – RGB
‘background_color’ => array(227,227,227), // grey – RGBis it possible to have something like strong ?
Theses parameters are the classical css style and we can use what we want ?
Catherine.