• Resolved peterchaaya

    (@peterchaaya)


    Hey! I am having an issue where the variations that i set to be shown are showing in the main shop page but not in the “Related Products” section on a product page:
    What is needed here is to have a unified look and feel throughout the store’s pages.?Like so. Whereas, currently the related products on a product page?appear like so

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter peterchaaya

    (@peterchaaya)

    Hey! I also notice a new big issue, the plugin is slowing down the website by ALOT:
    Plugin Deactived: https://snipboard.io/UBD0v7.jpg
    Plugin Activated: https://snipboard.io/mi5vU3.jpg
    Is that normal? And how can i fix that issue?

    Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @peterchaaya,

    Just to confirm, have you tested by disabling all other plugins? If not, please disable all plugins except WooCommerce, Variation Swatches, and Page Builder plugins. Then, check the page speed again and let us know your findings.

    Looking forward to hearing from you.

    Thread Starter peterchaaya

    (@peterchaaya)

    Hey!

    I disabled all other plugins and only kept the page builder plugins, and still same high load time. i tried to disable the variation swatches plugin and when i entered the website, it took much lesser time to load.

    Thanks in advance!

    Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @peterchaaya,

    I will forward this scenario to our internal team, they will review and once I hear from them I will update you again.

    I was here looking for the solution of the initial question of OP. After some research I see support of Cartflows mentioning adding a filter to let this plugin work on pages. “By default, the variation swatches work on the default WooCommerce shop/archive pages and product pages.”

    Although the ‘related products’ are on product pages, it doesn’t show the variations on ‘related’ and ‘upsell’ products.

    For anyone who needs the solution:
    Try this filter code. For reference and guidance to make it suits your needs, read: https://www.businessbloomer.com/woocommerce-conditional-logic-ultimate-php-guide/

    add_filter( 'cfvsw_requires_shop_settings', function( $status ){
      global $woocommerce_loop;
     
      if ( is_product() && $woocommerce_loop['name'] == 'related' ) {
        return true;
      }
      return $status;
    });
    is_product() && $woocommerce_loop['name'] == 'related' can be replaced by the desired condition.
    • This reply was modified 7 months, 1 week ago by CHM82.
    Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @chm82,

    Thank you for sharing your findings. Yes, the filter code useful in displaying variations on any page. This functionality will greatly benefit users who wish to showcase variations on different pages or locations according to their preferences.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Variations in related products (WooCommerce)’ is closed to new replies.