I was banging my head on the desk trying to sort out a problem and this helped me solve it in a couple of mins.
Thanks Germ!
- osCommerce Support Forum
- → Viewing Profile: Sheepish
Latest News: (loading..)
Community Stats
- Group Community Member
- Active Posts 34 (0.01 per day)
- Most Active In General Add-Ons Support (23 posts)
- Profile Views 2,783
- Age Age Unknown
- Birthday Birthday Unknown
-
Real Name
Martin
-
Gender
Not Telling
Contact Information
1
Neutral
Friends
Sheepish hasn't added any friends yet.
Latest Visitors
Posts I've Made
In Topic: "Cannot redeclare ..."
07 November 2011, 12:20
In Topic: [Contribution] STS v4
03 November 2011, 16:11
Hi. I'm in the process of putting a Facebook like button on my products. All working well with STS and the button works but it would be handy to have the product image appear on the Facebook page who liked me (at the moment facebook seems to pick a random image on the page and not the product image). To force that, I need to put (in the header of the product page) the following code...
<meta property="og:image" content="<?php print 'http://' . $_SERVER['SERVER_NAME'] . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $product_info['products_image']; ?>" />
At the moment, if I put that in my product_info.php template I get...
i.e. the actual image $product_info['products_image'] isn't tagged onto the end.
Excuse my lack of knowledge but I'm assuming that's a mysql array that it's working on? Is there a way of getting the image inserted into the code?
Thanks
Martin
<meta property="og:image" content="<?php print 'http://' . $_SERVER['SERVER_NAME'] . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $product_info['products_image']; ?>" />
At the moment, if I put that in my product_info.php template I get...
<meta property="og:image" content="http://www.domain.co.uk/images/" />
i.e. the actual image $product_info['products_image'] isn't tagged onto the end.
Excuse my lack of knowledge but I'm assuming that's a mysql array that it's working on? Is there a way of getting the image inserted into the code?
Thanks
Martin
- osCommerce Support Forum
- → Viewing Profile: Sheepish
- Forum Rules






Find content
