bsmither Posted September 19, 2015 Share Posted September 19, 2015 The macros displayed to you when editing an email template are static. This list is hard-coded into the PHP admin source file. This list could be outdated as well. The list is an annotation of what the core code product data arrays should be -- not a real-time reflection of what data is actually available. That is, if a mod adds more data to the arrays, unless that mod somehow makes an adjustment to these data arrays, the new data will not show as a macro.Having said that, in /classes/catalogue.class.php, near line 876:Find: foreach ($result as $product) { $GLOBALS['language']->translateProduct($product); $this->getProductPrice($product, $quantity); Change to: foreach ($result as $product) { $GLOBALS['language']->translateProduct($product); $this->getProductPrice($product, $quantity); $product['full_image_url'] = $GLOBALS['gui']->getProductImage($product['product_id'],'subcategory');Again, you won't see this in the list of macros, but you should now be able to use: {$product.full_image_url} as the macro for an <img> tag, the src="x" attribute. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.