Jump to content
Sign in to follow this  
CreativePortal

Order Totals modules sort order

Recommended Posts

Is there a specific reason why this module has a default sort order of 740?

The default sort order for the Totals module is 10.

 

The DC and GV modules should be before the Total for proper price calculation at checkout.

At least for merchant gateways, the GV credit is never applied, since the Total is the value that is passed on and it never includes the GV.

Share this post


Link to post
Share on other sites

depending on the sort order teh sequence of order totla modules are executed and totals is generated.

 

So just make sure where You want.

 

generally its to come pretty late after subtotal hence a high value given by default.

 

Satish


Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Share this post


Link to post
Share on other sites

I know but why is it higher than the sort order for Total? This produces incorrect calculations at checkout.

Shouldn't the sort order for GV be 8 or 9? Or conversely, have the order_totals_gv.sql adjust the sort order for Totals to > 740?

Share this post


Link to post
Share on other sites
I know but why is it higher than the sort order for Total? This produces incorrect calculations at checkout.

Shouldn't the sort order for GV be 8 or 9? Or conversely, have the order_totals_gv.sql adjust the sort order for Totals to > 740?

 

Total should come after gift vouchers.

 

One of my customers sites is set up (as an example)

 

Subtotal 1

Shipping 2

Tax 3

Discount coupons 9

Gift Vouchers 740

Total 900

Share this post


Link to post
Share on other sites

Yes.

 

I've setup osC (CCGV) many times.

By default, I either change GV to 8 or else I change Totals to 999.

 

But why is the installation made to be broken by default?

 

I ask because I'm repackaging v5.19 with proper install instructions and a bunch of fixes.

One of the fixes I am considering is to change the default sort order for the GV module to 8. (changing the sort order for Totals when the GV is installed would break modularity and would have to presume that it has not aleady been changed by the user)

Edited by CreativePortal

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×