Jump to content

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...