Page 1 of 1
[1.4.4] No fallback if no shipping/payment method found
Posted: Thu Mar 25, 2010 5:57 pm
by SuperJuice
You can end up in a position where you are in the checkout and there is no postage option, usually due to an unforeseen combination in the shopping cart / destination etc.
I think OpenCart itself (not the shipping modules) needs to handle with some kind of error/message (or fallback.. manual calculation of shipping cost for eg.) when no shipping modules (options) have successfully returned a shipping method.
Re: [1.4.4] No fallback if no shipping method is returned
Posted: Fri Mar 26, 2010 11:25 am
by Qphoria
Yes, the usual "Error: Shipping Method Required" is a bit lacking. It's technically a store owner issue as they should be sure to supply ample shipping options. This also applies to payment options, not just shipping.
It's a simple fix:
1. EDIT: catalog/model/checkout/shipping.php
2. FIND:
3. AFTER, ADD:
Code: Select all
if (!$quote_data) {
$this->load->language('checkout/shipping');
$this->error['warning'] = $this->language->get('error_not_available');
}
4. EDIT: catalog/language/english/checkout/shipping.php
5. FIND:
Code: Select all
$_['error_shipping'] = 'Error: Shipping method required!';
6. AFTER, ADD:
Code: Select all
$_['error_not_available'] = 'Error: No Shipping options are available. Please <a href="index.php?route=information/contact">contact us</a> for assistance!';
Do the same for payment, but change quote_data to method_data and shipping to payment

Re: [1.4.4] No fallback if no shipping/payment method found
Posted: Fri Mar 26, 2010 12:16 pm
by SuperJuice
Yep, looks good.
Now we just need Daniel to add it to 1.4.5

Re: [1.4.4] No fallback if no shipping/payment method found
Posted: Fri Mar 26, 2010 3:50 pm
by i2Paq
SuperJuice wrote:Yep, looks good.
Now we just need Daniel to add it to 1.4.5

I've send a PM to Daniel in the hope that he can add it to 1.4.5...
Re: [1.4.4] No fallback if no shipping/payment method found
Posted: Fri Mar 26, 2010 7:23 pm
by Daniel
thx!
added it to both login and guest checkout.