angel_duzt Posted August 3, 2004 Posted August 3, 2004 Hello again All I have one more problem which is annoying the hell out of me! I have added Flat rate shipping for the UK and I want to do the same for Europe, USA and Canada .... But I only seem to be able to do ONE flat rate cost???? Can anyone tell me how to add flat rate for these other countries please :blink: Thanks in advance Emma :)
jecepede Posted August 3, 2004 Posted August 3, 2004 Aloha ! I have the same problem. And it seems to be so simple ? What can be more difficult then different shipping rates ? Jessy -- If you don't like my attitude, call 1-800-WHOCARES --
Chris Dunning Posted August 4, 2004 Posted August 4, 2004 You'll have to use more than one flat rate module, one for each zone. Here's what I did to accomplish the same thing: -Copy flat_rate.php to a new file, call it flat_rate_uk.php or whatever you want. -Open the flat_rate_uk.php file in the modules folder (NOT the language/modules/ folder) and rename all of the constants (strings of letters in all caps) that say BLAH_BLAH_FLAT_RATE to be BLAH_BLAH_FLAT_RATE_UK. -Follow steps one and two using the flat_rate.php file in each language folder that you plan to use -Install the module in your admin screen, making sure to set the zones properly. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.
Chris Dunning Posted August 4, 2004 Posted August 4, 2004 Please don't post the same question to more than one thread on the board. That will likely get you ignored or flamed...or both. I was a little off in that last reply. Basically, you need to search your file for all occurences of "flat" and replace with something else - such as "flat_uk." So at the beginning, the first functional line of flat.php is this: class flat { Chang it to this: class flat_uk { Do the same on the function and all of the variables. Then find the things that are in all caps, like this: MODULE_SHIPPING_FLAT_TEXT_TITLE; and replace it with something like this: MODULE_SHIPPING_FLAT_UK_TEXT_TITLE; Save this file at flat_uk.php. Now open up the flat.php file in the language directory that you'll be using. Edit all of the defines, changing the word "FLAT" to "FLAT_UK". So this: define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'Flat Rate'); becomes this: define('MODULE_SHIPPING_FLAT_UK_TEXT_TITLE', 'Flat Rate'); While you're at it, you can change the second part of each define statement to reflect that this is a flat rate for the UK, not for the rest of the world. That should do it. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.
angel_duzt Posted August 4, 2004 Author Posted August 4, 2004 Thanks For your help, I really do appreciate it .. and I wasnt yelling in the other thread and I apologise if anyone thought that .. and as I said in that one .. am I really hurting anyone to post another?? If it gets ignored then thats fair enough. I guess I am just frustrated cause my website is finished apart from the shipping :( But Thanks again for your help Kind regards Emma :D
jandbonline Posted August 6, 2004 Posted August 6, 2004 Okay so I need a separte flat.php file for each country, correct? Also can I just have a file for the whole EU? How would I do that or do I need one for each country in the European Union? Here is what I'm wanting flat rates for: US Canada Mexico England European Union - Euro
jecepede Posted August 6, 2004 Posted August 6, 2004 ALoha ! I don't wanna be a party crasher but this is not gonna work. 1: A standard installation of OS already gives you about 182 zones 2: Flat rate is not a smart idea. It would mean that for a single item you use a one dollar stamp and for 100 items ehhrr the same one dollar ? and 3: I even dont' have a FLAT_RATE.PHP file anywhere... Greets Jessy -- If you don't like my attitude, call 1-800-WHOCARES --
angel_duzt Posted August 6, 2004 Author Posted August 6, 2004 Having a flat rate depends on what sort of business you are in .. its specified to your needs!! AND yes it does work!! the flat.php is in catalog/includes/languages/yourlanguage/modules/shipping and another in catalog/includes/modules/shipping ... Have a look. Flat Rate Shipping isnt for everyone, and may not be for you, but it works for me and many other businesses. Kind regards Emma :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.