Jump to content


Corporate Sponsors


Latest News: (loading..)

Sheepish

Member Since 24 Sep 2004
Offline Last Active Nov 12 2011, 17:54
-----

Posts I've Made

In Topic: "Cannot redeclare ..."

07 November 2011, 12:20

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!

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...

<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