Payment type charge in order_admin_notification

  • Posts: 25
  • Thank you received: 0
11 years 9 months ago #120659

Hi,

Within the customers order creation email the payment type charge is displayed correctly, but the payment type charge is not displayed inside the order_admin_notification; how can I also display the payment type charge in the admin email?
See also the attachment of a screenshot of both emails.

best regards,Tom

-- HikaShop version -- : 2.2.1
-- Joomla version -- : 3.1.5

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 9 months ago #120673

Hi Tom,

I think that you'll just have to :
- Go to "HIkashop->System->Emails"
- Edit the "Order administrator notification" Email
- Add this code :

	if(bccomp($data->order_payment_price,0,5)){
		echo '<tr><td colspan="'.$colspan.'" style="text-align:right">'.JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$currencyHelper->format($data->order_payment_price,$data->order_currency_id).'</td></tr>';
	}
After these line :
	if(bccomp($data->order_shipping_price,0,5)){
		echo '<tr><td colspan="'.$colspan.'" style="text-align:right">'.JText::_('HIKASHOP_SHIPPING_METHOD').' : ';
		if($config->get('price_with_tax')){
			echo $currencyHelper->format($data->order_shipping_price,$data->order_currency_id);
		}else{
			echo $currencyHelper->format($data->order_shipping_price-@$data->order_shipping_tax,$data->order_currency_id);
		}
		echo '</td></tr>';
	}

Note that the Emails feature is only available through the business version of Hikashop.

Last edit: 11 years 9 months ago by Mohamed Thelji.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum