order number in confirmation email

  • Posts: 30
  • Thank you received: 1
11 years 5 months ago #107416

hi. i want to ask how i can get only order number to email template.

im trying

<?php  $url = $data->order_number; ?>

but it dont work.

thanks

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

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #107441

Hi there,

Try with this:

$item->order_number

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

  • Posts: 30
  • Thank you received: 1
11 years 5 months ago #107444

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

<?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.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #107461

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: 11 years 5 months ago by Eliot.
The following user(s) said Thank You: adambako

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

  • Posts: 30
  • Thank you received: 1
11 years 5 months ago #107463

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.068 seconds
Powered by Kunena Forum