Zen Cart Logo
Forums / Addon Shipping Modules / No shipping method selected notification

No shipping method selected notification

Views: 1,133

Results 1 to 4 of 4
11 Feb 2012, 3:50 AM
#1
moosesoom avatar

moosesoom

New Zenner

Join Date:
Dec 2008
Location:
Rimini, Italy, Italy
Posts:
67
Plugin Contributions:
0

No shipping method selected notification

I followed instructions on thread http://www.zen-cart.com/forum/showthread.php?t=39376 to have no default shipping method on checkout first page.

If customers try to click on Continue without selecting a shipping method, zen cart just sits on the same page without a "missing shipping selection" notification.

Any help to accomplish that?
Thanks in advance

11 Feb 2012, 5:59 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: No shipping method selected notification

In the file:
/includes/modules/pages/checkout_shipping/header_php.php

You could add the code in RED:

// process the selected shipping method
  if ( isset($_POST['action']) && ($_POST['action'] == 'process') ) {

    if (!$_SESSION['shipping']) {
      $messageStack->add('checkout_shipping', 'Please select a Shipping Module', 'error');
    }
14 Feb 2012, 8:07 PM
#3
moosesoom avatar

moosesoom

New Zenner

Join Date:
Dec 2008
Location:
Rimini, Italy, Italy
Posts:
67
Plugin Contributions:
0

Re: No shipping method selected notification

Thanks Linda, it works.
I completed it by managing multi language:

 if (!$_SESSION['shipping']) {
      $messageStack->add('checkout_shipping', PAGE_CHECKOUT_SHIPPING_CORIMTEC_NOTIFY , 'error');
    }
14 Feb 2012, 11:18 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: No shipping method selected notification

Thanks for the update that this worked and for posting your solution for multi language ...