Skip to main content

order number in confirmation email

More
13 years 3 months ago #107416 by adambako
hi. i want to ask how i can get only order number to email template.

im trying
Code:
<?php $url = $data->order_number; ?>

but it dont work.

thanks

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

More
13 years 3 months ago #107441 by Eliot
Hi there,

Try with this:
Code:
$item->order_number

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

More
13 years 3 months ago #107444 by adambako
hi eliot..

thanks for your reply but this code still dont work..

i cant uderstand it because the order number is at the top of the email, i just need to copy it to the bottom.

this is the code from where come also order id but with other stuff.. i need just the order id
Code:
<?php $colspan = 4; $url = $data->order_number; $config =& hikashop_config(); if($config->get('simplified_registration',0)!=2){ $url = '<a href="'.$data->order_url.'">'. $url.'</a>'; } echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?>

any other ideas?
thanks

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

More
13 years 3 months ago - 13 years 3 months ago #107461 by Eliot
Could you show me what you did to display the order number?
I guess you know you have to use echo $data->order_number; in order to display it.

You can also do a var_dump($data) to see if the information you need is inside this variable.
Last edit: 13 years 3 months ago by Eliot.
The following user(s) said Thank You: adambako

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

More
13 years 3 months ago #107463 by adambako
im sorry, i wasnt know that.. im not php coder :ohmy:

now its working

thanks a lot ;)

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

Time to create page: 0.236 seconds
Powered by Kunena Forum