Jump to content

[RESOLU] getProducts Image Product


Recommended Posts

Dans mon fichier php, j'ai assigné une variable 

$smarty->assign('link', new Link());

car dans les exemples que je trouve, il affiche toujours dans le tpl $link mais je ne le vois pas

 

Et dans mon tpl, j'ai placé ceci:

<img id="small_pic" src="{$link->getImageLink($product->link_rewrite)}" />

Mais le time out est dépassé... Forcément, pas de time out si j'enleve la balise img...

 

Avez-vous une idée?

Share this post


Link to post
Share on other sites

Bonjour,

 

avez vous regardé la structure de l'appel de la fonction getImageLink() ?

    /**
     * Returns a link to a product image for display
     * Note: the new image filesystem stores product images in subdirectories of img/p/
     *
     * @param string $name rewrite link of the image
     * @param string $ids id part of the image filename - can be "id_product-id_image" (legacy support, recommended) or "id_image" (new)
     * @param string $type
     */
    public function getImageLink($name, $ids, $type = null)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More