nouck Posted September 22, 2002 Share Posted September 22, 2002 Hi, I was playing around with the user greeting a little bit. in the class="[greetUser"><font color="#0000FF">[%s]</font></span> welcome to ... can I display their lastname and maybe the link to their profile, or maybe the link to their order status. What is the %s?, cause both of the link for login and create a new account are using the same %s. How can add more of their info? Like Welcome John doe Your acount status is last time you visit [date] Last product you look at [look], and you still have stuffs left in your shopping cart and here the link to what they are [cart].. Welcome maybe this is too much. But I do like to know how to add lastname, and their info profile. nouck. Link to comment Share on other sites More sharing options...
Mark Evans Posted September 22, 2002 Share Posted September 22, 2002 What is the %s? This is used with the sprintf function, you can find more detail here http://www.php.net/manual/en/function.sprintf.php How can add more of their info? You will need to edit the tep_customer_greeting() function which can be found in catalog/includes/functions/general.php You will also need to modify the define in english.php. define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Your acount status is %s last time you visited %s Last product you look at %s, and you still have stuffs left in your shopping cart and here the link to what they are %s'); or something like that :) Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.