Author |
Topic |
|
Gabriel
Starting Member
21 Posts |
Posted - July 31 2003 : 16:09:08
|
I have v5.
I need to sell to retail customers and wholesale customers. To sell to wholesale customers, I will be using the customerprices table.
All of the products that I will be selling will have several levels of quantity discount; however, I do not want to apply a quantity discount if the logged in customer is a wholesaler.
The behavior that I am seeing is this: The quantity discount is applied then the customer specific pricing is applied.
What do I need to change or set to not apply quantity discount is the customer type is something or if a customer specific price record available.
Thanks, Gabriel Smith
Edited by - Gabriel on August 01 2003 10:22:48
Edited by - Gabriel on August 01 2003 10:41:38 |
|
lazurus
Starting Member
USA
6 Posts |
Posted - October 30 2003 : 11:51:19
|
I seem to be having the same problem. Has anyone figured out a solution for this? Thanks,
Lazurus
Update - 10/31/2003
I've been searching for the solution and I think I've found it. In the file shopuserprice.asp, at around line 14, you need to change this:
if getconfig("xquantityPrices")<>"Yes" then exit sub
to this:
if getconfig("xquantityPrices")<>"Yes" OR getsess("customertype")<>"" then exit sub
This seemed to fix the problem for me. I had checked the version 4.00 shopuserprice.asp with 5.00 and this was the first big standout I noticed and once I added the OR, it fixed my problem.
I hope this helps whoever needs it.
Lazurus
Edited by - lazurus on October 31 2003 09:03:02 |
|
|
siraj
VP-CART New User
USA
194 Posts |
Posted - February 13 2004 : 00:21:44
|
Hi.. if you dont want to apply the quanity break price for particular type customer in the above case wholesaler do this.
In shopuserprices.asp which handles quantity break price, locate this line (its on top some where line 10?): if getconfig("xquantityPrices")<>"Yes" then exit sub add the following line somewhere around that. dim customertype customertype=getsess("customertype") if lcase(customertype)<>"retail" then exit sub
What this one does is, if you customer is not wretail customertype, then quantity price is not applied. GOOD LUCK. SJ.
[email protected] |
|
|
|
Topic |
|