danielbmxd
Forum Replies Created
-
Gracias, una consulta adicional, con su plugin es posible fijar costos de envios segun el tercer nivel(en el caso de Perú -> “distritos”)?
Forum: Plugins
In reply to: [country-redirect] Cache compatibilityHello,
Litespeed cache, wp 5.8.I have done the test, but the redirection is stuck in the configuration by country you choose, from any country it will redirect you to the last one saved.
Greetings
Forum: Plugins
In reply to: [WP Chat App] Widget not displayingI have cleared the cache from cpanel and all locations, but as long as the js minification is still active the widget is not shown
Forum: Plugins
In reply to: [WP Chat App] Widget not displayingI have disabled js minification from litespeed cache and it solves, but don’t have a solution on your side?
Forum: Plugins
In reply to: [WP Chat App] Widget not displayingThe problem continues, I have purged cache from cpanel and wordpress backend
Forum: Plugins
In reply to: [TP Product Image Flipper for Woocommerce] Alt tags are ignored@tplugins 1.0.3 – Add ALT attribute to Flipper images
If image ALT is empty get product titleGood job
Forum: Plugins
In reply to: [TP Product Image Flipper for Woocommerce] Alt tags are ignoredThanks
Forum: Plugins
In reply to: [TP Product Image Flipper for Woocommerce] Alt tags are ignoredI have the same problem, as much as the alt, title is not listed
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] physical gift cards 0 valueHi, thanks for the snippet
Forum: Plugins
In reply to: [Facebook for WooCommerce] Facebook regenerate feedThank you, that was what I was looking for
Forum: Plugins
In reply to: [Facebook for WooCommerce] Facebook regenerate feedHello, I would like the synchronization to be done only once a day or similar. Since in my logs I see too many scheduled task
Forum: Plugins
In reply to: [Advanced Woo Search] Search results page ElementorHi,
Also try that
https://prnt.sc/vzh2lt
https://prnt.sc/vzh396Forum: Plugins
In reply to: [Advanced Woo Search] Search results page ElementorHi, I followed the guide but your plugin uses another template instead of the one indicated by the include: search results
Forum: Plugins
In reply to: [Advanced Woo Search] Search results page Elementor*product archive templates
Forum: Plugins
In reply to: [WooCommerce] Show % Discount on Sales BadgeHi @rynald0s ,
Is it possible to add a condition where it shows out of stock in the case of having 0 stocks of a certain product? In the case of variable products, the one that woocommerce has in simple products does not work.
I have tried the following code, disabling the default sale flash, but I’m not sure if it is correctly setadd_action(‘woocommerce_before_shop_loop_item_title’,’custom_before_shop_loop_item_title’, 2 );
add_filter( ‘woocommerce_sale_flash’, ‘__return_null’ );
add_action( ‘woocommerce_before_single_product_summary’, ‘show_product_loop_outofstock_badge’ );
function custom_before_shop_loop_item_title(){
remove_action(‘woocommerce_before_shop_loop_item_title’,’woocommerce_show_product_loop_sale_flash’, 10 );
remove_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_sale_flash’, 10 );
add_action(‘woocommerce_before_shop_loop_item_title’,’show_product_loop_outofstock_badge’, 10 );
}function show_product_loop_outofstock_badge(){
global $post, $product;
if ( $product->get_stock_status() == ‘outofstock’ ){
echo ‘<span class=”onsale outofstock”>’. esc_html__(‘Empty’, ‘woocommerce’) .'</span>’;}
else{
if( $product->is_on_sale()){
if( $product->is_type(‘variable’)){
$percentages = array();// Get all variation prices
$prices = $product->get_variation_prices();// Loop through variation prices
foreach( $prices[‘price’] as $key => $price ){
// Only on sale variations
if( $prices[‘regular_price’][$key] !== $price ){
// Calculate and set in the array the percentage for each variation on sale
$percentages[] = round(100 – ($prices[‘sale_price’][$key] / $prices[‘regular_price’][$key] * 100));
}
}
$percentage = max($percentages) . ‘%’;
} else {
$regular_price = (float) $product->get_regular_price();
$sale_price = (float) $product->get_sale_price();$percentage = round(100 – ($sale_price / $regular_price * 100)) . ‘%’;
}
echo ‘<span class=”onsale”>’ . esc_html__( ‘-‘, ‘woocommerce’ ) . ‘ ‘ . $percentage . ‘</span>’;
}}
}