Home / Forums / WoodMart support forum / Show Variation as Single Issue
Home › Forums › WoodMart support forum › Show Variation as Single Issue
Show Variation as Single Issue
- This topic has 11 replies, 2 voices, and was last updated 1 year, 8 months ago by
Luke Nielsen.
-
AuthorPosts
-
November 20, 2024 at 2:25 am #613598
furkanjtl2000ParticipantI know this issue is already known to you, but as a store, we really need a solution for it. When products are set with attributes like colors (e.g., green, yellow, red) and sizes (XS, S, M), and parent products are hidden, these variations are displayed six times in the shop due to the sizes. However, I only want the colors to be displayed, which would result in just three unique variations.
I have already tried to resolve this issue using various “Show Variations as Single” plugins, but each plugin comes with its own set of problems. For instance:
In one plugin, the Ajax search doesn’t work.
In another, parent products are only hidden on the shop page, not site-wide.
In yet another plugin, product hover functionality doesn’t work.
Therefore, it would be much better if Woodmart included an internal feature to hide size attributes, ensuring compatibility with the themeNovember 20, 2024 at 6:37 pm #613944
Luke NielsenMemberHello,
What exactly plugins are you using to solve the problem of product output 3 instead of 6?
Thank you for your time.
Kind Regards
November 21, 2024 at 7:01 am #614036
furkanjtl2000ParticipantI tried WooCommerce Show Single Variations from IconicWP , Variations as Single Product for WooCommerce from Storeplugin and WPC Show Single Variations for WooCommerce from WPClever , all of them have different Issues like mentioned before.
November 21, 2024 at 1:55 pm #614275
furkanjtl2000ParticipantAny updates ?
November 21, 2024 at 4:26 pm #614333
Luke NielsenMemberHello,
Here we installed one of those plugins that you checked and as we can see, they have the same problem – https://monosnap.com/file/1kREtznmO9wrexArHPmWn9f0pWgdBR
So, could you set it up on your staging site where it will show only 1 attribute and send access to this site so we can test it?
Kind Regards
November 21, 2024 at 4:39 pm #614344
furkanjtl2000ParticipantI think you misunderstood me. I don’t have any issues with the sizes; the plugin works fine and no longer displays the sizes. However, the parent products are still showing up in the AJAX search, on the homepage, and in the cross-sells section.
Additionally, I’m experiencing significant performance slowdowns on the single product page when I activate the “WoodMart Show Variations as Single” option. The loading time for the single product page increases to more than 5–10 seconds, and after that, it takes an additional 10 seconds for the variation images to load.
November 22, 2024 at 1:31 pm #614649
Luke NielsenMemberHello,
1. In order for it to work correctly in the search, you need to use our functional of single product variation. Unfortunately, it will not work with 3rd party plugins.
2. Increase these values in your server – https://take.ms/W7qsl, clear the cache and check how it works with the Single product variation.
Kind Regards
November 23, 2024 at 8:45 am #614905
furkanjtl2000ParticipantIt doesnt answer my Question about building an intern Function for displaying Product Attributes only on Color and not also Sizes ..
November 25, 2024 at 4:07 pm #615616
Luke NielsenMemberHello,
To show products based only on colors, paste the code below into the functions.php file in your child theme:
add_filter( 'woocommerce_product_variation_title', function ( $title, $product, $title_base, $title_suffix ) { $separator = apply_filters( 'woocommerce_product_variation_title_attributes_separator', ' - ', $product ); $suffix = ''; $attributes = $product->get_attributes(); if ( isset( $attributes['pa_farbe'] ) ) { $suffix = $separator . ucfirst( $attributes['pa_farbe'] ); } return $title_base . $suffix; }, 10, 4);Kind Regards
November 26, 2024 at 2:37 am #615830
furkanjtl2000ParticipantThe Code works to hide Size Attributes but still displays all Sizes on the Site see Product “Lola” in Grey has Size Onesize and M and now its 2 Times in the Shop it should only show 1 Time
Attachments:
You must be logged in to view attached files.November 26, 2024 at 2:38 am #615832
furkanjtl2000ParticipantI mean the Product called “Liz” not Lola , sorry for that.
November 26, 2024 at 4:43 pm #616169
Luke NielsenMemberHello,
Uncheck the “Show variation product” checkbox in the Variations settings
Then recheck the issue.
Kind Regards
-
AuthorPosts
Tagged: Show Single as Variation
- You must be logged in to create new topics. Login / Register