Guest Posted February 4, 2009 Share Posted February 4, 2009 Hi, Just wondering if anyone can advise me where I'm going wrong please - have not been doing php very long. I have a jewellery store and some of the jewellery items have product options such as size, stone colour, bar colour etc and so obviously these are in the product attributes. What I have done is added an image of the different stone colours to the catalog/product_info.php but of course this image shows up on any product which is showing any attributes and I only want the image to show up when one of the attributes is the stone colour. Am I making sense so far? i.e. if the options for a piece of jewellery are only size then I don't want the stone colours image to show but if the options for a piece of jewellery are size and stone colour then I would like the stone colours image to show. I have looked and looked online to try to help and have tried the following: catalog/includes/languages/english/product_info.php define('TEXT_PRODUCT_STONE_COLOURS', '<img src="images/stone_colours1.gif" border="0">'); catalog/product_info.php <?php if ($products_options_id = 4) echo TEXT_PRODUCT_STONE_COLOURS; ?> But it isn't working - if any product has product attributes whether they be for the size or stone colour or both the image is till showing. Is there anyone out there that can help me? Much appreciated ;0) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.