Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Shipping Estimator country selection not working

    Hi, I do not know if it's a bug, Shipping Estimator Display Settings for Shopping Cart, if I select 1 estimate with popup and I change country it works, on the other hand if Shipping Estimator Display Settings for Shopping Cart I chose 2 display shipping costs in shopping cart page and I chose a country it does not work it always stays with the country of the store.
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  2. #2
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Shipping Estimator country selection not working

    You can see here in this demo http://www.zcadditions.com/bootstrap_tpl_demo/
    in shopping cart change of country it always returns united states.
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  3. #3
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Shipping Estimator country selection not working

    What modifications (or other software installed) have been applied to the site? I am not able to reproduce this with a ZC 1.5.6 site other than the sample shown.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Shipping Estimator country selection not working

    It is a fresh installation just a template, but even with the classic templates the problem exists, there are no plugins installs
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  5. #5
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Shipping Estimator country selection not working

    Do you have shipping methods setup to other countries than the US?

  6. #6
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Shipping Estimator country selection not working

    I have no shipping methods, I only have one country for none, but a 1.5.6 zencart demo with shipping costs on the shopping cart page is not online?
    Sorry, but the site that I put is not mine, I am working in localhost on the PC, I put that site because it has the same problem and is set with the display of shipping costs on the cart page, and not in a window. I have installed a dozen countries, but each time it does not take the country it remains with the country of the store
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  7. #7
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Shipping Estimator country selection not working

    Php version?
    Mydebug logs in the logs folder?

    There are some updates that have been applied to includes/modules/shipping_estimator.php to account for stricter php requirements.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Shipping Estimator country selection not working

    php 7.2

    with php 7.3 I have errors
    [03-Apr-2019 22:20:19 Europe/Brussels] Request URI: /index.php?main_page=shopping_cart, IP address: ::1
    #1 mysqli_connect() called at [/Applications/MAMP/htdocs/MYSITE/includes/classes/db/mysql/query_factory.php:64]
    #2 queryFactory->connect() called at [/Applications/MAMP/htdocs/MYSITE/includes/init_includes/init_database.php:22]
    #3 require(/Applications/MAMP/htdocs/MYSITE/includes/init_includes/init_database.php) called at [/Applications/MAMP/htdocs/MYSITE/includes/autoload_func.php:48]
    #4 require(/Applications/MAMP/htdocs/MYSITE/includes/autoload_func.php) called at [/Applications/MAMP/htdocs/MYSITE/includes/application_top.php:170]
    #5 require(/Applications/MAMP/htdocs/MYSITE/includes/application_top.php) called at [/Applications/MAMP/htdocs/MYSITE/index.php:26]
    --> PHP Warning: mysqli_connect(): (HY000/2002): No such file or dir

    it is a clean installation, the proof is the site demo online de rbarbour has the same problem.

    There is not a site with zen cart 1.5.6 online to see if it's a bug or not
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  9. #9
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Shipping Estimator country selection not working

    I'm sorry, but that error doesn't make sense to me. Mysqli_connect doesn't involve a file of Zen Cart, meaning it doesn't try to access a Zen Cart file so don't know how or *why* it is reporting: no such file or dir...

    That said, did a search for "mysqli_connect HY000/2002 no such file or dir" and came up with several results associated with an inability to connect with the database server. The solutions seen include ensuring a correct reference to the database server, the correct port is used/identified, that the service is running or been restarted, etc...

    Is this the error/response that occurs every time the shopping cart page is reloaded after making a country selection on the page and updating?

    As to potential other issues, as said there were some other corrections applied after ZC 1.5.6a was released that affect this method of evaluating shipping options. The results of those (and other modifications) can be seen in the current github version of ZC 1.5.6: https://github.com/zencart/zencart/tree/v156

    As I recall for a customer not logged in, files modified for more strict php requirements included:
    includes/modules/shipping_estimator.php
    includes/modules/pages/checkout_shipping/header_php.php
    includes/classes/order.php

    These and the other files modified seem to be covered by the following Pull Requests:
    https://github.com/zencart/zencart/pull/1951/files
    https://github.com/zencart/zencart/pull/1952/files
    https://github.com/zencart/zencart/pull/2031/files
    https://github.com/zencart/zencart/pull/2165/files

    There are a few others regarding shipping modules and the absence of "proper" response, though not sure that those apply at the moment.

    As to other sites with Zen Cart 1.5.6aish installation? They are out there and as I said the one(s) that I have do not currently have this issue, though they include the updated code as available on github and any other corrections that have been in-house identified but not yet shared with the github location.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: Shipping Estimator country selection not working

    Thank you for your answer, all files are updated, even with a new installation there is the problem. the connection to the mysql server is just the whole site works except when i want to update the country for shipping costs. In the demo online of zen cart we can not see the eurreur because the price estimate is done on another page (pop window) and not on the poage of the cart.
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Shipping estimator not working correctly.
    By vanhorn_s in forum Built-in Shipping and Payment Modules
    Replies: 26
    Last Post: 2 Dec 2015, 06:22 PM
  2. Replies: 15
    Last Post: 26 Nov 2010, 06:17 PM
  3. Shipping Estimator Not Working
    By charmedbytina2 in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 1 Jun 2008, 09:14 PM
  4. Country selection no longer working
    By gossamerLL in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 8 Nov 2006, 12:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR