Help - Ignore QTY discounts for Customer Cats
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=2776
Printed Date: 26-July-2025 at 7:13am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Help - Ignore QTY discounts for Customer Cats
Posted By: rgergen
Subject: Help - Ignore QTY discounts for Customer Cats
Date Posted: 04-June-2009 at 6:11pm
I want to disable QTY discounts for some of my customer category's. I have hid them already but when they get to the OrderVerify.asp screen the show the discount. I need to have the discount ignored for (i.e. session("customerCategory")=6).... any suggestions.
|
Replies:
Posted By: Hamish
Date Posted: 05-June-2009 at 7:34am
Hi, I assume you have customized the code to hide the quantity discounts? Hiding it will not prevent them being used in the calculations which woud involve additional customization. The easiest solution is to switch those customer categories to "Wholesale" and then not offer the quantity discount to wholesale customers. However, that also presents issues as you may already have Wholesale customers and the privileges for wholesale customers such as available payment methods are/can be different.
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
Posted By: rgergen
Date Posted: 05-June-2009 at 9:17am
This is true I have 5 customers types. 2 of them I want to receive qty discounts. I just want to add an if statment such as (i.e. IF session("customerCategory")<>0 OR session("customerCategory")<>1 OR session("customerCategory")<>2.... )
|
Posted By: rgergen
Date Posted: 08-June-2009 at 1:21pm
Posted By: Hamish
Date Posted: 08-June-2009 at 1:30pm
Hi, I suspect this will take at least a significant amount of research as both store front and admin code will (most likely) need to be checked and modified including, I suspect, SQL modifications. It's beyond the scope of what can be achieved via the forum, however, there are developers, contactable via the forum or via http://www.earlyimpact.com/partners-dev.asp - http://www.earlyimpact.com/partners-dev.asp if you wish to get this enhancement.
It looks like a useful enhancement for the future but I don't believe this is scheduled for inclusion in V4. I'll add it to the requests for consideration but I cannot give any idea of a likely date for it's inclusion in the software.
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
Posted By: rgergen
Date Posted: 08-June-2009 at 1:33pm
But couldnt it be suppressed to not execute the QTY discounts code within an if statement?
|
Posted By: Hamish
Date Posted: 08-June-2009 at 2:34pm
Possibly, but identifying exactly where is another matter entirely. Researching this is not a trivial task. For example OrderVerify.asp alone is over 2,500 lines of code and there are other areas of the code that would need identifying and then checking to see what changes that need to be made. There are 43 files that have mention of discountsperquantity many of which will need no changes, but there are others which do not mention the DB field (such as OrderVerify) which will need changes as they use values read by other files.
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
Posted By: Hamish
Date Posted: 08-June-2009 at 2:35pm
PS - Don't be scared off completely by my last posting - it's far from impossible, it's just non-trivial.
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
|