Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

explain personal greeting...


arse_soul

Recommended Posts

Posted

code someone explain the text in bold... what it is and how it is used!!!

 

define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">[b]%s![/b]</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');

 

thanx in advance!!! :)

Posted

oops.. :oops: ... that didn' work

 

<span class="greetUser">%s!</span>

 

explain the --> %s! <--

Posted

%s is a directive for something like sprintf. It tells it to insert a string (which will be provided as part of the sprintf call) in place of %s. In this case, it is inserting the person's username (or guest if they are not logged in).

 

Good luck,

Matt

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...