Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display group pricing discount upfront

Display group pricing discount upfront

Locked

Views: 1,049

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
22 Sep 2009, 10:54 PM
#1
artcoder avatar

artcoder

Zen Follower

Join Date:
Jan 2007
Posts:
166
Plugin Contributions:
0

Display group pricing discount upfront

Okay, I've played with the group pricing that is present in the default ZenCart installation and documented in wiki. It say (and it is true) that group pricing discount is applied at checkout. So even if I assign a customer to a discount group, the customer will not see the discount until checkout.

I would like to re-work the code so that it is possible to show this customer the discounted price as he/she is browsing the products (and not have to wait to checkout). What is the best approach for this?

23 Sep 2009, 10:49 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Display group pricing discount upfront

There's no way for the cart to know if the customer is a member of a discount group unless they are logged in (so it can check against the customer_id). Your best bet is to take a look at the dual-pricing mod and look at how that module uses the customer_id to display lower prices (again, this can only happen when the customer is logged in).