Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Dynamic images in facebook


  • You cannot reply to this topic
1 reply to this topic

#1 maxemus

  • Community Member
  • 106 posts
  • Real Name:Raphael Muscarelle
  • Gender:Male

Posted 07 December 2010, 15:20

this should work but don't

<link rel="image_src" href="<?php echo tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) ?>" >

it outputs <link rel="image_src" href="http://mysite.com/images/" > and leaves out the product image.

I think the problem lies in $product_info['products_image'] is not defined yet in the head section of the page. Later in the page the sql is asserted to define it. the question is How to get $product_info['products_image'] defined in the header section?

#2 SimoNtpf

  • Community Member
  • 33 posts
  • Real Name:Michal Rimal

Posted 30 March 2011, 13:06

View Postmaxemus, on 07 December 2010, 15:20, said:

this should work but don't

<link rel="image_src" href="<?php echo tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) ?>" >

it outputs <link rel="image_src" href="http://mysite.com/images/" > and leaves out the product image.

I think the problem lies in $product_info['products_image'] is not defined yet in the head section of the page. Later in the page the sql is asserted to define it. the question is How to get $product_info['products_image'] defined in the header section?

Have you solved this problem?
I am trying to solve it right now.
Thank you