Print Page | Close Window

Modify CustPref.asp

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Getting Started
Forum Description: Installing, activating, and getting started with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=567
Printed Date: 26-June-2024 at 2:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Modify CustPref.asp
Posted By: lcameron
Subject: Modify CustPref.asp
Date Posted: 25-December-2006 at 5:46am

Is anyone aware of a way to edit the CustPref.asp that members are directed to when logged in? We are wanting to add some extra links to a customer specific static page and also some extra text specific to each customer.

If can't be done through CustPref.asp page, any suggestions how?

Hope that makes sense...




Replies:
Posted By: netprofits
Date Posted: 26-December-2006 at 10:08am
It is custpref.asp. Just search for the area that displays the menu after a customer logs in and add your own links and text. It is in the bottom half of the code.

-------------
NetProfits Internet Consulting

Certified ProductCart Developer

http://www.nicwebdesign.com" rel="nofollow - Our Site


Posted By: lcameron
Date Posted: 26-December-2006 at 5:43pm
Thanks NetProfits, Any idea how I can link to different pages for different customers?


Posted By: netprofits
Date Posted: 27-December-2006 at 11:11am

After a customer logs in, their customer ID is stored in session("idCustomer"). You can check that value to display different info for each customer. You can also check session("pcStrCustName") but that is not guarenteed to be unique since customers can have the same name.



-------------
NetProfits Internet Consulting

Certified ProductCart Developer

http://www.nicwebdesign.com" rel="nofollow - Our Site


Posted By: lcameron
Date Posted: 27-December-2006 at 6:02pm

Thank you netprofits, Would you be able to point me in an example of the type of code or what I would need to do? (Sorry, new to editing ASP)



Posted By: netprofits
Date Posted: 28-December-2006 at 2:23pm

The easiest would be to use the Customer ID as part of the page name as follows:


<a href="custompage<%=Session("idCustomer")%>.asp">You r link text</a>

You would need to create a unique page for each customer with filenames like:
custompage1.asp, customerpage2.asp, etc. where the number matches the customer ID.

This seems like a lot of work. Do you really need unique content for each customer?



-------------
NetProfits Internet Consulting

Certified ProductCart Developer

http://www.nicwebdesign.com" rel="nofollow - Our Site


Posted By: lcameron
Date Posted: 28-December-2006 at 3:33pm

Perfect netProfits, Thanks  Will get to installing today, fingers crossed everything goes to plan.

It wont be for every single customer that buys in the shop, just those we are doing a project for so shouldnt be too big hopefully.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net