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

#   Email template causing issues

##

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

Less More

- Posts: 181
- Thank you received: 28
-
-

2 weeks 6 days ago -  2 weeks 6 days ago [\#100000297](#100000297) by [yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")  *[Email template causing issues](/forum/35-orders-management/100000060-email-template-causing-issues#100000297 "-- HikaShop version -- : 6.7.0 -- Joomla version -- : 6.2.0 -- Browser(s) name and version -- :  Firefox 157.0  Preview Order Status Notification I get the following error in the popup with errors/debug enabled ....  0 syntax error, unexpected token &quot;verride&quot; is &#42; @version 6.7.0  I'm thinking these are all interconnected but may be totally wrong")* was created by *[yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")*

-- HikaShop version -- : 6.7.0
-- Joomla version -- : 6.2.0
-- Browser(s) name and version -- :  Firefox 157.0

Preview Order Status Notification I get the following error in the popup with errors/debug enabled ....

0 syntax error, unexpected token "&lt;", expecting end of file

Code:

\# Function Location 1 () JROOT/media/com_hikashop/mail/order_status_notification.confirmed.preload.php:546 2 hikashopMailClass-&gt;loadEmail() JROOT/administrator/components/com_hikashop/classes/mail.php:128 3 hikashopMailClass-&gt;get() JROOT/administrator/components/com_hikashop/classes/order.php:2430 4 hikashopOrderClass-&gt;loadOrderNotification() JROOT/administrator/components/com_hikashop/classes/order.php:2389 5 hikashopOrderClass-&gt;loadNotification() JROOT/media/com_hikashop/mail/order_status_notification.preview.php:20 6 order_status_notificationPreviewMaker-&gt;prepareMail() JROOT/administrator/components/com_hikashop/views/email/view.html.php:357 7 EmailViewEmail-&gt;preview() JROOT/administrator/components/com_hikashop/views/email/view.html.php:24 8 EmailViewEmail-&gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:705 9 Joomla\CMS\MVC\Controller\BaseController-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:3216 10 hikashopController-&gt;display() JROOT/administrator/components/com_hikashop/controllers/email.php:124 11 emailController-&gt;preview() JROOT/libraries/src/MVC/Controller/BaseController.php:738 12 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:3194 13 hikashopController-&gt;execute() JROOT/administrator/components/com_hikashop/hikashop.php:77 14 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 15 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::{closure:Joomla\CMS\Dispatcher\LegacyComponentDispatcher::dispatch():70}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73 16 Joomla\CMS\Dispatcher\LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361 17 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150 18 Joomla\CMS\Application\AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:206 19 Joomla\CMS\Application\AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:320 20 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/administrator/includes/app.php:58 21 require_once() JROOT/administrator/index.php:32

The template is below ....
Code:

&lt;?php /** * @package HikaShop * @version 6.7.0 * @author hikashop.com * @copyright (C) 2010-2026 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or defined('ABSPATH') or die('Restricted access'); ?&gt;&lt;?php $app = \Joomla\CMS\Factory::getApplication(); $config = hikashop_config(); $orderClass = hikashop_get('class.order'); $imageHelper = hikashop_get('helper.image'); $productClass = hikashop_get('class.product'); $fieldsClass = hikashop_get('class.field'); global $Itemid; $url_itemid = ''; if(!empty($Itemid)) { $url_itemid = '&amp;Itemid=' . $Itemid; } if(isset($data-&gt;url_itemid)) { $url_itemid = (!empty($data-&gt;url_itemid) ? '&amp;Itemid=':'') . $data-&gt;url_itemid; } $order_url = $data-&gt;order_url; $mail_status = $data-&gt;mail_status; $customer = $data-&gt;customer; if(!isset($data-&gt;order)) $data-&gt;order = new stdClass(); $fs = array('order_number','order_discount_tax','order_shipping_tax','order_payment_tax','order_full_price','order_shipping_price','order_payment_price','order_discount_price','order_currency_id','order_status'); foreach($fs as $f) { if(isset($data-&gt;$f) &amp;&amp; !isset($data-&gt;order-&gt;$f)) $data-&gt;order-&gt;$f = $data-&gt;$f; } $data-&gt;order-&gt;order_url = $order_url; $data-&gt;cart = $orderClass-&gt;loadFullOrder($data-&gt;order_id,true,false); if(hikashop_level(2)) { $itemFields = $fieldsClass-&gt;getFields('display:mail_status_notif=1', $data-&gt;cart-&gt;products, 'item'); } $url = $data-&gt;order_number = $data-&gt;cart-&gt;order_number; $url = '&lt;a href="'.$order_url.'"&gt;'. $url.'&lt;/a&gt;'; $data-&gt;cart-&gt;coupon = new stdClass(); $price = new stdClass(); $tax = $data-&gt;cart-&gt;order_subtotal - $data-&gt;cart-&gt;order_subtotal_no_vat - $data-&gt;cart-&gt;order_discount_tax + $data-&gt;cart-&gt;order_shipping_tax + $data-&gt;cart-&gt;order_payment_tax; $price-&gt;price_value = max(0, $data-&gt;cart-&gt;order_full_price - $tax); $price-&gt;price_value_with_tax = $data-&gt;cart-&gt;order_full_price; $data-&gt;cart-&gt;full_total = new stdClass; $data-&gt;cart-&gt;full_total-&gt;prices = array($price); $data-&gt;cart-&gt;coupon-&gt;discount_value =&amp; $data-&gt;cart-&gt;order_discount_price; if(hikashop_isClient('administrator')) { $view = 'order'; } else { $view = 'address'; } $colspan = 4; $customer_name = @$customer-&gt;name; if(empty($customer_name)) $customer_name = @$data-&gt;cart-&gt;billing_address-&gt;address_firstname.' '.@$data-&gt;cart-&gt;billing_address-&gt;address_lastname; $vars = array( 'LIVE_SITE' =&gt; HIKASHOP_LIVE, 'URL' =&gt; $order_url, 'ORDER_PRODUCT_CODE' =&gt; (bool)$config-&gt;get('show_code', false), 'order' =&gt; $data-&gt;cart, 'user' =&gt; $customer, 'customer' =&gt; $customer, 'billing_address' =&gt; @$data-&gt;cart-&gt;billing_address, 'shipping_address' =&gt; @$data-&gt;cart-&gt;shipping_address, 'TPL_HEADER' =&gt; (bool)@$customer-&gt;user_cms_id, 'TPL_HEADER_URL' =&gt; $order_url, ); $order_changed = \Joomla\CMS\Language\Text::sprintf('ORDER_STATUS_CHANGED_TO', $url, $data-&gt;mail_status); if(!empty($data-&gt;usermsg-&gt;usermsg)) $order_changed = $data-&gt;usermsg-&gt;usermsg; $texts = array( 'BILLING_ADDRESS' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_BILLING_ADDRESS'), 'SHIPPING_ADDRESS' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_SHIPPING_ADDRESS'), 'SUMMARY_OF_YOUR_ORDER' =&gt; \Joomla\CMS\Language\Text::_('SUMMARY_OF_YOUR_ORDER'), 'MAIL_HEADER' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_MAIL_HEADER'), 'TPL_HEADER_TEXT' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_MAIL_HEADER'), 'USER_ACCOUNT' =&gt; (bool)@$customer-&gt;user_cms_id, 'PRODUCT_NAME' =&gt; \Joomla\CMS\Language\Text::_('CART_PRODUCT_NAME'), 'PRODUCT_CODE' =&gt; \Joomla\CMS\Language\Text::_('CART_PRODUCT_CODE'), 'PRODUCT_PRICE' =&gt; \Joomla\CMS\Language\Text::_('CART_PRODUCT_UNIT_PRICE'), 'PRODUCT_QUANTITY' =&gt; \Joomla\CMS\Language\Text::_('CART_PRODUCT_QUANTITY'), 'PRODUCT_TOTAL' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_TOTAL'), 'ADDITIONAL_INFORMATION' =&gt; \Joomla\CMS\Language\Text::_('ADDITIONAL_INFORMATION'), 'ORDER_TITLE' =&gt; \Joomla\CMS\Language\Text::_('YOUR_ORDER'), 'HI_CUSTOMER' =&gt; \Joomla\CMS\Language\Text::sprintf('HI_CUSTOMER', $customer_name), 'ORDER_CHANGED' =&gt; $order_changed, 'ORDER_BEGIN_MESSAGE' =&gt; \Joomla\CMS\Language\Text::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE), 'ORDER_END_MESSAGE' =&gt; \Joomla\CMS\Language\Text::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '&lt;br/&gt;' . \Joomla\CMS\Language\Text::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name), ); if(!empty($data-&gt;usermsg-&gt;usermsg)){ $texts['ORDER_CHANGED'] = $data-&gt;usermsg-&gt;usermsg; } $templates = array(); $products_ids = array(); foreach($data-&gt;cart-&gt;products as $item) { $products_ids[] = $item-&gt;product_id; } $productClass-&gt;getProducts($products_ids); $product_aliases = $productClass-&gt;getUrlAliases($products_ids); $cartProducts = array(); $cartFooters = array(); if(!empty($data-&gt;cart-&gt;products)){ $null = null; $fields = null; $texts['CUSTOMFIELD_NAME'] = ''; $texts['FOOTER_COLSPAN'] = 3; if(hikashop_level(1)){ $fields = $fieldsClass-&gt;getFields('display:mail_status_notif=1',$null,'product'); if(!empty($fields)){ $product_customfields = array(); $usefulFields = array(); foreach($fields as $field){ $namekey = $field-&gt;field_namekey; foreach($productClass-&gt;all_products as $product){ if(!empty($product-&gt;$namekey)){ $usefulFields[] = $field; break; } } } $fields = $usefulFields; } if(!empty($fields)){ foreach($fields as $field){ $texts['FOOTER_COLSPAN']++; $texts['CUSTOMFIELD_NAME'].='&lt;td class="hk-th" style="font-size:12px;line-height:16px;font-weight:bold;letter-spacing:0.5px;text-transform:uppercase;color:#6b7280;padding:12px 8px 8px 0;border-bottom:1px solid #e3e6ea;"&gt;'.$fieldsClass-&gt;getFieldName($field).'&lt;/td&gt;'; } } } $group = $config-&gt;get('group_options',0); $subtotal = 0; foreach($data-&gt;cart-&gt;products as $item) { if($group &amp;&amp; $item-&gt;order_product_option_parent_id) continue; $product = @$productClass-&gt;all_products[$item-&gt;product_id]; $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); elseif(!$img-&gt;external) $image = substr(HIKASHOP_LIVE, 0, strpos(HIKASHOP_LIVE, '/', 9)) . $img-&gt;url; else $image = $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="" align="left" style="float:left;margin:2px 10px 4px 0;border-radius:4px;"'.$attributes.'/&gt;'; } } if(!empty($item-&gt;product_id)) { $product_url = hikashop_contentLink('product&amp;task=show&amp;cid='.(int)$item-&gt;product_id.'&amp;name='.@$product_aliases[$item-&gt;product_id].$url_itemid, $item, false, false, false, true); if(!empty($data-&gt;cart-&gt;order_token)) { $product_url .= (strpos($product_url, '?') !== false ? '&amp;' : '?') . 'order_id='.(int)$data-&gt;order_id . '&amp;order_token='.urlencode($data-&gt;cart-&gt;order_token); } $t = '&lt;p&gt;&lt;a href="'.$product_url.'"&gt;' . $item-&gt;order_product_name . '&lt;/a&gt;'; } else { $t = '&lt;p&gt;' . $item-&gt;order_product_name; } if($group){ $display_item_price=false; foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;order_product_option_parent_id != $item-&gt;order_product_id) continue; if($optionElement-&gt;order_product_price&gt;0){ $display_item_price = true; } } if($display_item_price){ if($config-&gt;get('price_with_tax')){ $t .= ' '.$currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$data-&gt;cart-&gt;order_currency_id); }else{ $t .= ' '.$currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;cart-&gt;order_currency_id); } } } $t .= '&lt;/p&gt;'; if(!empty($itemFields)){ foreach($itemFields as $field){ $namekey = $field-&gt;field_namekey; if(!isset($item-&gt;$namekey) &#124;&#124; (empty($item-&gt;$namekey) &amp;&amp; !strlen((string)$item-&gt;$namekey))) continue; $field-&gt;currentElement = $item; $t .= '&lt;p&gt;'.$fieldsClass-&gt;getFieldName($field).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey,'user_email',$data-&gt;cart-&gt;order_token).'&lt;/p&gt;'; } } $cartProduct['CUSTOMFIELD_VALUE'] = ''; if(!empty($fields) &amp;&amp; hikashop_level(1)){ foreach($fields as $field){ $namekey = $field-&gt;field_namekey; $productData = @$productClass-&gt;all_products[$item-&gt;product_id]; $field-&gt;currentElement = $productData; $cartProduct['CUSTOMFIELD_VALUE'] .= '&lt;td class="hk-td hk-num" style="font-size:15px;line-height:22px;padding:12px 0 12px 14px;border-bottom:1px solid #e3e6ea;vertical-align:top;text-align:right;white-space:nowrap;"&gt;'.(empty($productData-&gt;$namekey)?'':$fieldsClass-&gt;show($field,$productData-&gt;$namekey)).'&lt;/td&gt;'; } } if($group){ foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;order_product_option_parent_id != $item-&gt;order_product_id) continue; $item-&gt;order_product_price +=$optionElement-&gt;order_product_price; $item-&gt;order_product_tax +=$optionElement-&gt;order_product_tax; $item-&gt;order_product_total_price+=$optionElement-&gt;order_product_total_price; $item-&gt;order_product_total_price_no_vat+=$optionElement-&gt;order_product_total_price_no_vat; $t .= '&lt;p class="hikashop_order_option_name"&gt;' . $optionElement-&gt;order_product_name; if($optionElement-&gt;order_product_price&gt;0){ if($config-&gt;get('price_with_tax')){ $t .= ' ( + '.$currencyHelper-&gt;format($optionElement-&gt;order_product_price+$optionElement-&gt;order_product_tax,$data-&gt;cart-&gt;order_currency_id).' )'; }else{ $t .= ' ( + '.$currencyHelper-&gt;format($optionElement-&gt;order_product_price,$data-&gt;cart-&gt;order_currency_id).' )'; } } $t .= '&lt;/p&gt;'; } } $cartProduct['PRODUCT_NAME'] = $t; $t = ''; $statusDownload = explode(',',$config-&gt;get('order_status_for_download','confirmed,shipped')); if($group) { foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement) { if($optionElement-&gt;order_product_option_parent_id != $item-&gt;order_product_id) continue; if(!empty($optionElement-&gt;files)) { if(empty($item-&gt;files)) { $item-&gt;files = array(); } foreach($optionElement-&gt;files as $file) { $item-&gt;files[] = $file; } } } } if(!empty($item-&gt;files) &amp;&amp; in_array($data-&gt;order_status,$statusDownload)){ $class = 'class="cart_button hika_template_color" style="display:inline-block;background-color:#2f6f9f;color:#ffffff;font-weight:bold;text-decoration:none;padding:12px 24px;border-radius:8px;"'; $t .= '&lt;p&gt;'; foreach($item-&gt;files as $file){ $fileName = empty($file-&gt;file_name) ? $file-&gt;file_path : $file-&gt;file_name; $file_pos = empty($file-&gt;file_pos) ? '' : ('&amp;file_pos=' . $file-&gt;file_pos); if(empty($customer-&gt;user_cms_id)) $file_pos .= '&amp;order_token=' . $data-&gt;cart-&gt;order_token; $oid = $data-&gt;order_id; if(!empty($data-&gt;cart-&gt;order_parent_id)) $oid = $data-&gt;cart-&gt;order_parent_id; $t .= '&lt;a '.$class.'href="'.hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$data-&gt;order_id.$file_pos.$url_itemid).'"&gt;'.$fileName.'&lt;/a&gt;&lt;br/&gt;'; } $t .= '&lt;/p&gt;'; } $cartProduct['PRODUCT_DOWNLOAD'] = $t; $cartProduct['PRODUCT_PRICE_BEFORE_DISCOUNT'] = ''; if($config-&gt;get('price_with_tax')){ $unit_price = $currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$data-&gt;cart-&gt;order_currency_id); if(!empty($item-&gt;order_product_price_before_discount) &amp;&amp; $item-&gt;order_product_price_before_discount &gt; 0.0) $cartProduct['PRODUCT_PRICE_BEFORE_DISCOUNT'] =  $currencyHelper-&gt;format($item-&gt;order_product_price_before_discount+$item-&gt;order_product_tax_before_discount,$data-&gt;cart-&gt;order_currency_id); $total_price = $currencyHelper-&gt;format($item-&gt;order_product_total_price,$data-&gt;cart-&gt;order_currency_id); $subtotal += $item-&gt;order_product_total_price; }else{ $unit_price = $currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;cart-&gt;order_currency_id); if(!empty($item-&gt;order_product_price_before_discount) &amp;&amp; $item-&gt;order_product_price_before_discount &gt; 0.0) $cartProduct['PRODUCT_PRICE_BEFORE_DISCOUNT'] =  $currencyHelper-&gt;format($item-&gt;order_product_price_before_discount,$data-&gt;cart-&gt;order_currency_id); $total_price = $currencyHelper-&gt;format($item-&gt;order_product_total_price_no_vat,$data-&gt;cart-&gt;order_currency_id); $subtotal += $item-&gt;order_product_total_price_no_vat; } $cartProduct['PRODUCT_PRICE'] = $unit_price; $cartProduct['PRODUCT_TOTAL'] = $total_price; $cartProducts[] = $cartProduct; } $templates['PRODUCT_LINE'] = $cartProducts; if(bccomp(sprintf('%F',$data-&gt;cart-&gt;order_discount_price),0,5) != 0 &#124;&#124; bccomp(sprintf('%F',$data-&gt;cart-&gt;order_shipping_price),0,5) != 0 &#124;&#124; bccomp(sprintf('%F',$data-&gt;cart-&gt;order_payment_price),0,5) != 0 &#124;&#124; ($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value!=$data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax) &#124;&#124; !empty($data-&gt;cart-&gt;additional)){ $cartFooters[] = array( 'CLASS' =&gt; 'subtotal', 'NAME' =&gt; \Joomla\CMS\Language\Text::_('SUBTOTAL'), 'VALUE' =&gt; $currencyHelper-&gt;format($subtotal,$data-&gt;cart-&gt;order_currency_id) ); } if(bccomp(sprintf('%F',$data-&gt;cart-&gt;order_discount_price),0,5) != 0) { if($config-&gt;get('price_with_tax')) { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_discount_price*-1,$data-&gt;cart-&gt;order_currency_id); }else{ $t = $currencyHelper-&gt;format(($data-&gt;cart-&gt;order_discount_price-@$data-&gt;cart-&gt;order_discount_tax)*-1,$data-&gt;cart-&gt;order_currency_id); } $cartFooters[] = array( 'CLASS' =&gt; 'coupon', 'NAME' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_COUPON'), 'VALUE' =&gt; $t ); } if(bccomp(sprintf('%F',$data-&gt;cart-&gt;order_shipping_price),0,5) != 0){ if($config-&gt;get('price_with_tax')) { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_shipping_price,$data-&gt;cart-&gt;order_currency_id); }else{ $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_shipping_price-@$data-&gt;cart-&gt;order_shipping_tax,$data-&gt;cart-&gt;order_currency_id); } $cartFooters[] = array( 'CLASS' =&gt; 'shipping', 'NAME' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_SHIPPING'), 'VALUE' =&gt; $t ); } if(bccomp(sprintf('%F',$data-&gt;cart-&gt;order_payment_price),0,5) != 0){ if($config-&gt;get('price_with_tax')) { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_payment_price, $data-&gt;cart-&gt;order_currency_id); } else { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_payment_price - @$data-&gt;cart-&gt;order_payment_tax, $data-&gt;cart-&gt;order_currency_id); } $cartFooters[] = array( 'CLASS' =&gt; 'payment', 'NAME' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_PAYMENT'), 'VALUE' =&gt; $t ); } if(!empty($data-&gt;cart-&gt;additional)) { $exclude_additionnal = explode(',', $config-&gt;get('order_additional_hide', '')); foreach($data-&gt;cart-&gt;additional as $additional) { if(in_array($additional-&gt;order_product_name, $exclude_additionnal)) continue; if( (!empty($additional-&gt;order_product_price) &amp;&amp; ($additional-&gt;order_product_price &gt; 0) ) &#124;&#124; empty($additional-&gt;order_product_options)) { if($config-&gt;get('price_with_tax')){ $t = $currencyHelper-&gt;format($additional-&gt;order_product_price + @$additional-&gt;order_product_tax, $data-&gt;cart-&gt;order_currency_id); }else{ $t = $currencyHelper-&gt;format($additional-&gt;order_product_price, $data-&gt;cart-&gt;order_currency_id); } } else { $t = $additional-&gt;order_product_options; } $cartFooters[] = array( 'CLASS' =&gt; 'additional'.preg_replace('#[^a-z0-9_]#i','', strip_tags($additional-&gt;order_product_name)), 'NAME' =&gt; \Joomla\CMS\Language\Text::_($additional-&gt;order_product_name), 'VALUE' =&gt; $t ); } } if($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value!=$data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax) { if($config-&gt;get('detailed_tax_display') &amp;&amp; !empty($data-&gt;cart-&gt;order_tax_info)) { foreach($data-&gt;cart-&gt;order_tax_info as $k =&gt; $tax) { $cartFooters[] = array( 'CLASS' =&gt; 'tax_'.$k, 'NAME' =&gt; hikashop_translate($tax-&gt;tax_namekey), 'VALUE' =&gt; $currencyHelper-&gt;format($tax-&gt;tax_amount,$data-&gt;cart-&gt;order_currency_id) ); } } else { $cartFooters[] = array( 'CLASS' =&gt; 'total_without_tax', 'NAME' =&gt; \Joomla\CMS\Language\Text::_('ORDER_TOTAL_WITHOUT_VAT'), 'VALUE' =&gt; $currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value,$data-&gt;cart-&gt;order_currency_id) ); } $cartFooters[] = array( 'CLASS' =&gt; 'total_with_tax', 'NAME' =&gt; \Joomla\CMS\Language\Text::_('ORDER_TOTAL_WITH_VAT'), 'VALUE' =&gt; $currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$data-&gt;cart-&gt;order_currency_id) ); } else { $cartFooters[] = array( 'CLASS' =&gt; 'total_with_tax', 'NAME' =&gt; \Joomla\CMS\Language\Text::_('HIKASHOP_TOTAL'), 'VALUE' =&gt; $currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$data-&gt;cart-&gt;order_currency_id) ); } $templates['ORDER_FOOTER'] = $cartFooters; } if(!empty($data-&gt;cart-&gt;order_payment_method)) { if(!is_numeric($data-&gt;cart-&gt;order_payment_id)){ $vars['PAYMENT'] = $data-&gt;cart-&gt;order_payment_method.' '.$data-&gt;cart-&gt;order_payment_id; }else{ $paymentClass = hikashop_get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;cart-&gt;order_payment_id); if(!empty($payment)) $vars['PAYMENT'] = $payment-&gt;payment_name; else $vars['PAYMENT'] = $data-&gt;cart-&gt;order_payment_method; unset($paymentClass); } } if(!empty($data-&gt;cart-&gt;order_shipping_id)) { $shippingClass = hikashop_get('class.shipping'); if(!empty($data-&gt;cart-&gt;order_shipping_method)) { if(!is_numeric($data-&gt;cart-&gt;order_shipping_id)){ $shipping_name = $shippingClass-&gt;getShippingName($data-&gt;cart-&gt;order_shipping_method, $data-&gt;cart-&gt;order_shipping_id); $vars['SHIPPING'] = $shipping_name; $vars['SHIPPING_TXT'] = $vars['SHIPPING']; }else{ $shipping = $shippingClass-&gt;get($data-&gt;cart-&gt;order_shipping_id); $vars['SHIPPING'] = !empty($shipping) ? $shipping-&gt;shipping_name : $data-&gt;cart-&gt;order_shipping_method; $vars['SHIPPING_TXT'] = $vars['SHIPPING']; } } else { $shippings_data = array(); $shipping_ids = explode(';', $data-&gt;cart-&gt;order_shipping_id); foreach($shipping_ids as $key) { $shipping_data = ''; list($k, $w) = explode('@', $key); $shipping_id = $k; if(isset($data-&gt;cart-&gt;shippings[$shipping_id])) { $shipping = $data-&gt;cart-&gt;shippings[$shipping_id]; $shipping_data = $shipping-&gt;shipping_name; } else { foreach($data-&gt;cart-&gt;products as $order_product) { if($order_product-&gt;order_product_shipping_id == $key) { if(!is_numeric($order_product-&gt;order_product_shipping_id)){ $shipping_name = $shippingClass-&gt;getShippingName($order_product-&gt;order_product_shipping_method, $shipping_id); $shipping_data = $shipping_name; }else{ $shipping_method_data = $shippingClass-&gt;get($shipping_id); $shipping_data = !empty($shipping_method_data) ? $shipping_method_data-&gt;shipping_name : $order_product-&gt;order_product_shipping_method; } break; } } if(empty($shipping_data)) $shipping_data = '[ ' . $key . ' ]'; } if(isset($data-&gt;cart-&gt;order_shipping_params-&gt;prices[$key])) { $price_params = $data-&gt;cart-&gt;order_shipping_params-&gt;prices[$key]; if($config-&gt;get('price_with_tax')){ $shipping_data .= ' (' . $currencyHelper-&gt;format($price_params-&gt;price_with_tax, $data-&gt;cart-&gt;order_currency_id) . ')'; }else{ $shipping_data .= ' (' . $currencyHelper-&gt;format($price_params-&gt;price_with_tax - @$price_params-&gt;tax, $data-&gt;cart-&gt;order_currency_id) . ')'; } } $shippings_data[] = $shipping_data; } if(!empty($shippings_data)) { $vars['SHIPPING'] = '&lt;ul&gt;&lt;li&gt;'.implode('&lt;/li&gt;&lt;li&gt;', $shippings_data).'&lt;/li&gt;&lt;/ul&gt;'; $vars['SHIPPING_TXT'] = ' - ' . implode("\r\n - ", $shippings_data); } } unset($shippingClass); } else { $vars['SHIPPING'] = ''; } ob_start(); $sep = ''; if(hikashop_level(2)) { $fields = $fieldsClass-&gt;getFields('display:mail_status_notif=1',$data-&gt;cart,'order',''); foreach($fields as $fieldName =&gt; $oneExtraField) { if(isset($data-&gt;$fieldName) &amp;&amp; !isset($data-&gt;cart-&gt;$fieldName)) $data-&gt;cart-&gt;$fieldName = $data-&gt;$fieldName; if($oneExtraField-&gt;field_type != 'customtext' &amp;&amp; empty($data-&gt;cart-&gt;$fieldName)) continue; $oneExtraField-&gt;currentElement = $data-&gt;cart; echo $sep . $fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField, @$data-&gt;cart-&gt;$fieldName, 'user_email',$data-&gt;cart-&gt;order_token); $sep = '&lt;br /&gt;'; } } \Joomla\CMS\Plugin\PluginHelper::importPlugin('hikashop'); $app = \Joomla\CMS\Factory::getApplication(); $app-&gt;triggerEvent('onAfterOrderProductsListingDisplay', array(&amp;$data-&gt;cart, 'email_notification_html')); $content = ob_get_clean(); $vars['ORDER_SUMMARY'] = trim($content); $unpaid_statuses = explode(',', $config-&gt;get('order_unpaid_statuses', 'created')); if(in_array($data-&gt;order_status, $unpaid_statuses) &amp;&amp; !empty($data-&gt;cart-&gt;order_payment_method)) { ob_start(); if($data-&gt;cart-&gt;order_full_price&gt;0 &amp;&amp; hikashop_level(1) &amp;&amp; $config-&gt;get('allow_payment_button',1)) { echo '&lt;p&gt;' . \Joomla\CMS\Language\Text::_('ORDER_VALID_AFTER_PAYMENT') . '&lt;/p&gt;'; $pay_url = 'index.php?option=com_hikashop&amp;ctrl=order&amp;task=pay&amp;order_id='.$data-&gt;order_id.$url_itemid; if(empty($customer-&gt;user_cms_id) &amp;&amp; !empty($data-&gt;cart-&gt;order_token)) { $pay_url .= '&amp;order_token='.urlencode($data-&gt;cart-&gt;order_token); } $pay_url = hikashop_frontendLink($pay_url); if($config-&gt;get('force_ssl',0) &amp;&amp; strpos('https://',$pay_url) === false) { $pay_url = str_replace('http://','https://',$pay_url); } echo '&lt;p&gt;&lt;a class="cart_button hika_template_color" style="display:inline-block;background-color:#2f6f9f;color:#ffffff;font-weight:bold;text-decoration:none;padding:12px 24px;border-radius:8px;" href="'. $pay_url .'"&gt;'.\Joomla\CMS\Language\Text::_('PAY_NOW') . '&lt;/a&gt;&lt;/p&gt;'; } $content = ob_get_clean(); $vars['ORDER_SUMMARY'] .= $content; } if($config-&gt;get('register_after_guest', 1) &amp;&amp; empty($customer-&gt;user_cms_id) &amp;&amp; !empty($data-&gt;order_token)){ $params = \Joomla\CMS\Component\ComponentHelper::getParams('com_users'); if((int)$params-&gt;get('allowUserRegistration') != 0) { $register_url = 'index.php?option=com_hikashop&amp;ctrl=user&amp;task=guest_form&amp;order_id='.$data-&gt;order_id.$url_itemid.'&amp;order_token='.urlencode($data-&gt;order_token); $register_url = hikashop_frontendLink($register_url); $vars['ORDER_SUMMARY'] .= '&lt;p&gt;&lt;a href="'. $register_url .'"&gt;'.\Joomla\CMS\Language\Text::_('CLICK_HERE_TO_EASILY_CREATE_YOUR_USER_ACCOUNT') . '&lt;/a&gt;&lt;/p&gt;'; } } $vars['BILLING_ADDRESS'] = ''; $vars['SHIPPING_ADDRESS'] = ''; $addressClass = hikashop_get('class.address'); if(!empty($data-&gt;cart-&gt;billing_address) &amp;&amp; !empty($data-&gt;cart-&gt;fields)){ $vars['BILLING_ADDRESS'] = $addressClass-&gt;displayAddress($data-&gt;cart-&gt;fields,$data-&gt;cart-&gt;billing_address,$view); } if(!empty($data-&gt;cart-&gt;override_shipping_address)) { $vars['SHIPPING_ADDRESS'] =  $data-&gt;cart-&gt;override_shipping_address; } elseif(!empty($data-&gt;cart-&gt;order_shipping_id) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address) &amp;&amp; !empty($data-&gt;cart-&gt;fields)) { $vars['SHIPPING_ADDRESS'] = $addressClass-&gt;displayAddress($data-&gt;cart-&gt;fields,$data-&gt;cart-&gt;shipping_address,$view); } else { $vars['SHIPPING_ADDRESS'] = $vars['BILLING_ADDRESS']; } &lt;?php $digitalProductIds = array(21); $hasDigital = false; foreach($data-&gt;cart-&gt;products as $item) { $ids = array((int)$item-&gt;product_id); $p = @$productClass-&gt;all_products[$item-&gt;product_id]; if(!empty($p-&gt;product_parent_id)) $ids[] = (int)$p-&gt;product_parent_id; if(array_intersect($ids, $digitalProductIds)) { $hasDigital = true; break; } } if($hasDigital) { echo '&lt;p&gt;&lt;a href="'.HIKASHOP_LIVE.'10-videos-and-recipes"&gt;Order Confirmed - Access your Recipes and Videos Here&lt;/a&gt;&lt;/p&gt;'; } ?&gt;

The email received shows the access to the video/recipes as it should at the bottom but it's also added at the top

When I "View Modifications" the "Original" shows * @version 6.7.0 and the O"Override" is * @version 6.7.0

I'm thinking these are all interconnected but may be totally wrong

[ ![Screenshot at Oct 20 15-32-21.png](/forum/attachment/100000091) ](/forum/attachment/100000091 "...0 15-32-21.png")

Last edit: 2 weeks 6 days ago by [yerg55](/forum/user/60833-yerg55 "View yerg55's Profile"). Reason: Additional information

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzEwMDAwMDA2MC1lbWFpbC10ZW1wbGF0ZS1jYXVzaW5nLWlzc3Vlcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14292
-
-

2 weeks 6 days ago [\#100000298](#100000298) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email template causing issues](/forum/35-orders-management/100000060-email-template-causing-issues#100000298 "-- HikaShop version -- : 6.7.0 -- Joomla version -- : 6.2.0 -- Browser(s) name and version -- :  Firefox 157.0  Preview Order Status Notification I get the following error in the popup with errors/debug enabled ....  0 syntax error, unexpected token &quot;verride&quot; is &#42; @version 6.7.0  I'm thinking these are all interconnected but may be totally wrong")*

The error comes from the end of your preload override (order_status_notification.confirmed.preload.php). A preload file is one single block of PHP that is never closed, so when you add a new "&lt;?php ... ?&gt;" block after the last line, PHP finds "&lt;!--?php" in the middle of PHP code and stops with "syntax error, unexpected token "&lt;", expecting end of file". Because of that, the confirmed notification cannot be built at all.

The link appearing at the top of the email has a second cause: a preload runs before the email's HTML is built, so anything it "echo"es is output before the whole email, above the header. That is also where the "ids: 21,4,5,8" line in your screenshot comes from: an echo left in a preload. A preload should not echo anything; it should put the text in a variable that the HTML version displays. The "Additional information" area of the email shows the ORDER_SUMMARY variable, so adding your link to it puts it at the bottom, where you want it.

To fix it, in System &gt; Emails, edit the preload version of the confirmed notification, delete everything from your "&lt;?php $digitalProductIds = array(21);" line to the final "?&gt;", and paste in its place, at the very end of the file, the content of the attached file recipes-videos-link.txt. It does the same check (product 21 or one of its variants) but adds the link to the "Additional information" area instead of echoing it. Do not add "&lt;!--?php" or "?--&gt;" around it. The documentation of the preload version is here: [ www.hikashop.com/support/documentation/2...shop-email-form.html](https://www.hikashop.com/support/documentation/25-hikashop-email-form.html)

Then do the same in the other preload you edited, the one used by the email in your screenshot (the notification sent when the order is created): remove the echo lines (the "ids: ..." one and the one printing the link). That email already shows "Access Your Videos and Recipes Here" in its "Additional information" area, so the link only needs to stay there and it will no longer appear twice.

The "@version 6.7.0" line you see in both the original and the override in "View modifications" is only the file's header and is not related to the problem: your override is based on the current file.

The following user(s) said Thank You: [yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")

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

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

Less More

- Posts: 181
- Thank you received: 28
-
-

2 weeks 5 days ago -  2 weeks 5 days ago [\#100000305](#100000305) by [yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")  Replied by *[yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")* on topic *[Email template causing issues](/forum/35-orders-management/100000060-email-template-causing-issues#100000305 "-- HikaShop version -- : 6.7.0 -- Joomla version -- : 6.2.0 -- Browser(s) name and version -- :  Firefox 157.0  Preview Order Status Notification I get the following error in the popup with errors/debug enabled ....  0 syntax error, unexpected token &quot;verride&quot; is &#42; @version 6.7.0  I'm thinking these are all interconnected but may be totally wrong")*

Now I am totally confused. ![:wink:](/media/kunena/emoticons/24.png ":wink:")

What I had placed there [ related to your previous response here](https://www.hikashop.com/forum/27-checkout/910652-different-email-to-customer-depending-on-order#372522) that obviously isn't happening  ![:cry:](/media/kunena/emoticons/19.png ":cry:")

So basically I'm back to square 1 

What code do I need to place at the bottom of the "Order status notification" email that when customers order the Videos/Recipes (Item 21) they see the words/link "Access your Recipes and Videos Here" in their email, but those who didn't order the Videos/Recipes don't receive that link 

Last edit: 2 weeks 5 days ago by [yerg55](/forum/user/60833-yerg55 "View yerg55's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzEwMDAwMDA2MC1lbWFpbC10ZW1wbGF0ZS1jYXVzaW5nLWlzc3Vlcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14292
-
-

2 weeks 5 days ago [\#100000307](#100000307) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email template causing issues](/forum/35-orders-management/100000060-email-template-causing-issues#100000307 "-- HikaShop version -- : 6.7.0 -- Joomla version -- : 6.2.0 -- Browser(s) name and version -- :  Firefox 157.0  Preview Order Status Notification I get the following error in the popup with errors/debug enabled ....  0 syntax error, unexpected token &quot;verride&quot; is &#42; @version 6.7.0  I'm thinking these are all interconnected but may be totally wrong")*

Sorry for the confusion. The code from the forum is meant for the HTML version of the email, not for the preload version. The HTML version is where PHP can be opened and closed with &lt;?php and ?&gt; and where an "echo" prints at that place in the email. In the preload version the same code breaks the email (the error you got) or prints the link above the whole email (what your screenshot showed). So here is a single way to do it.

1. Undo the preload changes. In System &gt; Emails, edit "Order status notification" and, in the preload version, click "Per status override", choose "confirmed", delete everything in the editor and save: an empty override is removed and the standard preload is used again. If you also added lines to the main preload version of that email, or to the preload of "Order creation notification" (the "ids: ..." line and the link), remove those lines too, or use the "remove customization" button of the preload in the list of emails.

2. Add the code to the HTML version. Still in "Order status notification", in the HTML version, find the line &lt;!-- ORDER END MESSAGE --&gt; and paste the whole content of the attached file recipes-videos-link-html.txt on a new line just above it, including its first line &lt;?php and its last line ?&gt;. Save.

The link "Access your Recipes and Videos Here" will then appear at the bottom of the email, just above "Once again, thank you for your order", only when the order contains product 21 (or one of its variants). The other customers will not see it. The link points to your page 10-videos-and-recipes, as in your code: if the address of that page is different, change it in the line starting with "echo".

The HTML version is used for every status notification, so this link will also be in the later emails of those orders (shipped, for example). If you only want it in the email sent when the order becomes confirmed, do step 2 in the "Per status override" of the HTML version instead, choosing "confirmed".

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

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

Less More

- Posts: 181
- Thank you received: 28
-
-

2 weeks 1 day ago [\#100000374](#100000374) by [yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")  Replied by *[yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")* on topic *[Email template causing issues](/forum/35-orders-management/100000060-email-template-causing-issues#100000374 "-- HikaShop version -- : 6.7.0 -- Joomla version -- : 6.2.0 -- Browser(s) name and version -- :  Firefox 157.0  Preview Order Status Notification I get the following error in the popup with errors/debug enabled ....  0 syntax error, unexpected token &quot;verride&quot; is &#42; @version 6.7.0  I'm thinking these are all interconnected but may be totally wrong")*

Yup I've got there ![:-)](/media/kunena/emoticons/3.png ":-)")

One  exception as below which are the two product ID's. Not a big one but how/why that remains?

[ ![arrow.png](/forum/attachment/100000117) ](/forum/attachment/100000117 "arrow.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzEwMDAwMDA2MC1lbWFpbC10ZW1wbGF0ZS1jYXVzaW5nLWlzc3Vlcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14292
-
-

2 weeks 1 day ago [\#100000377](#100000377) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email template causing issues](/forum/35-orders-management/100000060-email-template-causing-issues#100000377 "-- HikaShop version -- : 6.7.0 -- Joomla version -- : 6.2.0 -- Browser(s) name and version -- :  Firefox 157.0  Preview Order Status Notification I get the following error in the popup with errors/debug enabled ....  0 syntax error, unexpected token &quot;verride&quot; is &#42; @version 6.7.0  I'm thinking these are all interconnected but may be totally wrong")*

Good to hear it works. The "ids: 21,4" line is not printed by the code from recipes-videos-link-html.txt: that file only prints the link. It comes from a debugging line given earlier on the forum to check which product ids the email sees, which starts with echo '

ids: '.implode(... and prints the ids of the products in the order (here 21 for Ten Videos &amp; Recipes and 4 for GFMix). That line is still in your HTML version of the email, just above the code you pasted, which is why it shows right above the link.

To remove it, in System &gt; Emails, edit "Order status notification", open the HTML version and look just above the line "// Link to the recipes and videos when the order holds product 21" for a line containing ids: and implode. Delete that whole line (if it is on its own between &lt;?php and ?&gt;, delete those too) and save. If you also pasted the code in the "Per status override" of the HTML version (for example for "confirmed"), check that override as well, and the HTML version of "Order creation notification" if you added the debugging line there too.

The next emails will then show only the "Access your Recipes and Videos Here" link.

The following user(s) said Thank You: [yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")

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

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

Less More

- Posts: 181
- Thank you received: 28
-
-

2 weeks 14 hours ago [\#100000381](#100000381) by [yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")  Replied by *[yerg55](/forum/user/60833-yerg55 "View yerg55's Profile")* on topic *[Email template causing issues](/forum/35-orders-management/100000060-email-template-causing-issues#100000381 "-- HikaShop version -- : 6.7.0 -- Joomla version -- : 6.2.0 -- Browser(s) name and version -- :  Firefox 157.0  Preview Order Status Notification I get the following error in the popup with errors/debug enabled ....  0 syntax error, unexpected token &quot;verride&quot; is &#42; @version 6.7.0  I'm thinking these are all interconnected but may be totally wrong")*

Thanks so much Nicolas for your patience and persistence

![;-)](/media/kunena/emoticons/24.png ";-)")

Only one foible to chase down in AustPost label  

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzEwMDAwMDA2MC1lbWFpbC10ZW1wbGF0ZS1jYXVzaW5nLWlzc3Vlcz90bXBsPW1hcmtkb3du) 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.056 seconds

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