Post by drakemoore » Tue Jan 14, 2014 9:38 am

Hello,

I have an issue with the following validation code for a shipping module. It works great in standard mode, but for some reason in mobile mode, the $this->request->post values are not getting set. In other words, the validation is returning an error in mobile mode (required fields missing) even when these values are specified. Is there another way to validate these field values inside catalog->controller->checkout->shipping method?

if ( isset($settings['required']) && in_array($shipping[0], $settings['shippings']) ) {
if (!isset($this->request->post['deliverydate']) || $this->request->post['deliverydate'] == '') {
$json['error']['warning'] = $this->language->get('error_deliverydate');
}
}

What am I missing? Any help is greatly appreciated!
DM

Newbie

Posts

Joined
Fri Mar 15, 2013 12:55 am
Who is online

Users browsing this forum: No registered users and 1 guest