fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

How to show variations in a custom product loop

Byron Lee

Hi,

Thanks for the great plugin. I need to display the product variations through a custom WP_Query loop on a page template. Do you have any option/shortcode to display the variations on any page template?

Thanks

Hakik Zaman

Hello Byron,

Thanks for reaching out to us. Please put the below code inside your product loop

<?php do_action('wvs_pro_variation_show_archive_variation'); ?>

Thanks

Byron Lee

Hello,

Thank you for your custom code. Now it’s showing variations but the image does not change when I click on variations. Can you send me an example custom code?

Thanks

Hakik Zaman

Hello Byron Lee,

Glad to know your first issue is resolved. Please check this screencast.

If it doesn’t help, can you please give us temporary admin access to your site? We’ll try to investigate the issue for you.

You can add new users by going to Users > Add New set the user and password for us, set the role to admin, and set the info here.

And add your site URL, login username, and password in the site login area. Follow this guideline: https://www.useloom.com/share/27c1f2ac633c4060b2da883d946107d7

Hope to hear from you soon!

Thanks