Jump to content

On attributes change products images hide except first one, how turn off


Recommended Posts

On attributes change, products images hide except first one, how turn off....i dont have attributes/groups images, only products images.

 

When i select other size/color on product page all products images hide except first one...

 

 

also i need some rule that hide attributes with quantity = 0 (don't say go to bo on products tab, that option never work!)

Link to comment
Share on other sites

  • 2 months later...
  • 4 weeks later...

It shows the images that you have selected for the combination.

If you want to disable this feature, if you let us know the version number I could point you to the spot in product.js

Hi, my version is 1.4.6.2 and i want to disable this feature. Please can you tell me which lines i have to remove in product.js? I already spent about 1 hour , trying to do it by myself in product.js, but got nothing....

Edited by sad (see edit history)
Link to comment
Share on other sites

Edit /themes/_your_theme/js/product.js and change


function refreshProductImages(id_product_attribute)
{
.....

To

 

function refreshProductImages(id_product_attribute)

{

return;

......

[/code]

 

Save, clear your browser cache and try.

  • Like 2
Link to comment
Share on other sites

Edit /themes/_your_theme/js/product.js and change
 function refreshProductImages(id_product_attribute) { ..... 

To function refreshProductImages(id_product_attribute) { return; ...... [/code] Save, clear your browser cache and try.

thanks mate , i got it.

Link to comment
Share on other sites

  • 1 year later...

Edit /themes/_your_theme/js/product.js and change


function refreshProductImages(id_product_attribute)
{
.....
To

 

function refreshProductImages(id_product_attribute)

{

return;

......

[/code]

 

Save, clear your browser cache and try.

 

Tomer,

 

How do I do this for my site?   I am using prestashop 1.4.9

 

Thank you

Link to comment
Share on other sites

×
×
  • Create New...