Do you want a second (or third, or fourth) flat rate for your site’s shipping? OpenCart doesn’t include a shipping method that allows for multiple flat rates by default, but you can easily set up multiple flat shipping options using the built-in Weight Based Shipping extension.
1. In System > Localisation > Geo Zones, set up a duplicate geo zone for each flat rate that you want. For example, if you wanted these three shipping options available to the U.S.:
- Standard: $5.00
- Express: $12.00
- Next-Day: $18.00
2. In Extensions > Shipping > Weight Based Shipping, create a rate for each geo zone with a rate (in the format Weight:Cost) like so:
RATE #1
- Geo Zone: Standard
- Rates: 999999:5.00
- Geo Zone: Express
- Rates: 999999:12.00
- Geo Zone: Next-Day
- Rates: 999999:18.00
3. During checkout, each option will be presented to the customer on the “Delivery Method” step. They are ordered alphabetically by name, so if you need them in a particular order then you should name them accordingly.
4. If you want to remove the cart weight that is attached to each rate title, then you can make the following edit:
IN:
/catalog/model/
extension/
shipping/weight.php
REPLACE:
$result
[
'name'
] .
' ('
.
$this
->language->get(
'text_weight'
) .
' '
.
$this
->weight->format(
$weight
,
$this
->config->get(
'config_weight_class_id'
)) .
')'
,
WITH:
$result
[
'name'
]
And that’s it! Your OpenCart store now has multiple flat rate shipping options for your customer.
Thanks to Johnathan Shaw for the article
No comments:
Post a Comment