Skip to main content

Error in Notification Mail

More
13 years 10 months ago #74277 by Rolandus1
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.

More
13 years 10 months ago #74386 by nicolas
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.166 seconds
Powered by Kunena Forum