Jump to content

Problem on mouse over of the product icon image


zjermy

Recommended Posts

Helo everybody. I have a problem. I just want to finish my shop. I put product images for my shop, but when I make mouse over of product image, the roll over image didn't display correctly. Of course I put two image on product images. Can somebody  to help me with solution ? I work on prestashop 1.7.2..1. My site address is https://zomoshop.ro/ro/, .

Thanks

error.jpg

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

Hello everybody, I find the solution for related problem. It mast necessary to make some modification on appagebuilder.php, on ...\appagebuilder

1.

First need to replace row (apr row 2111):
 $obj[] = array('id' => $product['id_product'], 'content' => ($this->display(__FILE__, 'product.tpl')));

With:
    $obj[] = array('id' => $product['id_product'], 'content' => ($link->getImageLink($product["link_rewrite"], $product["id_image"], 'home_default')));
        }

2

On second step rewrite row, (apr row 2325) :
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (i.`id_product` = pl.`id_product`)

with:

LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (i.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)$id_lang.')

And now everything become perfect

Regards

Edited by zjermy (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...