Post by Mr_Mistah » Fri Dec 23, 2016 2:29 am

Hi there!

I (and others) have this error when checking out: "Warning: Shipping method required!" It's not constant but very annoying! I read that it had something to do with caching and that it is a very old bug already.
Tried their solution of a vqmod solution but the bug keeps coming back. So not effective.

Can you guys find a good and permanent solution for this problem?

Newbie

Posts

Joined
Fri Dec 23, 2016 2:05 am

Post by rjcalifornia » Sun Jan 08, 2017 11:26 am

I think we can find the answer in this file:

/catalog/controller/checkout/shipping_method.php

Specially in the following code:

Code: Select all

if (!isset($this->request->post['shipping_method'])) {
			$json['error']['warning'] = $this->language->get('error_shipping');
		} else {
			$shipping = explode('.', $this->request->post['shipping_method']);
			if (!isset($shipping[0]) || !isset($shipping[1]) || !isset($this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]])) {
				$json['error']['warning'] = $this->language->get('error_shipping');
			}
		}

Image
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by Johnathan » Wed Apr 12, 2017 12:15 am

My Sort Shipping Rates extension fixes this issue. It's due a bug in the internal code of shipping rates in the array, and my extension's re-ordering fixes it.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 2 guests