Guest Posted August 1, 2004 Posted August 1, 2004 I need to offer a flat-fee shipping rate as follows: $1.00 to the U.S. $1.50 to Canada $2.00 Internationally This will be my only shipping rate, so I'm thinking I should skip the "select a shipping rate" page altogether and have the appropriate fee added automatically to the total. How could I do this? Thanks!
Guest Posted August 2, 2004 Posted August 2, 2004 Look for contribution: Multiple Flat Rates V2 I am trying to use it, but no success yet. The shipping modules won't show up in admin. Good Luck.
chuckh2d Posted August 27, 2004 Posted August 27, 2004 Multiple Flat Rates V2 and an update are at http://www.oscommerce.com/community/contributions,1724 Highly recommended for multiple flat shipping-rates: I (finally) have it running at http://hyped2death.com/catalog/ ...where the text of my site's shipping options appears like this (with radio buttons to select): U.S. Priority Mail: any quantity of CDs? PRIORITY $4.00 U.S. one CD first class? ONECD $1.50 U.S. two CDs first class? TWOCDS $2.50 International: Global Priority small (2CDs)? GPSMALL $6.00 International: Global Priority LARGE (up to 10 CDs)? GPLARGE $9.00 [What follows is a kludgy but massively timesaving workaround --that I freely admit represents some seriously sloppy coding] If you want to minimize the time this procedure takes (and also lower the risk of mistakes and rejection) you can keep all the file-names as they are and simply change the display text in the replacement catalog/includes/languages/english/modules/shipping files. For example, overwriting the firstovernight.php file included with Multiple Flat Rates V2, lines 13-14 define('MODULE_SHIPPING_FIRSTOVERNIGHT_TEXT_TITLE', 'International: Global Priority LARGE (up to 10 CDs)'); define('MODULE_SHIPPING_FIRSTOVERNIGHT_DESCRIPTION', 'International: Global Priority LARGE (up to 10 CDs)'); This takes the script for First Overnight service (which I do not offer) and hijacks it for Global Priority postage (which I adore). You will also need to modify the matching catalog/includes/modules/shipping files. So working on that [second] firstovernight.php file at lines 51-55: $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FIRSTOVERNIGHT_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => GPLARGE, 'cost' => MODULE_SHIPPING_FIRSTOVERNIGHT_COST))); ...where GPLARGE [no quotes!!] replaces MODULE_SHIPPING_FILENAME_TEXT_WAY. If you don't do this, "MODULE_SHIPPING_FILENAME_TEXT_WAY" will appear on your checkout-shipping screen right below all the nice text which you've entered above. The text you enter where I've used "GPLARGE" could theoretically contain additional useful information or perhaps even be left blank, but line 54 won't tolerate spaces between words and I thought it would be best to have something that was obviously an abbreviation. (A blank entry would result in the prices appearing on a different line from the descriptive copy...) Please note that in your osC administration panel for shipping (where you'll want to go to arrange the display order), the legend "MODULE_SHIPPING_[FILENAME]_TEXT_TITLE" will appear atop your edit options, but if that bothers you I suspect that you can also modify line 22 of the catalog/includes/modules/shipping files: $this->title = MODULE_SHIPPING_FIRSTOVERNIGHT_TEXT_TITLE; replacing MODULE_SHIPPING_FIRSTOVERNIGHT_TEXT_TITLE with your friendlier abbreviation. I've left mine as-is so I'll remember that --for example-- my single CD information is determined by the standard.php file. Phew.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.