Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Tax does not include shipping in Admin Edit Orders
PostPosted: Fri Dec 09, 2011 11:12 pm 
Offline
CRE Newbie
User avatar

Joined: Wed May 11, 2011 12:29 am
Posts: 32
Location: Calgary, AB
Hi Guys,

Could someone please send me an updated admin/edit_orders.php file that correctly calculates the Tax WITH SHIPPING. ??
I've spent the last 4 hours deciphering how you display the order, (I see the global $order variable) but it's a complete mess when trying to modify those values then save them back in to the database!! :cry:

Please help!
Thanks!

_________________
Calgary ecommerce website design
HAWK DESIGN GROUP
"Soar with us..."


Top
 Profile  
 
 Post subject: Re: Tax does not include shipping in Admin Edit Orders
PostPosted: Fri Dec 09, 2011 11:15 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
edit_orders.php ... so that'd be the manual order entry right?
Doubt it'd work, as there's no link between the store side shipping modules and the admin manual order entry.
Just put the order through the cart - you're getting a better order record that way. Default manual order entry isn't great.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Tax does not include shipping in Admin Edit Orders
PostPosted: Sat Dec 10, 2011 6:04 am 
Offline
CRE Newbie
User avatar

Joined: Wed May 11, 2011 12:29 am
Posts: 32
Location: Calgary, AB
Hi Simon - thanks for the quick reply my friend!
I sincerely appreciate the suggestion but we'll need to find another solution :)

The problem is: A customer has already completed a successful checkout but the stock my client has on hand was not accurate (I know, I know... it should be accurate!! haha) To compensate my client has refunded the client for that particular item, and removed the item from the order via the edit_order page. But upon editing the order it then incorrectly calculates the tax. It shows the proper shipping amount that was charged, but the tax & total order amount are incorrect based on her edits.

Was this fixed in 6.5? If not I'll see if I can come up with a proper solution to contribute to the next release :)

Cheers,
Chad

_________________
Calgary ecommerce website design
HAWK DESIGN GROUP
"Soar with us..."


Top
 Profile  
 
 Post subject: Re: Tax does not include shipping in Admin Edit Orders
PostPosted: Sat Dec 10, 2011 4:34 pm 
Offline
CRE Newbie
User avatar

Joined: Wed May 11, 2011 12:29 am
Posts: 32
Location: Calgary, AB
Got it!! .. Kinda :?

I noticed there IS an area for adding in shipping/tax but the value was hardcoded to 0.0!
I added this in to loop through the Tax_groups and grab the value's associated with the products... unfortunately it only uses one value - not sure what would happen if there were multiple tax groups (there should really only be one anyways right??)

Step 1. Open admin/edit_order.php
Step 2. Search for this code-block (line 366 for me):
Code:
if ($ot_class == "ot_shipping") {

          $RunningTax += (($AddShippingTax / 100) * $ot_value);
        }


Step 3. Add this Directly above the $RunningTax += Line:
Code:
foreach($order->info['tax_groups'] as $key => $value) {
           $AddShippingTax = $key;
        }



The updated code should be this:
Code:
if ($ot_class == "ot_shipping") {
         
        foreach($order->info['tax_groups'] as $key => $value) {
           $AddShippingTax = $key;
        }

          $RunningTax += (($AddShippingTax / 100) * $ot_value);
        }


When you hit "UPDATE" it will correctly use the tax+Shipping. ENJOY!!

_________________
Calgary ecommerce website design
HAWK DESIGN GROUP
"Soar with us..."


Top
 Profile  
 
 Post subject: Re: Tax does not include shipping in Admin Edit Orders
PostPosted: Sat Dec 10, 2011 11:51 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Sure, one tax rate. Cool.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Thu May 24, 2012 3:15 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy