jamesey Posted May 2, 2010 Share Posted May 2, 2010 Hi, 2 questions relating to the same sort of thing: 1) I want to add another Flat Rate shipping option, so customers have 2 to choose from. Basically I would want one flat rate option to be free and the other $5 for a premium tracking shipping service. Is there an easy way to add another Flat Rate option? 2) Not o important, but how can I edit the text "Flat Rate" that appears when the customer is in the checkout? I would like to change this to the postage service that I use. Thanks, James Link to comment Share on other sites More sharing options...
Guest Posted May 2, 2010 Share Posted May 2, 2010 You can easily copy your flat rate module and name it something else, as a rude example flatrate1 and flatrate2. To edit the text output, go to: catalog/includes/languages/english/modules/shipping/flat.php or whatever the name(s) of your flat rate file(s) are. Link to comment Share on other sites More sharing options...
lagodilecco Posted May 3, 2010 Share Posted May 3, 2010 I've used instructions from Monika Mathe's 'Deep Inside Oscommerce - The Cookbook to do something similar. There is a set of steps which need to be followed. You need to be aware of two different directories: * includes/modules/shipping * includes/languages/english/modules/shipping If you look, you'll notice that they contain files with the same names BUT different purposes (one is for definitions). Choose one of these files (e.g flat.php) to use for 'cloning' purposes e.g copy flat.php to flat1.php (in both directories). Then edit the new files to suit your purposes (if you do it right you'll be able to modify it via admin like any of the other shipping modules). You can change various options (including shipping type label which the customer sees) via your admin. Tip: If you accidently leave files lying around in these directories which are not real shipping files you will upset your admin program. Hope this helps. Link to comment Share on other sites More sharing options...
abbott75 Posted May 3, 2010 Share Posted May 3, 2010 Very easy to do :thumbsup: http://addons.oscommerce.com/info/1724 Link to comment Share on other sites More sharing options...
sarafina Posted May 6, 2010 Share Posted May 6, 2010 Is the flat rate suppose to be flat rate per item? I have a flat rate I want for the order but it always multiplies it for me. Anybody have this issue? Contributions installed: Purchase without Account / STS/ All Products/ Header Tags Controller Link to comment Share on other sites More sharing options...
Guest Posted May 6, 2010 Share Posted May 6, 2010 In the admin configuration shipping module section, remove: Per Item Link to comment Share on other sites More sharing options...
jamesey Posted May 9, 2010 Author Share Posted May 9, 2010 tHANKS FOR ALL THE REPLIES. uNFORTUNATELY i HAVE A PROBLEM :( LAGODILECCO - i DID WHAT YOU SAID - i FOUND THE 2 FLAT.PHP FILES , COPIED THEM AND RENAMED THEM AS FLAT1.PHP, SO BOTH DIRECTORIES HAD FLAT.PHP AND FLAT1.PHP. bUT WHEN i WENT INTO THE ADMIN - MODULES - SHIPPING, IT SAID THERE WAS A FATAL ERROR. yOU SAID AFTER CLONING AND RENAMING FLAT.PHP, THAT YOU NEED TO EDIT THE NEW FILES TO SUIT YOUR PURPOSE - BY THIS DO YOU MEAN SOMETHING NEEDS TO BE EDITED IN THE FLAT1.PHP FILES WITH NOTEPAD MAYBE? Oh... sorry for the caps.. I didn't realise my Caps Lock was on!! Regards, James Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2010 Share Posted May 9, 2010 In catalog/includes/modules/flat2.php You would need to change all references of FLAT to FLAT2 inside the file. also in catalog/includes/languages/english/modules/flat2.php You would need to change all references of FLAT to FLAT2 inside the file. Link to comment Share on other sites More sharing options...
jamesey Posted May 9, 2010 Author Share Posted May 9, 2010 Ahh.. thanks, I'll give that a go.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.