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  [ 4 posts ] 
Author Message
 Post subject: Make World Zone Rates to use PRICE instead of WEIGHT
PostPosted: Fri Jul 15, 2011 6:39 am 
Offline
CRE Newbie
User avatar

Joined: Sat Oct 28, 2006 12:00 am
Posts: 25
Hello,

Having got the payment methods sorted (thanks Simon!) I'm now looking for a shipping method just like the World Zone Rates, but I need it to use the total price of the order instead of the total weight of the order, similar to what the Table Rate method does.

I can't use the Table Rate method as I need to set up the method per three zones (National, Europe, RoW).

It should be a simple task to change the World Zone Rates module to select the total order price, but I can't for my life find the file where the SQL is triggered. I use the OPC if that makes any difference.

So, any pointers to where that file can be found would be gratefully received.

Many thanks,
Bjorn


Top
 Profile  
 
 Post subject: Re: Make World Zone Rates to use PRICE instead of WEIGHT
PostPosted: Fri Jul 15, 2011 8:39 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2404
Location: New Zealand
Sure you can use table rates - some guy on here had 12 of them going at once (but I wouldn't recommend that many.) You rename the copies differently and use the shipping zone setup to specify destinations. Should be pretty easy.

You could modify the world zone - there's really only one key line of code:
Code:
$order_total = $cart->show_total();

so by checking out how the table rate module works, you should be able to come up with a workaround for the world zones.

Good luck!
Simon

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


Top
 Profile  
 
 Post subject: Re: Make World Zone Rates to use PRICE instead of WEIGHT
PostPosted: Fri Jul 15, 2011 10:09 am 
Offline
CRE Newbie
User avatar

Joined: Sat Oct 28, 2006 12:00 am
Posts: 25
ah, didn't think about duplicating and renaming it. Very clever! Thanks for the $cart->show_total(). I will probably go for a fixed World Zones Rate anyway.

Many thanks,
Bjorn


Top
 Profile  
 
 Post subject: Re: Make World Zone Rates to use PRICE instead of WEIGHT
PostPosted: Mon Jan 23, 2012 3:20 am 
Offline
CRE Newbie
User avatar

Joined: Sat Oct 28, 2006 12:00 am
Posts: 25
So I finally got time to play with copies of shipping modules, and I got the PRICE instead of WEIGHT working all right (thanks!).

But my copy still uses the original module when adding the shipping cost to the total price on the one-page checkout page (still, it displays both the original and copy shipping options and costs in the shipping section).

I changed the following variables in my copy:

$this->code
$this->title
$this->description
$this->sort_order
$this->tax_class
$this->enabled

and the 'configuration_key' field in the database is updates with different values (not the same as for the original). What did I miss?

Thanks,
Bjorn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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 3 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 Wed May 23, 2012 7:58 am
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