[Skip to main content](#vessel-content)

#   Order confirmation email without images

##

- **[Dijkshoorn](/forum/user/44827-dijkshoorn "View Dijkshoorn's Profile")**
- [![Dijkshoorn's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44827-dijkshoorn "View Dijkshoorn's Profile") Topic Author
- [ Offline](/forum/user/44827-dijkshoorn)

Less More

- Posts: 40
- Thank you received: 2
-
-

6 years 1 month ago [\#324833](#324833) by [Dijkshoorn](/forum/user/44827-dijkshoorn "View Dijkshoorn's Profile")  *[Order confirmation email without images](/forum/35-orders-management/900986-order-confirmation-email-without-images#324833 "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 &quot;preload version&quot; code. And I've found the...")* was created by *[Dijkshoorn](/forum/user/44827-dijkshoorn "View Dijkshoorn's Profile")*

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' =&gt; $item-&gt;order_product_code, 'PRODUCT_QUANTITY' =&gt; $item-&gt;order_product_quantity, 'PRODUCT_IMG' =&gt; '', 'item' =&gt; $item, 'product' =&gt; $product, ); if(!empty($item-&gt;images[0]-&gt;file_path) &amp;&amp; $config-&gt;get('thumbnail', 1) != 0) { $img = $imageHelper-&gt;getThumbnail($item-&gt;images[0]-&gt;file_path, array(50, 50), array('forcesize' =&gt; true, 'scale' =&gt; 'outside')); if($img-&gt;success) { if(substr($img-&gt;url, 0, 3) == '../') $image = str_replace('../', HIKASHOP_LIVE, $img-&gt;url); else $image = substr(HIKASHOP_LIVE, 0, strpos(HIKASHOP_LIVE, '/', 9)) . $img-&gt;url; $attributes = ''; if($img-&gt;external) $attributes = ' width="'.$img-&gt;req_width.'" height="'.$img-&gt;req_height.'"'; $cartProduct['PRODUCT_IMG'] = '&lt;img src="'.$image.'" alt="" style="float:left;margin-top:3px;margin-bottom:3px;margin-right:6px;"'.$attributes.'/&gt;'; } }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMDk4Ni1vcmRlci1jb25maXJtYXRpb24tZW1haWwtd2l0aG91dC1pbWFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

6 years 1 month ago [\#324840](#324840) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order confirmation email without images](/forum/35-orders-management/900986-order-confirmation-email-without-images#324840 "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 &quot;preload version&quot; code. And I've found the...")*

Hi,

I don't think you want to change the preload.
Instead, in the HTML version, just remove the two lines: Code:

&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:left;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_NAME}&lt;/td&gt;

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](/forum/user/44827-dijkshoorn "View Dijkshoorn's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMDk4Ni1vcmRlci1jb25maXJtYXRpb24tZW1haWwtd2l0aG91dC1pbWFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
