ORDER_CREATION_NOTIFICATION
{TXT:MAIL_HEADER}

{TXT:ORDER_TITLE}

{TXT:ORDER_CREATED}

{TXT:HI_CUSTOMER}

{TXT:ORDER_BEGIN_MESSAGE}

{TXT:BILLING_ADDRESS} {TXT:SHIPPING_ADDRESS}
{VAR:BILLING_ADDRESS} {VAR:SHIPPING_ADDRESS}

{TXT:SUMMARY_OF_YOUR_ORDER}

{VAR:VENDOR_CONTENT}
{TXT:PRODUCT_NAME} {TXT:PRODUCT_PRICE} {TXT:PRODUCT_QUANTITY} {TXT:PRODUCT_TOTAL}
{LINEVAR:PRODUCT_IMG} {LINEVAR:PRODUCT_NAME} {LINEVAR:PRODUCT_CODE} {LINEVAR:PRODUCT_DOWNLOAD} {LINEVAR:PRODUCT_DETAILS} {LINEVAR:PRODUCT_PRICE} {LINEVAR:PRODUCT_QUANTITY} {LINEVAR:PRODUCT_TOTAL}
{LINEVAR:NAME} {LINEVAR:VALUE}

{TXT:PAYMENT_METHOD} : {VAR:PAYMENT}

{TXT:HIKASHOP_SHIPPING_METHOD} : {VAR:SHIPPING}

{TXT:ADDITIONAL_INFORMATION}

{VAR:ORDER_SUMMARY}

{TXT:ORDER_END_MESSAGE}

