Home › Forums › WoodMart support forum › Hide product variants that are crossed out
Hide product variants that are crossed out
- This topic has 9 replies, 2 voices, and was last updated 10 months, 2 weeks ago by Luke Nielsen.
-
AuthorPosts
-
June 7, 2023 at 2:53 pm #473279
niekParticipantHello,
On our website, we have products that have many different selectable variants. You can make different combinations with things such as color, weight, and diameter. For some colors, we have more different weights available than others.
We are currently using the tile layout from your theme for the selectable variables. What happens, however, is that some weights are crossed out when selecting a color that offers fewer different weights.
What we would like to happen is that those options disappear entirely when selecting the product. I’ve linked a page from our website as an example. If you require further information please don’t hesitate to let me know.
June 8, 2023 at 3:19 pm #473579
Luke NielsenKeymasterHello,
Sorry for the delay.
Try to use the below code to achieve such behavior.
.single-product .wd-swatch.wd-disabled { display: none; }
Kind Regards
June 8, 2023 at 3:40 pm #473592
niekParticipantHello,
Thank you so much, that resolved our issue completely.
I do have 1 more question. For some reason most CSS that I paste in the “Theme File Editor” field does not work. But it does work if we paste in the “Customize” field with this theme. Would you be able to tell me why this is?
June 8, 2023 at 4:24 pm #473604
Luke NielsenKeymasterHello,
I cannot tell you exactly, but I suggest you paste all CSS code to Theme Settings -> Custom CSS.
In the meantime, feel free to ask me any questions you may have.
Kind Regards
June 20, 2023 at 9:53 am #475986
niekParticipantHello Luke,
Sorry to take you up on your offer for more questions :).
We have recently discovered that when a specific product variant is out of stock. The cart only states the general product name and not the specific variant of that product. Please see the attached screenshot as an example. As you can see in the screenshot there are 2 “EasyFil ePETG” products in the cart, but the cart message simply states to remove EasyFil ePETG from the cart.
As you can imagine, this causes a lot of trouble for customers as we have many variants that customers order from 1 general product. Do you know if there is a way to get the cart to show the specific variant that is not in stock instead of the general product?
Thank you so much.
Attachments:
You must be logged in to view attached files.June 20, 2023 at 10:44 am #476006
Luke NielsenKeymasterHello,
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
June 20, 2023 at 12:09 pm #476045
niekParticipantHello,
Yes, please find below the information.
June 20, 2023 at 2:56 pm #476103
Luke NielsenKeymasterHello,
On my side, I have an alert message that does not allow me to confirm adding a product to the cart.
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Kind Regards
June 21, 2023 at 4:56 pm #476410
niekParticipantHello Luke,
This is correct, a product can’t be added to the cart if it is not in stock. But if you happen to have filled your cart before, and come back later and 1 of the products is no longer available. The website will ask you to remove that product from your cart. This is when the problem from my previous screenshot occurs.
I’m not sure about other themes, as some themes do not allow variable products like Woodmart does. When you checkout or view your cart in this theme for example, you do see all the variance for the products. In our case diameter, weight, and color. If the cart and invoice etc. is able to display this, is there no way for the cart message to display this as well?
June 22, 2023 at 10:05 am #476529
Luke NielsenKeymasterHello,
The thing is that the prices, stock, such alerts in the cart as you describe above, etc. come from WooCommerce so would be better to check how it works with some default WordPress themes like WooCommerce Storefront to understand is it our theme issue or not.
Let me know the result.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register