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?
Latest News: (loading..)
Dynamic images in facebook
Started by maxemus, Dec 07 2010, 15:20
1 reply to this topic
#1
Posted 07 December 2010, 15:20
#2
Posted 30 March 2011, 13:06
maxemus, 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?
<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