--
------------------- customer->name);?> order_number; $config =& hikashop_config(); if($config->get('simplified_registration',0)!=2){ $url .= ' ( '.$data->order_url.' )'; } echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?> -------------------------------------- -------------------------------------- cart->products as $item){ $price = $item->order_product_price*$item->order_product_quantity; echo strip_tags($item->order_product_name) . "\t" . $currencyHelper->format($item->order_product_price,$data->order_currency_id)."\t".$item->order_product_quantity."\t".$currencyHelper->format($price,$data->order_currency_id)."\n"; } if(bccomp($data->order_discount_price,0,5)){ echo JText::_('HIKASHOP_COUPON').' : '.$currencyHelper->format($data->order_discount_price*-1,$data->order_currency_id)."\n"; } if(bccomp($data->order_shipping_price,0,5)){ echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$currencyHelper->format($data->order_shipping_price,$data->order_currency_id)."\n"; } if(!empty($data->additional)) { $exclude_additionnal = explode(',', $config->get('order_additional_hide', '')); foreach($data->additional as $additional) { if(in_array($additional->name, $exclude_additionnal)) continue; echo JText::_($additional->order_product_name).' : '; if(!empty($additional->order_product_price) || empty($additional->order_product_options)) { echo $currencyHelper->format($additional->order_product_price, $this->order->order_currency_id); } else { echo $additional->order_product_options; } echo "\n"; } } if($data->cart->full_total->prices[0]->price_value!=$data->cart->full_total->prices[0]->price_value_with_tax){ if($config->get('detailed_tax_display') && !empty($data->order_tax_info)){ foreach($data->order_tax_info as $tax){ echo $tax->tax_namekey. ' : '.$currencyHelper->format($tax->tax_amount,$data->order_currency_id)."\n"; } }else{ echo JText::sprintf('TOTAL_WITHOUT_VAT',$currencyHelper->format($data->cart->full_total->prices[0]->price_value,$data->order_currency_id))."\n"; } echo JText::sprintf('TOTAL_WITH_VAT',$currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->order_currency_id))."\n\n"; }else{ echo JText::_('HIKASHOP_TOTAL'). ' : '.$currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->order_currency_id)."\n"; } $app = JFactory::getApplication(); if($app->isAdmin()){ $view = 'order'; }else{ $view = 'address'; } $addressClass = hikashop_get('class.address'); if(!empty($data->cart->billing_address)){ echo JText::_('HIKASHOP_BILLING_ADDRESS')."\n"; echo $addressClass->displayAddress($data->order_addresses_fields,$data->order_addresses[$data->cart->billing_address->address_id],$view,true); } if(!empty($data->order_shipping_method)) { $currentShipping = hikashop_import('hikashopshipping',$data->order_shipping_method); if(method_exists($currentShipping, 'getShippingAddress')) { $override = $currentShipping->getShippingAddress($data->order_shipping_id); if($override !== false) { $data->override_shipping_address = $override; } } } if(!empty($data->cart->has_shipping) && (!empty($data->cart->shipping_address) || !empty($data->override_shipping_address))) { if( !empty($data->override_shipping_address) ) { echo str_replace('
',"\r\n",$data->override_shipping_address); } else { echo JText::_('HIKASHOP_SHIPPING_ADDRESS')."\n"; echo $addressClass->displayAddress($data->order_addresses_fields,$data->order_addresses[$data->cart->shipping_address->address_id],$view,true); } } $fields = $fieldsClass->getFields('display:field_order_creation_notification',$data,'order',''); foreach($fields as $fieldName => $oneExtraField) { $fieldData = trim(@$data->$fieldName); if(empty($fieldData)) continue; echo $fieldsClass->trans($oneExtraField->field_realname).' : '.$fieldsClass->show($oneExtraField,$data->$fieldName)."\r\n"; } if(!$app->isAdmin()){ if($data->cart->full_total->prices[0]->price_value_with_tax>0) echo JText::_('ORDER_VALID_AFTER_PAYMENT')."\n\n"; echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER',HIKASHOP_LIVE)."\n\n"; } echo str_replace('
',"\n",JText::sprintf('BEST_REGARDS_CUSTOMER',$mail->from_name));?> ---------------- getFields('display:field_item_order_creation_notification=1',$null,'item'); } global $Itemid; $url_itemid = ''; if(!empty($Itemid)) { $url_itemid = '&Itemid=' . $Itemid; } $order_url = $data->order_url; $mail_status = $data->mail_status; $customer = $data->customer; if(!isset($data->order)) $data->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->order->$f)){ if(isset($data->$f)) $data->order->$f = $data->$f; else $data->order->$f = ''; } } $url = $data->order->order_number; $data->order->order_url = $order_url; if(!empty($customer->user_cms_id) && (int)$customer->user_cms_id != 0) { $url = ''. $url.''; } $data->cart = $orderClass->loadFullOrder($data->order_id,true,false); $data->cart->coupon = new stdClass(); $price = new stdClass(); $tax = $data->cart->order_subtotal - $data->cart->order_subtotal_no_vat - $data->cart->order_discount_tax + $data->cart->order_shipping_tax + $data->cart->order_payment_tax; $price->price_value = $data->cart->order_full_price - $tax; $price->price_value_with_tax = $data->cart->order_full_price; $data->cart->full_total = new stdClass; $data->cart->full_total->prices = array($price); $data->cart->coupon->discount_value =& $data->cart->order_discount_price; if($app->isAdmin()) { $view = 'order'; } else { $view = 'address'; } $colspan = 4; $customer_name = @$customer->name; if(empty($customer_name)) $customer_name = @$data->cart->billing_address->address_firstname.' '.@$data->cart->billing_address->address_lastname; $vars = array( 'LIVE_SITE' => HIKASHOP_LIVE, 'URL' => $order_url, 'ORDER_PRODUCT_CODE' => (bool)$config->get('show_code', false), 'order' => $data->cart, 'user' => $customer, 'billing_address' => @$data->cart->billing_address, 'shipping_address' => @$data->cart->shipping_address, ); $texts = array( 'BILLING_ADDRESS' => JText::_('HIKASHOP_BILLING_ADDRESS'), 'SHIPPING_ADDRESS' => JText::_('HIKASHOP_SHIPPING_ADDRESS'), 'SUMMARY_OF_YOUR_ORDER' => JText::_('SUMMARY_OF_YOUR_ORDER'), 'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'), 'USER_ACCOUNT' => (bool)@$customer->user_cms_id, 'PRODUCT_NAME' => JText::_('CART_PRODUCT_NAME'), 'PRODUCT_CODE' => JText::_('CART_PRODUCT_CODE'), 'PRODUCT_PRICE' => JText::_('CART_PRODUCT_UNIT_PRICE'), 'PRODUCT_QUANTITY' => JText::_('CART_PRODUCT_QUANTITY'), 'PRODUCT_TOTAL' => JText::_('HIKASHOP_TOTAL'), 'ADDITIONAL_INFORMATION' => JText::_('ADDITIONAL_INFORMATION'), 'ORDER_TITLE' => JText::_('YOUR_ORDER'), 'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', $customer_name), 'ORDER_CREATED' => JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE', $url, HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M')), 'ORDER_BEGIN_MESSAGE' => JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE), 'ORDER_END_MESSAGE' => JText::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '
' . JText::sprintf('BEST_REGARDS_CUSTOMER',$mail->from_name), ); $templates = array(); $products_ids = array(); foreach($data->cart->products as $item) { $products_ids[] = $item->product_id; } $productClass->getProducts($products_ids); $cartProducts = array(); $cartFooters = array(); { $group = $config->get('group_options',0); $subtotal = 0; foreach($data->cart->products as $item) { if($group && $item->order_product_option_parent_id) continue; $product = @$productClass->all_products[$item->product_id]; $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; $cartProduct['PRODUCT_IMG'] = ''; } } $t = '

' . $item->order_product_name; if($group){ $display_item_price=false; foreach($data->cart->products as $j => $optionElement){ if($optionElement->order_product_option_parent_id != $item->order_product_id) continue; if($optionElement->order_product_price>0){ $display_item_price = true; } } if($display_item_price){ if($config->get('price_with_tax')){ $t .= ' '.$currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->cart->order_currency_id); }else{ $t .= ' '.$currencyHelper->format($item->order_product_price,$data->cart->order_currency_id); } } } $t .= '

'; if(!empty($itemFields)){ foreach($itemFields as $field){ $namekey = $field->field_namekey; if(!isset($item->$namekey) || (empty($item->$namekey) && !strlen($item->$namekey))) continue; $t .= '

'.$fieldsClass->getFieldName($field).': '.$fieldsClass->show($field,$item->$namekey,'user_email').'

'; } } if($group){ foreach($data->cart->products as $j => $optionElement){ if($optionElement->order_product_option_parent_id != $item->order_product_id) continue; $item->order_product_price +=$optionElement->order_product_price; $item->order_product_tax +=$optionElement->order_product_tax; $item->order_product_total_price+=$optionElement->order_product_total_price; $item->order_product_total_price_no_vat+=$optionElement->order_product_total_price_no_vat; $t .= '

' . $optionElement->order_product_name; if($optionElement->order_product_price>0){ if($config->get('price_with_tax')){ $t .= ' ( + '.$currencyHelper->format($optionElement->order_product_price+$optionElement->order_product_tax,$data->cart->order_currency_id).' )'; }else{ $t .= ' ( + '.$currencyHelper->format($optionElement->order_product_price,$data->cart->order_currency_id).' )'; } } $t .= '

'; } } $cartProduct['PRODUCT_NAME'] = $t; $t = ''; $statusDownload = explode(',',$config->get('order_status_for_download','confirmed,shipped')); if(!empty($item->files) && in_array($data->order->order_status,$statusDownload)){ $t .= '

'; foreach($item->files as $file){ $fileName = empty($file->file_name) ? $file->file_path : $file->file_name; $file_pos = empty($file->file_pos) ? '' : ('&file_pos=' . $file->file_pos); if(empty($customer->user_cms_id)) $file_pos .= '&email=' . $customer->user_email; $t .= ''.$fileName.'
'; } $t .= '

'; } $cartProduct['PRODUCT_DOWNLOAD'] = $t; if($config->get('price_with_tax')){ $unit_price = $currencyHelper->format($item->order_product_price+$item->order_product_tax,$data->cart->order_currency_id); $total_price = $currencyHelper->format($item->order_product_total_price,$data->cart->order_currency_id); $subtotal += $item->order_product_total_price; }else{ $unit_price = $currencyHelper->format($item->order_product_price,$data->cart->order_currency_id); $total_price = $currencyHelper->format($item->order_product_total_price_no_vat,$data->cart->order_currency_id); $subtotal += $item->order_product_total_price_no_vat; } $cartProduct['PRODUCT_PRICE'] = $unit_price; $cartProduct['PRODUCT_TOTAL'] = $total_price; $cartProducts[] = $cartProduct; } $templates['PRODUCT_LINE'] = $cartProducts; if(bccomp($data->cart->order_discount_price,0,5) || bccomp($data->cart->order_shipping_price,0,5) || bccomp($data->cart->order_payment_price,0,5) || ($data->cart->full_total->prices[0]->price_value!=$data->cart->full_total->prices[0]->price_value_with_tax) || !empty($data->cart->additional)){ $cartFooters[] = array( 'NAME' => JText::_('SUBTOTAL'), 'VALUE' => $currencyHelper->format($subtotal,$data->cart->order_currency_id) ); } if(bccomp($data->cart->order_discount_price,0,5)) { if($config->get('price_with_tax')) { $t = $currencyHelper->format($data->cart->order_discount_price*-1,$data->cart->order_currency_id); }else{ $t = $currencyHelper->format(($data->cart->order_discount_price-@$data->cart->order_discount_tax)*-1,$data->cart->order_currency_id); } $cartFooters[] = array( 'NAME' => JText::_('HIKASHOP_COUPON'), 'VALUE' => $t ); } if(bccomp($data->cart->order_shipping_price,0,5)){ if($config->get('price_with_tax')) { $t = $currencyHelper->format($data->cart->order_shipping_price,$data->cart->order_currency_id); }else{ $t = $currencyHelper->format($data->cart->order_shipping_price-@$data->cart->order_shipping_tax,$data->cart->order_currency_id); } $cartFooters[] = array( 'NAME' => JText::_('HIKASHOP_SHIPPING'), 'VALUE' => $t ); } if(bccomp($data->cart->order_payment_price,0,5)){ if($config->get('price_with_tax')) { $t = $currencyHelper->format($data->cart->order_payment_price, $data->cart->order_currency_id); } else { $t = $currencyHelper->format($data->cart->order_payment_price - @$data->cart->order_payment_tax, $data->cart->order_currency_id); } $cartFooters[] = array( 'NAME' => JText::_('HIKASHOP_PAYMENT'), 'VALUE' => $t ); } if(!empty($data->cart->additional)) { $exclude_additionnal = explode(',', $config->get('order_additional_hide', '')); foreach($data->cart->additional as $additional) { if(in_array($additional->order_product_name, $exclude_additionnal)) continue; if(!empty($additional->order_product_price)) $additional->order_product_price = (float)hikashop_toFloat($additional->order_product_price); if(!empty($additional->order_product_price) || empty($additional->order_product_options)) { if($config->get('price_with_tax')){ $t = $currencyHelper->format($additional->order_product_price + @$additional->order_product_tax, $data->cart->order_currency_id); }else{ $t = $currencyHelper->format($additional->order_product_price, $data->cart->order_currency_id); } } else { $t = $additional->order_product_options; } $cartFooters[] = array( 'NAME' => JText::_($additional->order_product_name), 'VALUE' => $t ); } } if($data->cart->full_total->prices[0]->price_value!=$data->cart->full_total->prices[0]->price_value_with_tax) { if($config->get('detailed_tax_display') && !empty($data->cart->order_tax_info)) { foreach($data->cart->order_tax_info as $tax) { $cartFooters[] = array( 'NAME' => $tax->tax_namekey, 'VALUE' => $currencyHelper->format($tax->tax_amount,$data->cart->order_currency_id) ); } } else { $cartFooters[] = array( 'NAME' => JText::_('ORDER_TOTAL_WITHOUT_VAT'), 'VALUE' => $currencyHelper->format($data->cart->full_total->prices[0]->price_value,$data->cart->order_currency_id) ); } $cartFooters[] = array( 'NAME' => JText::_('ORDER_TOTAL_WITH_VAT'), 'VALUE' => $currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->cart->order_currency_id) ); } else { $cartFooters[] = array( 'NAME' => JText::_('HIKASHOP_TOTAL'), 'VALUE' => $currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax,$data->cart->order_currency_id) ); } $templates['ORDER_FOOTER'] = $cartFooters; } if(!empty($data->cart->order_payment_method)) { if(!is_numeric($data->cart->order_payment_id) || empty($data->cart->order_payment_id)){ $vars['PAYMENT'] = $data->cart->order_payment_method.' '.$data->cart->order_payment_id; }else{ $paymentClass = hikashop_get('class.payment'); $payment = $paymentClass->get($data->cart->order_payment_id); $vars['PAYMENT'] = $payment->payment_name; unset($paymentClass); } } if(!empty($data->cart->order_shipping_id)) { $shippingClass = hikashop_get('class.shipping'); if(!empty($data->cart->order_shipping_method)) { if(!is_numeric($data->cart->order_shipping_id)){ $shipping_name = $shippingClass->getShippingName($data->cart->order_shipping_method, $data->cart->order_shipping_id); $vars['SHIPPING'] = $shipping_name; $vars['SHIPPING_TXT'] = $vars['SHIPPING']; }else{ $shipping = $shippingClass->get($data->cart->order_shipping_id); $vars['SHIPPING'] = $shipping->shipping_name; $vars['SHIPPING_TXT'] = $vars['SHIPPING']; } } else { $shippings_data = array(); $shipping_ids = explode(';', $data->cart->order_shipping_id); foreach($shipping_ids as $key) { $shipping_data = ''; list($k, $w) = explode('@', $key); $shipping_id = $k; if(isset($data->cart->shippings[$shipping_id])) { $shipping = $data->cart->shippings[$shipping_id]; $shipping_data = $shipping->shipping_name; } else { foreach($data->cart->products as $order_product) { if($order_product->order_product_shipping_id == $key) { if(!is_numeric($order_product->order_product_shipping_id)){ $shipping_name = $shippingClass->getShippingName($order_product->order_product_shipping_method, $shipping_id); $shipping_data = $shipping_name; }else{ $shipping_method_data = $shippingClass->get($shipping_id); $shipping_data = $shipping_method_data->shipping_name; } break; } } if(empty($shipping_data)) $shipping_data = '[ ' . $key . ' ]'; } if(isset($data->cart->order_shipping_params->prices[$key])) { $price_params = $data->cart->order_shipping_params->prices[$key]; if($config->get('price_with_tax')){ $shipping_data .= ' (' . $currencyHelper->format($price_params->price_with_tax, $data->cart->order_currency_id) . ')'; }else{ $shipping_data .= ' (' . $currencyHelper->format($price_params->price_with_tax - @$price_params->tax, $data->cart->order_currency_id) . ')'; } } $shippings_data[] = $shipping_data; } if(!empty($shippings_data)) { $vars['SHIPPING'] = ''; $vars['SHIPPING_TXT'] = ' - ' . implode("\r\n - ", $shippings_data); } } unset($shippingClass); } else { $vars['SHIPPING'] = ''; } ob_start(); $sep = ''; if(hikashop_level(2)) { $fields = $fieldsClass->getFields('display:field_order_creation_notification=1',$data,'order',''); foreach($fields as $fieldName => $oneExtraField) { if(isset($data->$fieldName) && !isset($data->cart->$fieldName)) $data->cart->$fieldName = $data->$fieldName; if(empty($data->cart->$fieldName)) continue; echo $sep . $fieldsClass->trans($oneExtraField->field_realname).' : '.$fieldsClass->show($oneExtraField, $data->cart->$fieldName, 'user_email'); $sep = '
'; } } JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onAfterOrderProductsListingDisplay', array(&$data->cart, 'email_notification_html')); $content = ob_get_clean(); $vars['ORDER_SUMMARY'] = trim($content); $vars['BILLING_ADDRESS'] = ''; $vars['SHIPPING_ADDRESS'] = ''; $addressClass = hikashop_get('class.address'); if(!empty($data->cart->billing_address) && !empty($data->cart->fields)){ $vars['BILLING_ADDRESS'] = $addressClass->displayAddress($data->cart->fields,$data->cart->billing_address,$view); } if(!empty($data->cart->override_shipping_address)) { $vars['SHIPPING_ADDRESS'] = $data->cart->override_shipping_address; } elseif(!empty($data->cart->order_shipping_id) && !empty($data->cart->shipping_address) && !empty($data->cart->fields)) { $vars['SHIPPING_ADDRESS'] = $addressClass->displayAddress($data->cart->fields,$data->cart->shipping_address,$view); } else { $vars['SHIPPING_ADDRESS'] = $vars['BILLING_ADDRESS']; } $confirmed = $config->get('order_confirmed_status','confirmed'); if($data->order_status != $confirmed && !empty($data->order_payment_method) && $data->order_payment_method != 'collectondelivery') { ob_start(); if($data->cart->full_total->prices[0]->price_value_with_tax>0) echo '

' . JText::_('ORDER_VALID_AFTER_PAYMENT') . '

'; if(in_array($data->order_payment_method, array('banktransfer', 'check', 'purchaseorder'))) { $amount = $currencyHelper->format($data->cart->full_total->prices[0]->price_value_with_tax, $data->cart->order_currency_id); $paymentClass = hikashop_get('class.payment'); $payment = $paymentClass->get($data->order_payment_id); $information = $payment->payment_params->information; if(preg_match('#^[a-z0-9_]*$#i',$information)){ $information = JText::_($information); } if($data->order_payment_method=='banktransfer'){ echo '

' . JText::sprintf('PLEASE_TRANSFERT_MONEY',$amount).'
'.$information.'
'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_TRANSFER',$data->order_number) . '

'; }elseif($data->order_payment_method=='check'){ echo '

' . JText::sprintf('PLEASE_SEND_CHECK',$amount).'
'.$information.'
'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_CHECK',$data->order_number) . '

'; }elseif($data->order_payment_method=='purchaseorder'){ echo '

' . JText::sprintf('PLEASE_SEND_PURCHASEORDER',$amount).'
'.$information.'
'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_PURCHASEORDER',$data->order_number) . '

'; } } else { if($data->cart->full_total->prices[0]->price_value_with_tax>0 && hikashop_level(1) && $config->get('allow_payment_button',1)) { $pay_url = hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=pay&order_id='.$data->order_id.$url_itemid); if($config->get('force_ssl',0) && strpos('https://',$pay_url) === false) { $pay_url = str_replace('http://','https://',$pay_url); } echo '

'.JText::_('PAY_NOW') . '

'; } } $content = ob_get_clean(); $vars['ORDER_SUMMARY'] .= $content; }