Forums / General Questions / Interaction Between Two Order Total Modules

Interaction Between Two Order Total Modules

Locked

Started by retched on 11 Oct 2010, 6:25 AM · Views: 814

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
11 Oct 2010, 6:25 AM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Interaction Between Two Order Total Modules

Is there a way to take the result of one order total module and apply its result to another?

For example:

I have two modules installed.

One module will give a discount based on how many items was ordered.

The second module will calculate tax on the order.

What is supposed to happen is the cart will calculate the discount the order total using module one. However, what is going is the module doing the discount will discount the order... but the tax module will still charge tax on the entire order.

11 Oct 2010, 6:40 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Interaction Between Two Order Total Modules

Apparently your discount module isn't doing all that it needs to do.

I recommend studying how the existing discount modules work, and follow suit.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.