[Skip to main content](#vessel-content)

#   Error in Notification Mail

##

- **[Rolandus1](/forum/user/6166-rolandus1 "View Rolandus1's Profile")**
- [![Rolandus1's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6166-rolandus1 "View Rolandus1's Profile") Topic Author
- [ Offline](/forum/user/6166-rolandus1)

Less More

- Posts: 61
- Thank you received: 1
-
-

14 years 1 week ago [\#74277](#74277) by [Rolandus1](/forum/user/6166-rolandus1 "View Rolandus1's Profile")  *[Error in Notification Mail](/forum/2-general-talk-about-hikashop/74277-error-in-notification-mail#74277 "Hi I have an error in the notification mail to the customer.  Warning: sprintf() &#91;function.sprintf&#93;: Too few arguments in /home/mygastro/public&#95;html/libraries/joomla/methods.php on line 320  The code in the file 'order&#95;creation&#95;notification.html.modified.php' I paste below:  cart-&gt;billing&#95;address-&gt;address&#95;lastname);?&gt;   order&#95;number; $config =&amp; hikashop&#95;config(); if($config-&gt;get('simplified&#95;registration',0)!=2){ $url .= ' ( '.$data-&gt;order&#95;url.' )'; } echo JText::sprintf('ORDER&#95;CREATION&#95;SUCCESS&#95;ON&#95;WEBSITE&#95;AT&#95;DATE',HIKASHOP&#95;LIVE, hikashop&#95;getDate(time(),'%d %B %Y'), hikashop&#95;getDate(time(),'%H:%M'));?&gt;")* was created by *[Rolandus1](/forum/user/6166-rolandus1 "View Rolandus1's Profile")*

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:

&lt;?php echo JText::sprintf('HI_CUSTOMER',@$data-&gt;cart-&gt;billing_address-&gt;address_title." ".@$data-&gt;cart-&gt;billing_address-&gt;address_lastname);?&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;?php
$url = $data-&gt;order_number;
$config =&amp; hikashop_config();
if($config-&gt;get('simplified_registration',0)!=2){
$url .= ' ( '.$data-&gt;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'));?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc0Mjc3LWVycm9yLWluLW5vdGlmaWNhdGlvbi1tYWlsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

14 years 1 week ago [\#74386](#74386) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error in Notification Mail](/forum/2-general-talk-about-hikashop/74277-error-in-notification-mail#74386 "Hi I have an error in the notification mail to the customer.  Warning: sprintf() &#91;function.sprintf&#93;: Too few arguments in /home/mygastro/public&#95;html/libraries/joomla/methods.php on line 320  The code in the file 'order&#95;creation&#95;notification.html.modified.php' I paste below:  cart-&gt;billing&#95;address-&gt;address&#95;lastname);?&gt;   order&#95;number; $config =&amp; hikashop&#95;config(); if($config-&gt;get('simplified&#95;registration',0)!=2){ $url .= ' ( '.$data-&gt;order&#95;url.' )'; } echo JText::sprintf('ORDER&#95;CREATION&#95;SUCCESS&#95;ON&#95;WEBSITE&#95;AT&#95;DATE',HIKASHOP&#95;LIVE, hikashop&#95;getDate(time(),'%d %B %Y'), hikashop&#95;getDate(time(),'%H:%M'));?&gt;")*

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'));?&gt;

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

The following user(s) said Thank You: [Rolandus1](/forum/user/6166-rolandus1 "View Rolandus1's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc0Mjc3LWVycm9yLWluLW5vdGlmaWNhdGlvbi1tYWlsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.052 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
