Print Page | Close Window

redirect for login instead of msg=86

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=2755
Printed Date: 26-July-2025 at 8:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: redirect for login instead of msg=86
Posted By: littlered
Subject: redirect for login instead of msg=86
Date Posted: 26-May-2009 at 9:05am
hi-
my client needs the site categories/product viewable by only logged in wholesale customers. so i used the setting in the control panel at the category level to restrict to wholesale only, but i'd like the redirect when a non-logged in customer tries to click on a category to be to a login page, NOT msg.asp?message=86 as it defaults. i tried to find where this is even happening, but i didn't. any advice on where to look to change this default behavior? thanks!



Replies:
Posted By: Hamish
Date Posted: 26-May-2009 at 9:15am
Hi,
  Wouldn't the preferred behaviour be to not show the categories at all unless they are logged in as wholesale?
See : http://wiki.earlyimpact.com/how_to/show_different_content_customer_type - http://wiki.earlyimpact.com/how_to/show_different_content_customer_type


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: littlered
Date Posted: 26-May-2009 at 9:35am
you know, you might think so. but there's always a weird exception... thanks. i've peppered the code minimally with that type of logic now, just commented the code so when someone wants to un-do this, LOL, they can. 


Posted By: Hamish
Date Posted: 26-May-2009 at 10:11am
Hi,
   I did a quick search and there are 3 files in the store front that can issue message=86.
catDiscounts.asp pcBreadCrumbs.asp and viewPrdCode.asp


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code




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