Create an account to edit articles | See Formatting Syntax for Wiki syntax | We look forward to your contribution!
You are here: The ProductCart Encyclopedia » How To's » Adding "Welcome <Customer Name>!" message to your store's design
Adding "Welcome <Customer Name>!" message to your store's design
You can paste the following code snippet into your header or footer:
<%
' START - Show Logged In
If NOT len(session("pcStrCustName"))>0 Then
pcv_intCustomerIdTmp = session("idCustomer")
if validNum(pcv_intCustomerIdTmp) then
if pcv_intCustomerIdTmp>0 then
query = "SELECT name, lastName, email FROM customers WHERE idCustomer = " & pcv_intCustomerIdTmp
set RSCustomerName = Server.CreateObject("ADODB.Recordset")
set RSCustomerName = conlayout.execute(query)
pcv_strCustNameTmp = RSCustomerName("name") & " " & RSCustomerName("lastName")
session("pcStrCustName") = pcv_strCustNameTmp
end if
end if
End If
If len(session("pcStrCustName"))>0 Then
response.write("<div class=""pcSmallText"">" & dictLanguage.Item(Session("language")&"_CustPref_10") & session("pcStrCustName") & "! " & "<a href=""CustLO.asp"">" & dictLanguage.Item(Session("language")&"_CustPref_4") & "</a></div>")
End If
' END - Show Logged In
%>
Trace: • Product Reviews • Store Buttons • How to have the Order Comments box open by default on One Page Checkout • Setting the number of search results through a link • Adding and Editing Categories • Technical Articles • Saved Shopping Carts • Matrix View Discussion Page • Display Twitter Updates on your ProductCart Storefront • Adding "Welcome <Customer Name>!" message to your store's design