Why does the wrong product title appear when clicking a photo?

Good morning everyone,

I am having issues when customers click on a photo the incorrect product title appears. it is only happening on the last two new products I added all the others work fine and I can’t work out why.

I am using the Debut theme.

www.youroutdoorexperience.com.au

https://www.youroutdoorexperience.com.au/collections/hide-up/products/hideup-hu-150?variant=42233461899418 The two products it is affecting are #73 Winning Chart and #78 AD50.

Any help would be much appreciated. Thank you!

Hi @BBark ,

I checked your site. I saw something wrong here. Code only handle Image that have contains “/products” string in the src of image. 2 lastest images dont’t contains this string. You can check the screenshot below:

May I suggest to update code these steps:

  1. Go to Store Online-> theme → edit code
  2. Assets/theme.js
  3. Go to to 9358 line

replace

const thumbnails = document.querySelectorAll('#'+ sectionId + ' img[src*="/products/"]');

with code below

const thumbnails = document.querySelectorAll('#'+ sectionId + ' a.product-single__thumbnail  img');
1 Like

Amazing that worked perfectly thank you so much!!