Forum
Rejected shipping methods
I'm getting the following errors when adding something to my basket or at the checkout confirmation stage (after addresses are set). No shipping method is being chosen (there are only 2 in the system).
Undefined index: zones in [...]/perch/addons/apps/perch_shop/lib/PerchShop_Shippings.class.php on line 32
and
in_array() expects parameter 2 to be array, null given in [...]perch/addons/apps/perch_shop/lib/PerchShop_Shippings.class.php on line 32
Perch Debug says
Rejecting shipping method ‘Standard’ because: no price available for chosen shipping zone
Rejecting shipping method ‘Large items’ because: no price available for chosen shipping zone
So I'm sure I don't have shipping set up correctly but I can't find anywhere to enter a price against a specific shipping zone.
Shipping is UK only. I have a single zone set up for UK and address country is hard coded to UK as well.
Shipping is based on product weight. Most products weigh 0 and attract one price. One or more large items in the basket (anything weighing over zero) attract the higher price. Products are entered with a weight of 0 or 1.
I've re-saved everything a few times.
What am I missing?
Diagnostics below...
Perch Runway: 2.8.29, PHP: 7.0.0, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 7e72f9690b1498a1bead7a637c33a831c0d2f655 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (5.0), perch_forms (1.8.3), perch_shop_orders (1.0), perch_shop_products (1.0), perch_shop (1.0.1), perch_members (1.5)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', 'perch_members', 'perch_shop' );
PERCH_RESFILEPATH: [...]/httpdocs/assets/resources
PERCH_LOGINPATH: /perch
PERCH_PATH: [...]/httpdocs/perch
PERCH_CORE: [...]/httpdocs/perch/core
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: et:8888
DOCUMENT_ROOT: [...]/httpdocs
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
If you go into your shipping methods, you can enter the price per zone for that method.
I don't have those options.
I updated all the shop apps earlier to be on the safe side.
Must be a template problem. I'll update all the shippings templates...
Yes, that did the trick. Must have missed that folder when I update the templates.
Hi Caleb, which folder was it that you had missed? I think i've got the same issue.
Answered my own question: /perch/templates/shop/shippings