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

Selected variant on shop page not carrying through to product page

Sam Holguin

Hello,

When selecting a variant on shop page using the image swatches the selected variant is not preselecting on the product page after clicking through.

I have tried to debug your plugin, in the file class-woo-variation-swatches-pro-product-page.php there’s a single_product_dropdown() method that looks at the PHP $_REQUEST object, but the object does not contain any information.

Best,

Sam

Hakik Zaman

Hi Sam,

Thanks for reaching out to us.

Could you record me reproducing your issue using a tool like this? https://www.useloom.com
It helps me to quickly figure out the issue.

Thank you

Hakik Zaman

Hi Sam,

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!

Sam Holguin

Hello,

Thanks for coming back.

Unfortunately, we cannot provide that level of access with this being a client website that contains a lot of sensitive data.

I’d be happy to jump on a screen share?

Best,

Sam

Hakik Zaman

Hi Sam,

In that case, we need a staging site with the same setup. So that I can send it to our development team to check.

If you have a staging site please share the details otherwise I can also give you a staging site.

You just need to recreate/replicate the issue on that staging. Please let me know your thought.

Thank You

Sam Holguin

Hello,

This still does not work for me.

I have followed your screencast – https://www.loom.com/share/6c5074dcb32542c19f2571e90545b750

I have checked the output in this file:

includes/class-woo-variation-swatches-pro-product-page.php (line 724)

$args[‘selected’] and $_REQUEST do not contain the correct data.

Here is my screencast showing:

The feature not working
My settings

When debugging $args[‘selected’] I get the following:

[10-Jul-2023 18:04:37 UTC] black-amber (WRONG, should be scarlet-black)
[10-Jul-2023 18:04:38 UTC] child-1820

Please help!

Sam

 

Hakik Zaman

Hi Sam,

Please check my previous reply. That is about 5 months ago.

You didn’t share a site link nor gave us access to your staging site to check it further.

How can I help if you don’t allow me to help you?

Thank You