Home Forums WoodMart support forum Attribute swatches not always showing on archive pages

Attribute swatches not always showing on archive pages

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #338540

    avila345
    Participant

    Hello,

    I have an issue with swatches not always showing on archive pages (see screenshot): we can see the swatches working on some products and some other not. They all use the same attribute and all variations have prices.
    Thank you

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

    Hello,

    Please deactivate all the plugins except these ones:

    Slider Revolution
    WPBakery Page Builder or Elementor
    Woodmart Core
    Contact Form 7
    MailChimp for WordPress
    WooCommerce
    Safe SVG

    If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.

    In case, the problem remains, even after all the plugins are deactivated, provide your site admin access (insert the site credentials into the Private content block under the message area) and confirm the permission for plugins deactivation, switching to the parent or default 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

    #339125

    avila345
    Participant

    Unfortunately, the problem still exists after deactivating all plugins.

    #339359

    Hello,

    Please add this line into the functions.php of the child theme:

    add_filter( 'woodmart_swatches_cache', '__return_false' );

    WoodMart theme has the cache for variations to reduce the number of queries. This line would disable the cache.

    Best Regards

    #339382

    avila345
    Participant

    Done! thank you very much

    #339557

    You are welcome! We are here to help.

    Wish you a wonderful day!

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

The topic ‘Attribute swatches not always showing on archive pages’ is closed to new replies.