Forum

Thread tagged as: Problem, Shop

Shop Shipping Method

Hi,

If a Shop cart qualifies for two shipping methods (e.g. Standard Shipping and Next Day Delivery), should the cheapest be applied automatically? My cart is currently applying the more expensive Next Day Delivery by default, which isn't ideal.

Short diagnostics:

Perch Runway: 2.8.29, PHP: 5.5.32, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_forms (1.8.3), perch_shop_orders (1.0.3), perch_shop_products (1.0.3), perch_shop (1.0.3), perch_members (1.5), perch_mailchimp (3.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'perch_members', 'perch_shop', 'perch_mailchimp' );
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/newgateclocks/public_html/admin
PERCH_CORE: /home/newgateclocks/public_html/admin/core
PERCH_RESFILEPATH: /home/newgateclocks/public_html/admin/resources
Image manipulation: GD
PHP limits: Max upload 20M, Max POST 8M, Memory: 64M, Total max file upload: 8M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/newgateclocks/public_html
HTTP_HOST: newgateclocks.com
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
Mike Harrison

Mike Harrison 37 points

  • 5 years ago

P.S. Site is here:

Newgate Clocks

Any cart under £50 shows options of Standard Shipping or Next Working Day if you want to test.

Cheers!

Mike

Drew McLellan

Drew McLellan 2638 points
Perch Support

I think it should apply the cheapest qualifying method, but once you've chosen a method it will default to that.

It is definitely going for the most expensive in this case, which is odd. Thought it might be using the one with the lowest shippingID, but that would be Standard Shipping.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What does debug output when it's evaluating the options?

This is what is in debug - Next Day is being matched first, not sure if that is significant:

0.9297  0.0004  Rejecting shipping method ‘Free Shipping’ because: cart value is less than minimum for this shipping type
0.9298  0.0001  Cart value: 22. Shipping min price: 50
0.9298  0.0001  Qualifying shipping method ‘Next Working Day’
0.9299  0.0001  Qualifying shipping method ‘Standard Shipping’
0.93    0.0001  Rejecting shipping method ‘European Shipping’ because: no price available for chosen shipping zone
0.9301  0.0001  [1] SELECT * FROM clocks_shop_shippings WHERE shippingID='3' AND shippingDeleted IS NULL LIMIT 1
0.9303  0.0003  Using shipping zone: UK
Drew McLellan

Drew McLellan 2638 points
Perch Support

Hmm, yes it could be.