Home › Forums › WoodMart support forum › Cross out attributes not in stock
Cross out attributes not in stock
- This topic has 11 replies, 2 voices, and was last updated 1 year, 1 month ago by Luke Nielsen.
-
AuthorPosts
-
October 15, 2023 at 11:34 pm #504306
isma_25_94ParticipantHello,
How can I show crossed out attributes or variations when they are out of stock?
I have followed your guide (https://xtemos.com/docs-topic/variable-products-and-swatches/) but if for example I select a variant (colour) and a size out of stock, it does not appear crossed out.
Attachments:
You must be logged in to view attached files.October 16, 2023 at 11:43 am #504386
Luke NielsenKeymasterHello,
Please navigate to WooCommerce -> Settings -> Products -> Inventory and enable the “Hide out of stock items from the catalog” option: https://prnt.sc/F_fh2YsvXpfx
Then clear the cache and recheck the issue.
Kind Regards
October 16, 2023 at 12:58 pm #504411
isma_25_94ParticipantHello,
But if I do that, all the out of stock products in the catalogue are hidden and I want to keep showing them in the catalogue (for customer information), but I just want the attributes not to be activated if they are out of stock.
Is this possible?
October 17, 2023 at 9:38 am #504648
Luke NielsenKeymasterHello,
In this case, is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?
Kind Regards
October 18, 2023 at 9:48 am #504996
isma_25_94ParticipantHello,
Sure, I attach the login information for you to try (test site)
I want to show all the products in the catalogue, but in each variant (attributes) it should be crossed out if they are not available.
Thank you.
October 19, 2023 at 9:32 am #505335
Luke NielsenKeymasterHello,
After enabling the “Out of stock visibility” option, the out of stock attributes started to be as a cross out.
Screenshots: https://prnt.sc/1LUNH03aadXU , https://prnt.sc/DmOG57pto6Dc , https://prnt.sc/xA7sRVBKGNZJ
Kind Regards
October 19, 2023 at 12:47 pm #505401
isma_25_94ParticipantBut I don’t want to do that, because if I select that option, the out of stock products in the catalogue are hidden and this is bad for the SEO and for the information of the customers (because they think that we don’t have any products).
I want to leave this option unchecked, but in the products it has the same function of crossing out the out of stock attributes.
October 19, 2023 at 2:32 pm #505425
Luke NielsenKeymasterHello,
Sorry, but there is no other way.
I sincerely appreciate your understanding in this matter. Please feel free to reach out to me if you have any further questions.
Kind Regards
October 19, 2023 at 5:51 pm #505503
isma_25_94ParticipantOK, thank you.
I have another question, how can I remove the product name from the breadcrumbs (so that only the categories remain).
Thank you.
October 20, 2023 at 3:04 pm #505759
Luke NielsenKeymasterHello,
Use the below code to hide the product name from the breadcrumbs:
.single-product .woocommerce-breadcrumb .breadcrumb-last { display: none; }
Don’t hesitate to let me know if you need any further help or any other info
Kind Regards
October 20, 2023 at 3:55 pm #505779
isma_25_94ParticipantGreat, Thank you!
October 20, 2023 at 3:56 pm #505781
Luke NielsenKeymasterHello,
You are welcome! In case you need any additional help, I’d be more than happy to assist you.
Have a good day!
Kind Regards
-
AuthorPosts
The topic ‘Cross out attributes not in stock’ is closed to new replies.
- You must be logged in to create new topics. Login / Register