- Posts: 86
- Thank you received: 0
how to display order number and shipment method
15 years 6 months ago #9911
by YakNarak
how to display order number and shipment method was created by YakNarak
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.
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.
15 years 6 months ago #9914
by YakNarak
Replied by YakNarak on topic Re: how to display order number and shipment method
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.
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.
15 years 6 months ago #9975
by nicolas
Replied by nicolas on topic Re: how to display order number and shipment method
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>';
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.
15 years 6 months ago #9976
by nicolas
Replied by nicolas on topic Re: how to display order number and shipment method
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>
<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.175 seconds