I'd build a session array on login that has the products_id for all previously purchased Product ...
That can be used to flag products to either say you will get an additional 25% off and flag the products in the cart ...
It is up to you if you want to show the 25% on the cart either per product or as a lump total ...
Then build an Orders Total module to give the extra 25% off ... look at the existing Order Total modules to see which work best for you ... I am thinking adapting one from ot_group_pricing.php would be easiest ...
The function for displaying the price can be adapted that is in functions_price for a global display of the discounted price or adding a flag on the display price ...
I am not sure how elaborate you want to make this ...
Example: ot_group_pricing.php shows the discount during the checkout but not in the Catalog itself ...
Depends on if you have your coding hat on or not ... :smartalec:
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!