how to display order number and shipment method

  • Posts: 86
  • Thank you received: 0
13 years 8 months ago #9911

Hi Nicolas,

In my order creation notification email I need to display the order number and the shipment method that the customer choose.

How to do that?

Currently I have changed my template like this:


echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE', hikashop::getDate(time(),'%d %B %Y'), $this->element->order_number);?>

and:

echo '<tr><td colspan="4" style="text-align:right">'.JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$currencyHelper->format($data->order_shipping_price,$data-

Could you please help me out on this?

Gert.

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

  • Posts: 86
  • Thank you received: 0
13 years 8 months ago #9914

Nicolas,

Also in the view user/cpanel I need to add the name of the customer in this line:


<div class="header" style="float: left;"><h1><?php echo JText::_('CUSTOMER_ACCOUNT');?></h1></div>

Can you let me know how to do that?

Gert.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9975

You should already have the line:
echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop::getDate(time(),'%d %B %Y'), hikashop::getDate(time(),'%H:%M'));?>

in your order creation email which displays the order number in the $url parameter.

For the shipping method, you could try something like this:

$pluginsShipping = hikashop::get('type.plugins');
$pluginsShipping->type='shipping';
$pluginsShipping->order=$data;
$shipping_method = $pluginsShipping->getName($data->order_shipping_method,$data->order_shipping_id);
echo '<tr><td colspan="4" style="text-align:right">'.JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$shipping_method.'</td></tr>';

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9976

For the customer account, you would have to replace that line by:
<div class="header hikashop_header_title"><h1><?php $user =& JFactory::getUser(); echo JText::_('CUSTOMER_ACCOUNT'). ' '.$user->get('name');?></h1></div>

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

Time to create page: 0.058 seconds
Powered by Kunena Forum