Forums / Bug Reports / [Duplicate] Cheapest shipping not selected if there's only one module active

[Duplicate] Cheapest shipping not selected if there's only one module active

Views: 752

Results 1 to 4 of 4
8 Oct 2015, 12:59 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

[Duplicate] Cheapest shipping not selected if there's only one module active

Running ZC 1.5.4 w/ minimum modifications. The shop only has one shipping module defined (Flat Rate). When a customer goes to checkout, the cheapest/only shipping module is not selected.

To correct this, I changed line 212 of /includes/modules/pages/checkout_shipping/header_php.php from:

  if ( !isset($_SESSION['shipping']) && (zen_count_shipping_modules() > 1) )  $_SESSION['shipping'] = $shipping_modules->cheapest();

to

  if ( !isset($_SESSION['shipping']) && (zen_count_shipping_modules() >[B]=[/B] 1) )  $_SESSION['shipping'] = $shipping_modules->cheapest();
8 Oct 2015, 1:04 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: [Duplicate] Cheapest shipping not selected if there's only one module active

This has previously been added to the Known Bug Fixes for v1.5.4 on post #10:
https://www.zen-cart.com/showthread.php?215694-Known-Bugs-%28and-fixes%29-with-v1-5-4

Thanks!

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2015, 2:32 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: [Duplicate] Cheapest shipping not selected if there's only one module active

Sorry 'bout that.:blush: I googled the symptom before I posted ...

8 Oct 2015, 2:34 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: [Duplicate] Cheapest shipping not selected if there's only one module active

Not a problem ... rather hear about it twice than never ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!