Home › Forums › WoodMart support forum › to enable multiple product attributes to be shown by default
to enable multiple product attributes to be shown by default
- This topic has 14 replies, 2 voices, and was last updated 1 year, 2 months ago by Elise Noromit.
-
AuthorPosts
-
September 6, 2023 at 10:26 pm #493858
carlakeneParticipantHey,
Right now product archive grid items show just one product related attribute by default. Second attribute appears, when first one is checked. But the goal is to have both size and color to be visible without interaction.
I will leave website link to the moderators content area.
Idea is that clients will see from get-go, what variations are available.I enabled it via this setting: “Quick shop” type: on variation click”
September 7, 2023 at 12:28 am #493870
Elise NoromitMemberHello,
Thank you very much for choosing our theme and for contacting us.
This is Woocommerce functionality and the WoodMart theme cannot influence that. You will need to select one attribute, and then select the next attribute and the plugin would sort out the product which has them both.
If you have any questions please feel free to contact us.
Best Regards
September 14, 2023 at 9:23 pm #496108
carlakeneParticipantHey,
Hmm maybe I wasn’t describing it well, I also attached images.
Right now Woodmart displays it like shown “as is” image. And If client chooses size attribute, only then the color option comes visible. How to make them both visible at all times? πBr,
KarlAttachments:
You must be logged in to view attached files.September 15, 2023 at 4:07 am #496156
Elise NoromitMemberHello,
Unfortunately, the grid can show one attribute only, you need to click an attribute and then select the other one.
If you have any questions please feel free to contact us.
Best Regards
September 19, 2023 at 11:35 am #497295
Elise NoromitMemberHello,
Sorry, for the misunderstanding.
You can show all the attributes in the grid by enabling “Quick shop” in the Theme settings > Shop > Variable products.
If you have any questions please feel free to contact us.
Best Regards
September 30, 2023 at 1:36 pm #500428
carlakeneParticipantHey,
I have it enabled already, but it does not work as intended.
Br,
KarlAttachments:
You must be logged in to view attached files.September 30, 2023 at 10:31 pm #500521
Elise NoromitMemberHello,
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Please, confirm the permission for plugins deactivation, and switching to the parent theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.
Best Regards
October 16, 2023 at 8:35 pm #504574
carlakeneParticipantHey Elise,
Added all credentials to private area. π
Br,
KarlOctober 17, 2023 at 3:06 am #504605
Elise NoromitMemberHello,
Please check the screen: https://gyazo.com/c0ca43615b3340c8c789170f3f484689
Please update the theme and plugins in Appearance > Install plugins.
If you have any questions please feel free to contact us.
Best Regards
October 17, 2023 at 7:52 pm #504906
carlakeneParticipantHey,
Right now Woodmart displays it like shown βas isβ image. And If client chooses size attribute, only then the color option comes visible. How to make them both visible at all times? 🙂
Thanks for support. I also updated theme and Woodmart core. But my request was to have both color and size visible at all times – without need to click on size first. π
October 18, 2023 at 12:32 pm #505057
Elise NoromitMemberHello,
Please add this code to the functions.php of the child theme:
add_action( 'woodmart_variation_attributes_on_grid', function ( $count ) { global $product; return count( $product->get_variation_attributes() ); });
If you have any questions please feel free to contact us.
Best Regards
October 18, 2023 at 8:51 pm #505266
carlakeneParticipantHey,
Added code as instructed, does not work. π
Br,
KarlOctober 19, 2023 at 3:04 pm #505433
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .website-wrapper .wd-quick-shop-2 tr:not(:first-child) :is(select,.wd-swatches-grid) { display: flex; }
Best Regards
October 21, 2023 at 11:27 am #505952
carlakeneParticipantHey,
Great, thanks! It almost worked, it kept showing “colour” as duplicated – as an swatch and dropdown. But changed code a little bit and it work, just sharing maybe it helps someone else also:
body .website-wrapper .wd-quick-shop-2 tr:not(:first-child) select.wd-swatches-grid[name="attribute_pa_varv"] { display: none; /* Hide the "VΓ€rv" category dropdown */ } body .website-wrapper .wd-quick-shop-2 tr:not(:first-child) select.wd-swatches-grid[name="attribute_pa_muster"] { display: flex; /* Show the "Muster" dropdown */ } body .website-wrapper .wd-quick-shop-2 tr:not(:first-child) .wd-swatches-grid { display: flex; /* Show the swatches */ }
October 22, 2023 at 5:09 pm #506091
Elise NoromitMemberHello,
Thank you for correcting and sharing the information.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register