Víctor Sánchez Sosa
Forum Replies Created
-
Hello @maybellyne
There are no error details, just unreachable robots.txt and sitemap.
Forum: Plugins
In reply to: [Drag and Drop Multiple File Upload for WooCommerce] Responsive Drag and DropHi Glen.
It works fine now with this CSS.
Thank you.
It´s solved.
I set up plugin again and it works.
Forum: Plugins
In reply to: [WooCommerce] Out of stock issue in product archiveHi Jonayed.
I found a solution that works for me.
I have adapted this snippet with Woodmart hooks and it works.
This is the original snippet:
add_action( 'woocommerce_after_shop_loop_item_title', 'mostrar_estado_stock_en_listados', 20 );
function mostrar_estado_stock_en_listados() {
global $product;
if ( ! is_a( $product, 'WC_Product' ) ) return;
$has_stock = false;
if ( $product->is_type( 'variable' ) ) {
// Para productos variables: revisar variaciones
$variations = $product->get_children();
foreach ( $variations as $variation_id ) {
$variation = wc_get_product( $variation_id );
if ( $variation && $variation->is_in_stock() ) {
$has_stock = true;
break;
}
}
} else {
// Para productos simples y otros tipos
$has_stock = $product->is_in_stock();
}
echo '<p class="custom-stock-status" style="color:' . ( $has_stock ? 'green' : 'red' ) . ';">' .
( $has_stock ? 'Hay stock' : 'Próximamente/bajo pedido' ) .
'</p>';
}This is adpated one:
add_action( 'woocommerce_after_shop_loop_item_title', 'mostrar_estado_stock_en_listados', 5 );
function mostrar_estado_stock_en_listados() {
global $product;
if ( ! is_a( $product, 'WC_Product' ) ) return;
$has_stock = false;
if ( $product->is_type( 'variable' ) ) {
foreach ( $product->get_children() as $variation_id ) {
$variation = wc_get_product( $variation_id );
if ( $variation && $variation->is_in_stock() ) {
$has_stock = true;
break;
}
}
} else {
$has_stock = $product->is_in_stock();
}
echo '<p class="custom-stock-status ' . ( $has_stock ? 'in-stock' : 'out-of-stock' ) . '">' .
esc_html( $has_stock ? '✔ En stock' : 'Próximamente/bajo pedido' ) .
'</p>';
}And it works for now.
Forum: Plugins
In reply to: [WooCommerce] Out of stock issue in product archiveHi @mahfuzurwp
But this product has no default option set up, wich variation Woocommerce evaluate?
Thank you
Hello there,
Now it works fine, thank you so much.
Hi,
Thank you for the fast fix, now it displays in block but does not full width

Now this display: inline-flex is in the texts box

Regards
I have deactivated all plugins and activated default theme and this css still working. I want this display block if possible.
Regards

Hi,
There it goes. I want faqs full width, text editor is too small to edit.

Regards
Forum: Plugins
In reply to: [YITH WooCommerce Product Add-Ons] Ywapo text in stead of options nameHello Carlos,
This snippets works fine.
Thank you.
Forum: Plugins
In reply to: [YITH WooCommerce Product Add-Ons] Ywapo text in stead of options nameHello there,
Im facing same issue in the admin order email, it prints ywapo-addon-1-0: instead of the option text.
https://i.postimg.cc/9M38mwx3/image.png
Hopefully you can fix this problem or guide me into solving it.
Kind regards,