Hello,
I want to display a few products in a module, which I'm doing on my own, but I can not find the associated link to the pictures of the product. The pictures are stored in media/.... , but how can I display the pictures of e.g a product with the product_id of '20' (in MySQL)?
If the link would be saved in the database, I could do something like that:
$res = "SELECT * FROM bak_hikashop_product WHERE product_id = 20";
while ($data = mysql_fetch_assoc($res))
{
$product_name = $data["product_name"];
$product_image_link = $data["PRODUCT_LINK"] // doesn't exist in table
echo "<img src='$product_image_link'>";
}
But how can I get the link to the picture belonging to the product?
Thank You,
Storm =)