Sending FTP acess.
Also, do you know where I can edit the badge? I would like to only show the percentage without the ¨-¨
Sending FTP acess.
Also, do you know where I can edit the badge? I would like to only show the percentage without the ¨-¨
Thank you for the reply,
I have tested the site deactivating all plugins except woocommerce, and works fine.
The moment I activate the Xstore plugin, the sales price and badge stop working. Also, I checked that switching to the parent theme, it words correctly. I erased all the code I input on the child theme but still, is not working.
I am not planning on using the Shop builder
Hello,
I tried all of that and yes, seams the problem is the child theme.
How can I fix that?
Sorry, we managed to correct the issue by not using elementor for the cart page.
We had to stop using elementor for the cart and checkout page because we were having too many errors.
When not using elementor, the errors stoped.
So, how can i edit the cart page without elementor, When Cart is empty, it looks weird and I dont know where or how i can fix it.
Greate! Thanks a lot!
I managed to change the header and footer, but still dont know how to not make the GRATIS not appear.
Hello!
Great! Thanks a lot!
Leaving access to both sites.
We are currently using a code to achieve this in the vuapparel.som.ar site, but we notices that this other site is working fine without an additional code.
add_action( ‘woocommerce_after_cart_item_quantity_update’, ‘check_cart_stock_status’, 20, 2 );
add_action( ‘woocommerce_cart_loaded_from_session’, ‘check_cart_stock_status’, 20 );
function check_cart_stock_status() {
if ( ! WC()->cart ) {
return;
}
$out_of_stock_products = [];
// Loop through cart items to check stock status
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
$product = $cart_item[‘data’]; // Product data
$product_stock = $product->get_stock_quantity();
$cart_quantity = $cart_item[‘quantity’];
// Check stock
if ( ! $product->is_in_stock() || ( $product_stock !== null && $cart_quantity > $product_stock ) ) {
$out_of_stock_products[] = $product->get_name();
// Add a notice for the out-of-stock product
wc_add_notice(
sprintf(
__( ‘The product “%s” is out of stock and cannot be purchased. Please update your cart.’, ‘woocommerce’ ),
$product->get_name()
),
‘error’
);
}
}
// Optionally remove out-of-stock items from the cart
if ( ! empty( $out_of_stock_products ) ) {
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
$product = $cart_item[‘data’];
if ( in_array( $product->get_name(), $out_of_stock_products ) ) {
WC()->cart->remove_cart_item( $cart_item_key );
}
}
}
}
Hello! Thank you for your response.
So, we have other sites creted with Xstore, and there are notifications about productos without stock in the cart page.
We are attaching a screenshoot of the other sites notification when a product is Out of Stock.
Thank you,
Hello,
Great! I will have that in mind.
Now all translations are shown correctly
Thanks a lot
Best regards,
Can you help me with the Single product builder hooks?
I am trying to create a badge and it doesnt show on my single product page. Only on the shop page.
I am trying to use this hooks etheme_woocommerce_show_product_images but it makes the bagde appear on the left side of the page, in stead of the left side of the product image.
Is there something i am missing?
I took the hook from here: https://www.8theme.com/documentation/xstore/additional-customisation/single-product-builder-hooks/
Great!
Thanks a lot!
Great! I wasnt able to disactivate it. It is strange, but having the hooks helped!
Thank you
Great! Thanks a lot
Hello,
Yes, here is the css used
/* Swatches out of stock */
.st-swatch-preview li.sten-li-disabled span:before, .st-swatch-disabled-cross-line.st-swatch-preview li.sten-li-disabled span:before {
background: linear-gradient(to top left,rgba(0,0,0,0) 0,rgba(0,0,0,0) calc(50% – 0.8px),#222 50%,rgba(0,0,0,0) calc(50% + 0.8px),rgba(0,0,0,0) 100%),linear-gradient(to top right,rgba(0,0,0,0) 0,rgba(0,0,0,0) calc(50% – 0.8px),#222 50%,rgba(0,0,0,0) calc(50% + 0.8px),rgba(0,0,0,0) 100%);
}
.st-swatch-preview li.sten-li-disabled {
border-color: #222 !important;
border-top-color: #222 !important;
border-right-color: #222 !important;
border-bottom-color: #222 !important;
border-left-color: #222 !important;
}
Best regards,
Hi Tony,
We tried Unchecking the ¨enabled¨ box but the problem persists.
The issue is not that the product is being added to the cart when out of stock. The issue is that de X is not appearing on the variations when out of stock.
Seams a little silly, but clients get confused because all other products, when out of stock, shows the variation crossed.
Only this 2 products are not showing the variation crossed when out of stock.
This is a product that is Out of Stock and it shows the variation crossed:
https://ninaindumentaria.com.ar/product/biker-clasica-corta-microfibra-1077/
Do you know what could be causing this?
Hello and thank you for the reply,
Yes, you are right! The productos were out of stock.
We didn´t notice because when other products are out of stock, they appear with an X, and this product is not showing the X for products without stock.
For example:
https://ninaindumentaria.com.ar/product/biker-clasica-corta-microfibra-1077/
We used css code to personalize the X on Out to stock products.
Do you know why this products are not showing the X?
regards,
Great! Thanks a lot!
Hi Tony!
Thanks a lot!
best regards,
ouch! Thanks a lot!!
Hi Rose!
Thank you for your reply!
I have pasted the code but it doesnt seem to be working.
I dont get the same result as you do.
CanI provide access so you can check it out?
The code is already pasted.
Best regards,
Hello there!
Sorry for the super late response!
I tried the code but it doenst work.
We would like to have the lines of the X of the out of stock more darker or change the color into red.
But we need a way of making it more notisable for the clients that there is an X there.
Thank you guys!
best regards,
Hello there,
And thank you!
I have a part of the swatches resolved.
How can i make the lines of the X more darker?
So when the product is our of stock, it is more easy to recognize.
Thanks a lot!
Hi Rose!
Oh! okey! So that only works with the color atributte because it is set to being the primary one.
Now i understand!
Thanks a lot!
Best regards!
Hello!
Leaving admin access.
regards!
Hi Tony!
Thanks for the reply and the info.
I tried that but I am not being able to make de filters work.
The filter widget is appearing, but when clicked, nothing happens.
And also, how can i make the filter widget to appear on a side like in hamaratadenim.com.ar ?
regards,
Hi there!
Thank you for your reply.
I meant, changing the icons and text color. I manage to do so, but for some reason, the icons are now being shown in a blueish color although when editing its to be shown as black.


Great!
Thanks a lot!
Its good to know! I will have that in mind for next time!
best regards,
Hi Rose,
I understand! Great! Really dont know how we made it work, but lets just leave sochic as it is and we will see how we manage with hamaratadenim.com.ar.
To make it show different view for incognito we use a plugin. May be that is the one helping out with this.
I will look into it.
Thanks a lot for your time!
Kind regards,