Announcement:Materials and articles for ProductCart 5 can be found at our brand new support center.

Create an account to edit articles | See Formatting Syntax for Wiki syntax | We look forward to your contribution!

Adding "Welcome <Customer Name>!" message to your store's design

The following code snippet is provided “as is” without any warranty or guarantee

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
		%>

QR Code
QR Code Adding &quot;Welcome &lt;Customer Name&gt;!&quot; message to your store&#039;s design (generated for current page)