I see that you made some progress? Maybe by turning off COWOA? I could checkout with New Zealand this am but not the US.
lruskauff
I see that you made some progress? Maybe by turning off COWOA? I could checkout with New Zealand this am but not the US.
lruskauff
No, no movement here. I don't understand how you were able to ship to NZ, I wasn't when I finished last night.
You asked what version of COWOA I am running - 2.4 - the latest.
I currently have every shipping module turned on, green icons all down the list, no geographical restrictions except zone rates.
When I go to check out, the only two options showing are store pickup, and one of the two free shipping options. echo zen_count_shipping_modules() returns 2.
Is there some way I can diagnose what is actually happening within zencart? The flipping switches until something starts to work option doesn't seem to be getting anywhere.
How/where does zencart decide what shipping modules are available for a given order?
For the most part, in the shipping module itself... The module uses the switches set in the admin modules->shipping and the code of the shipping module (includes/modules/shipping) to account for any desired "functionality".
Look in the file, there is a class declaration then a function declaration for the class, so like class freeshipping followed by a function freeshipping. It is inside that function where the enablement/disablement primarily is addressed.
As for watching what is going on with the store, might gain some insight by installing superglobals, but it seems to me like there have probably been too many constraints applied and it is causing one or more shipping modules not to be applicable.
Could also compare those files to default versions of the same ZC version. If they are the same, then perhaps removing and then reinstalling them. Checked again recently to see what error logs have been generated in the logs folder?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Try adding an echo for MODULE_SHIPPING_INSTALLED. Is it blank, or does it contain a list of installed shipping modules? Post the list. Or if it's blank then please post the segment that defines the function zen_count_modules($modules = '') { from around line 619 in your /includes/functions/functions_general.php file. It's possible it might be using old code if you've got a plugin installed that puts an obsolete functions_general.php file on your site.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Sorry for the delay in getting back to everyone, I was away and had some other things come up.
gives the following result:PHP Code:
echo zen_count_shipping_modules();
echo MODULE_SHIPPING_INSTALLED;
2flat.php;freeoptions.php;freeshipper.php;item.php;perweightunit.php;storepickup .php;table.php;zones.php
The only 2 shipping options showing are:
No delivery charge
Walk in
I am working on installing superglobals & will see if I can find anything else.
I installed superglobals & checked out as a new customer
The variables I found that look relevant are:
customer_country_id (string) => 153
customer_zone_id (string) => 301
(these are both consitent with the info I saw in the database)
I can see in here that the two shipping methods which show have the following:Code:shipping (array) id (string) => freeshipper_freeshipper title (string) => FREE SHIPPING! (No Delivery Charge) cost (double) => 0 module (string) => freeshipper Again, consistent with what I had seen to date flat (object: flat) code (string) => flat title (string) => Flat Rate description (string) => Flat Rate icon (string) => enabled (NULL) => sort_order (string) => 0 tax_class (string) => 0 tax_basis (string) => Shipping freeoptions (object: freeoptions) code (string) => freeoptions title (string) => Free Shipping Options description (string) => Free Options is used to display a Free Shipping option when other Shipping Modules are displayed.It can be based on: Always show, Order Total, Order Weight or Order Item Count.The Free Options module does not show when Free Shipper is displayed.<br /><br />Setting Total to >= 0.00 and <= nothing (leave blank) will activate this module to show with all shipping modules, except for Free Shipping - freeshipper.<br /><br />NOTE: Leaving all settings for Total, Weight and Item count blank will deactivate this module.<br /><br />NOTE: Free Shipping Options does not display if Free Shipping is used based on 0 weight is Free Shipping.See: freeshipper icon (string) => enabled (NULL) => ck_freeoptions_total (NULL) => ck_freeoptions_weight (NULL) => ck_freeoptions_items (NULL) => sort_order (string) => 0 tax_class (string) => 0 tax_basis (string) => Shipping freeshipper (object: freeshipper) code (string) => freeshipper title (string) => FREE SHIPPING! description (string) => FREE SHIPPING icon (string) => enabled (boolean) => 1 sort_order (string) => 0 tax_class (string) => 0 quotes (array) id (string) => freeshipper module (string) => FREE SHIPPING! methods (array) 0 (array) id (string) => freeshipper title (string) => No Delivery Charge cost (double) => 0 item (object: item) code (string) => item title (string) => Per Item description (string) => Per Item icon (string) => enabled (NULL) => sort_order (string) => 0 tax_class (string) => 0 tax_basis (string) => Shipping perweightunit (object: perweightunit) code (string) => perweightunit title (string) => Per Unit description (string) => Per Unit icon (string) => enabled (NULL) => sort_order (string) => 0 tax_class (string) => 0 tax_basis (string) => Shipping storepickup (object: storepickup) code (string) => storepickup title (string) => Store Pickup description (string) => Customer In Store Pick-up icon (string) => enabled (boolean) => 1 sort_order (string) => 0 tax_class (string) => 0 tax_basis (string) => Shipping locations (array) 0 (string) => Walk In methodsList (array) 0 (array) id (string) => storepickup0 title (string) => Walk In cost (string) => 0.00 quotes (array) id (string) => storepickup module (string) => Store Pickup methods (array) 0 (array) id (string) => storepickup0 title (string) => Walk In cost (string) => 0.00 table (object: table) code (string) => table title (string) => Standard Shipping description (string) => Standard Shipping icon (string) => enabled (NULL) => sort_order (string) => 0 tax_class (string) => 0 tax_basis (string) => Shipping zones (object: zones) code (string) => zones title (string) => Zone Rates description (string) => Zone Based Rates enabled (NULL) => num_zones (integer) => 3 sort_order (string) => 0 icon (string) => tax_class (string) => 0 tax_basis (string) => Shipping shipping_modules (object: shipping) modules (array) 0 (string) => flat.php 1 (string) => freeoptions.php 2 (string) => freeshipper.php 3 (string) => item.php 4 (string) => perweightunit.php 5 (string) => storepickup.php 6 (string) => table.php 7 (string) => zones.php enabled (boolean) => 1 abort_legacy_calculations (boolean) => pass (boolean) => 1 free_shipping (boolean) => shipping_weight (integer) => 0 shipping_quoted (string) => shipping_num_boxes (integer) => 1 quotes (array) 0 (array) id (string) => freeshipper module (string) => FREE SHIPPING! methods (array) 0 (array) id (string) => freeshipper title (string) => No Delivery Charge cost (double) => 0 1 (array) id (string) => storepickup module (string) => Store Pickup methods (array) 0 (array) id (string) => storepickup0 title (string) => Walk In cost (string) => 0.00
enabled (boolean) => 1
Those which don't have the following:
enabled (NULL) =>
I removed and then reinstalled flat rate with no restrictions, no change.
Does the 'enabled' flag come before or after the zone has been compared? ie is this the cause of the problem or a symptom of it?
Originally, you said your only two shipping modules were Flat Rate flat with Sort Order 5 and Zone Rate zones with Sort Order 10 ...
But now you say that you have MODULE_SHIPPING_INSTALLED showing as:
Do you have all of these shipping modules installed?
If you do, and you are not using them, click on each that you are not using and uninstall it ...
If you are using them, or have them installed but disabled, again, ensure that each has its own unique Sort Order ...
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: v1.5.5]
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!
Sorry, I missed where you said you have turned everything on ...
If you go to the Modules ... Shipping ... in your admin and click on Zone Rate zones, what are all of the settings that show in the right hand panel for this module?
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: v1.5.5]
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!
Thanks for posting the detailed info about how your zones are configured.
Earlier you asked why payment stuff would have any impact on shipping. It doesn't. But zone definitions can be shared between both, or can be used for just one and not the other. The definitions don't trigger anything in and of themselves; they only fire if a tax class or payment or shipping module get tied to them, and then only for the ones which are tied to them.
Most shipping modules assess the status of "enabled" immediately when they are instantiated, and that usually includes a test for any zone assignments/restrictions as per the configuration settings you've done for each shipping module via the admin modules screen.
I'm mindful that others (above) have said they can go through checkout and get the correct results ... and that it's perhaps just you who's getting unexpected results.
What are the exact steps we should take to trigger (witness, and consistently recreate) this problem on your site? Give specific addresses to use during checkout, and specific products to put in my cart.
Further, are there any plugins (or code customizations) on your site that have been configured to give you special treatment as an administrator or when using your specific IP address?
Can you give a complete list of plugins/addons on your site? You've already mentioned COWOA.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I created an account on wekadesign and then added addresses for the US, Austraila, New Zealand and Canada ...
The Australia address is odd in that it only shows my First and Last Name on the Address book, but if I edit it, it shows all the fields filled in ...
If you go to your Admin to the Locations / Taxes ... Countries ... and click on Australia ... what do you see in the right hand panel?
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: v1.5.5]
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!
Bookmarks