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

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #493858

    carlakene
    Participant

    Hey,

    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

    #493870

    Hello,

    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

    #496108

    carlakene
    Participant

    Hey,

    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,
    Karl

    Attachments:
    You must be logged in to view attached files.
    #496156

    Hello,

    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

    #497295

    Hello,

    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

    #500428

    carlakene
    Participant

    Hey,

    I have it enabled already, but it does not work as intended.

    Br,
    Karl

    Attachments:
    You must be logged in to view attached files.
    #500521

    Hello,

    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

    #504574

    carlakene
    Participant

    Hey Elise,

    Added all credentials to private area. πŸ™‚

    Br,
    Karl

    #504605

    Hello,

    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

    #504906

    carlakene
    Participant

    Hey,

    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. πŸ™‚

    #505057

    Hello,

    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

    #505266

    carlakene
    Participant

    Hey,

    Added code as instructed, does not work. πŸ™

    Br,
    Karl

    #505433

    Hello,

    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

    #505952

    carlakene
    Participant

    Hey,

    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 */
    }
    
    #506091

    Hello,

    Thank you for correcting and sharing the information.

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 15 posts - 1 through 15 (of 15 total)