Error in Notification Mail

  • Posts: 61
  • Thank you received: 1
12 years 3 weeks ago #74277

Hi I have an error in the notification mail to the customer.

Warning: sprintf() [function.sprintf]: Too few arguments in /home/mygastro/public_html/libraries/joomla/methods.php on line 320

The code in the file 'order_creation_notification.html.modified.php' I paste below:


<?php echo JText::sprintf('HI_CUSTOMER',@$data->cart->billing_address->address_title." ".@$data->cart->billing_address->address_lastname);?>
<br/>
<br/>
<?php
$url = $data->order_number;
$config =& hikashop_config();
if($config->get('simplified_registration',0)!=2){
$url .= ' ( '.$data->order_url.' )';
}
echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?>

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
12 years 3 weeks ago #74386

Hi,

You line:
echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?>

should be:
echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$data->order_number, HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?>

The following user(s) said Thank You: Rolandus1

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

Time to create page: 0.053 seconds
Powered by Kunena Forum