Enable Variation Swatches – Problem with filter with color

This topic has 7 replies, 3 voices, and was last updated 4 months, 2 weeks ago ago by Andrew Mitchell

  • Avatar: Invizion
    Invizion
    Participant
    June 21, 2024 at 18:30

    Hello,

    If I activate the “Use images from product Variations” function, it will apply if the respective attribute is set to image type.

    But in the widget with the color filter, I don’t see any image with color or to be able to set the color somehow.

    https://ibb.co/4PPxzcD

    We can’t somehow make the “Use iamges from product variations” function work regardless of what type of attribute is set.

    For example:
    I set the color type attribute, but in the variations the image of the product should appear and so we can also set the color of the filter.

    https://ibb.co/84BSzSm

    6 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 22, 2024 at 13:29

    Hello Invizion,

    Thank you for reaching out to us with your query.

    To assist you effectively, could you kindly provide temporary wp-admin and FTP access? This will enable us to thoroughly investigate and address your concerns.

    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Best Regards,
    8Theme’s Team

    Avatar: Invizion
    Invizion
    Participant
    June 23, 2024 at 11:52

    Hello,

    I have provided all the data for investigation.

    Thanks!

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 25, 2024 at 09:33

    Hello, Invizion,

    Thank you for reaching out to us. Unfortunately, it is not possible to use two types (image and color) simultaneously for a single attribute. Therefore, you will need to upload an image of the corresponding color for each color attribute. This can be done in the attribute settings, and the image does not need to be of high resolution – 10x10px will suffice to avoid overloading the site.

    We have already uploaded such an image for the culoare “ALBASTRU.”

    Additionally, we have added the following custom CSS in Customizer -> Theme Custom CSS -> Global CSS to ensure the filter image fills all the space:

    /* Force filter image to fill all space */
    .etheme_swatches_filter img {
        width: 100%;
    }

    Since you are not using a child theme, we were compelled to install the Code Snippets plugin (details at https://wordpress.org/plugins/code-snippets/) and added the following snippet “Change culoare filter widget shape, for shop page” to change the shape of the widget on the shop page from square to circle:

    add_filter('et_color_swatch_filter_subtype', function(){ return 'circle'; });
    add_filter('et_color_swatch_filter_shape', function(){ return 'circle'; });

    If you have any further questions or need additional assistance, please do not hesitate to contact us.

    Best Regards,
    The 8Theme Team

    Avatar: Invizion
    Invizion
    Participant
    June 25, 2024 at 10:22

    Hello, I also found this solution, but I wanted to avoid this solution, surely we can’t find a function to make a bypass between the two variants so that I can use the color attribute and the Enable Variation Swatches function.

    Thanks!

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 26, 2024 at 14:37

    Hello, Invizion,

    I hope this message finds you well.

    We appreciate your feedback regarding the integration of the color attribute with the Enable Variation Swatches function. After a detailed review of the available options, we regret to inform you that currently, there are no alternative methods that support the simultaneous use of these features.

    We understand this may not be the resolution you were hoping for, and we continue to explore viable solutions. Should any developments occur, we will promptly inform you.

    Thank you for your understanding.

    Best regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 1, 2024 at 17:01

    Dear Invizion,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Enable Variation Swatches – Problem with filter with color’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.