Skip to main content

Order confirmation email without images

More
5 years 11 months ago #324833 by Dijkshoorn
We print every order confirmation for order picking, the images make the emails a little harder to read. I've found that I can remove them by altering the "preload version" code. And I've found the piece of code that needs to be altered, but since I'm not really great at this I get syntax errors while trying to make a purchase on the webshop if I make changes to the code.

What should I remove to not display the images anymore?
Code:
$cartProduct = array( 'PRODUCT_CODE' => $item->order_product_code, 'PRODUCT_QUANTITY' => $item->order_product_quantity, 'PRODUCT_IMG' => '', 'item' => $item, 'product' => $product, ); if(!empty($item->images[0]->file_path) && $config->get('thumbnail', 1) != 0) { $img = $imageHelper->getThumbnail($item->images[0]->file_path, array(50, 50), array('forcesize' => true, 'scale' => 'outside')); if($img->success) { if(substr($img->url, 0, 3) == '../') $image = str_replace('../', HIKASHOP_LIVE, $img->url); else $image = substr(HIKASHOP_LIVE, 0, strpos(HIKASHOP_LIVE, '/', 9)) . $img->url; $attributes = ''; if($img->external) $attributes = ' width="'.$img->req_width.'" height="'.$img->req_height.'"'; $cartProduct['PRODUCT_IMG'] = '<img src="'.$image.'" alt="" style="float:left;margin-top:3px;margin-bottom:3px;margin-right:6px;"'.$attributes.'/>'; } }

Please Log in or Create an account to join the conversation.

More
5 years 11 months ago #324840 by nicolas
Hi,

I don't think you want to change the preload.
Instead, in the HTML version, just remove the two lines:
Code:
<td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:left;color:#1c8faf !important;font-size:12px;font-weight:bold;">{TXT:PRODUCT_NAME}</td>
and:
Code:
{LINEVAR:PRODUCT_IMG}
which add the image column to the products listing.

Best regards,
Nicolas
The following user(s) said Thank You: Dijkshoorn

Please Log in or Create an account to join the conversation.

Time to create page: 0.188 seconds
Powered by Kunena Forum