Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: 2.5.4 dropping shipping at last page of checkout

  1. #1
    Member
    2.5.4 dropping shipping at last page of checkout


    Join Date
    May 2017
    Posts
    73
    Total Contributions For

    Markcm     $ 0.00
    Rep Power
    2


    Default 2.5.4 dropping shipping at last page of checkout

    I have a fairly new, stock installation of 2.5.4 and it is dropping the shipping charge at the last checkout page allowing customers to checkout without any shipping.

    It does provide the shipping page for the customer to select which service but on the checkout confirmation there is no reference to shipping.

    I'm also struggling with USPS methods all showing as "-----" rather than the actual method name such as priority mail or first class mail...

    Any suggestions on either of these?

  2. #2
    osCMax Development Team

    2.5.4 dropping shipping at last page of checkout

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,092
    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    94


    Lightbulb Re: 2.5.4 dropping shipping at last page of checkout

    Ensure that you only have the original number of files in catalog/includes/modules/shipping i.e. no backups or copies of any of the modules, which should be stored elsewhere.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  3. #3
    Member
    2.5.4 dropping shipping at last page of checkout


    Join Date
    May 2017
    Posts
    73
    Total Contributions For

    Markcm     $ 0.00
    Rep Power
    2


    Default Re: 2.5.4 dropping shipping at last page of checkout

    Thanks for the tip. I have 24 files from my install in october. None have been edited. Does that sound correct?

  4. #4
    osCMax Development Team

    2.5.4 dropping shipping at last page of checkout

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,092
    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    94


    Default Re: 2.5.4 dropping shipping at last page of checkout

    Sounds OK but I ain't counted 'em!

    See attachment. Compare to yours and if it looks entirely different then my client is using a different version. AFAIK,this one currently works, at least until USPS decides to screw up their customers again.
    Attached Files Attached Files

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  5. #5
    Member
    2.5.4 dropping shipping at last page of checkout


    Join Date
    May 2017
    Posts
    73
    Total Contributions For

    Markcm     $ 0.00
    Rep Power
    2


    Default Re: 2.5.4 dropping shipping at last page of checkout

    This usps.php was dramatically different than the file in 2.5.4 and fixed my issue with the method names all showing as "-----". Thank you for that!

    Regarding the postage value disappearing from checkout_confirmation.php and allowing customers to checkout with no shipping fees; I've found that if I click back to the Delivery Information step of checkout and then proceed again to checkout_confirmation.php, the shipping will show up. Doing an F5 refresh or control+F5 does not load the shipping, I have to actually navigate back to checkout_shipping.php.

    With a little more testing I've found that when I get to the first page of checkout, checkout_shipping.php, if I change the shipping method, even if I change it back to the default option, it seems to work. So apparently the default option although the radio box is ticked is not actually posting to the order unless I make a change to it.

    Any ideas how to fix this?
    Last edited by Markcm; 12-11-2017 at 03:08 PM.

  6. #6
    osCMax Development Team

    2.5.4 dropping shipping at last page of checkout

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,092
    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    94


    Default Re: 2.5.4 dropping shipping at last page of checkout

    Quote Originally Posted by Markcm View Post
    Any ideas how to fix this?
    Check your session/config settings
    What is the osCsid & why you must not loose it. - Tips and Tricks - osCommerce Support Forum
    Compare those two php files with those of the previous versions, using for example Meld.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  7. #7
    Member
    2.5.4 dropping shipping at last page of checkout


    Join Date
    May 2017
    Posts
    73
    Total Contributions For

    Markcm     $ 0.00
    Rep Power
    2


    Default Re: 2.5.4 dropping shipping at last page of checkout

    Quote Originally Posted by ridexbuilder View Post
    Check your session/config settings
    What is the osCsid & why you must not loose it. - Tips and Tricks - osCommerce Support Forum
    Compare those two php files with those of the previous versions, using for example Meld.
    When you say compare "the" two files, which files are you referring to? I checked the link and thats a pretty involved thread, I wasn't sure what to make of it.

    Does the .htaccess file have anything to do with this as well?

    Doe these sessions settings look ok?

    Session Directory: /tmp
    Force Cookie Use: True
    Check SSL Session ID: False
    Check User Agent: False
    Check IP Address: False
    Prevent Spider Sessions: True
    Recreate Session: True

    When I log in to my site with a test account, I don't see any oscid on the end of the url, even when I'm in the cart with an item. I also notice that there are no recent files in the .../tmp folder

    Also, when viewing Whos Online WOL, it indicates Session=Yes
    Last edited by Markcm; 12-12-2017 at 03:24 PM.

  8. #8
    osCMax Development Team

    2.5.4 dropping shipping at last page of checkout

    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    4,092
    Total Contributions For

    ridexbuilder     $ 15.00
    Rep Power
    94


    Default Re: 2.5.4 dropping shipping at last page of checkout

    Quote Originally Posted by Markcm View Post
    When you say compare "the" two files, which files are you referring to?
    The two php files that you mentioned in post #5

    Session settings appear to be fine.

    .htaccess? Doubtful that would have an effect, except to temporarily disable SEO URL (plus in admin) and see if there is an improvement. All part of a debug process.

    Developers resource at bitbucket
    *** *** ***
    oscmax.co.uk / ejsolutions.co.uk
    Hosting plans with installation, configuration, contributions, support and maintenance.
    *** FREE osCmax hosting available ***
    oscmaxtemplates.com

  9. #9
    Member
    2.5.4 dropping shipping at last page of checkout


    Join Date
    May 2017
    Posts
    73
    Total Contributions For

    Markcm     $ 0.00
    Rep Power
    2


    Default Re: 2.5.4 dropping shipping at last page of checkout

    Thnaks for the ideas.

    I checked my configure.php and it is set to use mysql for sessions and the database is creating session files. I still don't see any session information in the URL?

    I also replaced all of my ...catalog/checkout_xxx.php files with a fresh download from oscmax which made no differnece.

    I tried turning off 'force cookie use' which I don't know if that even matters since I have the sessions in sql but I'm on a shared godaddy server and read that the force cookie use isn't good with shared server. This made no difference either.

    After trying these, a customer still must make a shipping method selection change on the checkout_shipping.php page for shipping to be included on the checkout_confirmation.php page; if the default method is left selected (which it typically is) then the shipping disappears on the confirmation page and checkout is processed with free shipping.

    I tried commenting out line 205 from .../confirmation_shipping.php which is the code to set the lowest shipping rate as the default, this forces the customer to select a shipping method although this did not correct the issue either

    Code:
    Line 205 // if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();
    I'm still open to other suggestion as to why my shipping variable is not sticking in the session unless a shipping method selection change is made on the checkout_shipping.php.

    It really seeams like lines 99-101 of checkout_confirmation.php are not always working

    Code:
    // load the selected shipping module
      require(DIR_WS_CLASSES . 'shipping.php');
      $shipping_modules = new shipping($shipping);
    I am also finding that the usps.php file that I downloaded from the post above will not copy from my server to my local drive, it gives me an error. I tried deleting the file and re uploading it which worked fine but I still cannot download the file via ftp from my server to my local PC. It may just be something weird that needs refresshing, I checked to make sure the file is not in use as well; strange?
    Last edited by Markcm; 12-13-2017 at 11:58 AM.

  10. #10
    Member
    2.5.4 dropping shipping at last page of checkout


    Join Date
    May 2017
    Posts
    73
    Total Contributions For

    Markcm     $ 0.00
    Rep Power
    2


    1 out of 1 members found this post helpful.

    Default SOLVED: 2.5.4 dropping shipping at last page of checkout

    I found a bandaid for my issue of shipping not applying on checkout_shipping.php in my stock 2.5.4 oscmax.

    I copied line 86 of checkout_shipping.php and pasted it to the end of the same file at line #206

    The code I duplicated was:
    PHP Code:
    if (!tep_session_is_registered('shipping')) tep_session_register('shipping'); 
    I've had this bandaid running for about a week and it seems to have "stopped the bleeding". I don't understand how others are not experiencing the same since I'm running a stock 2.5.4 install.

    Regarding the issue I've been having with USPS shipping methods all being listed as "------", this was resolved by uninstalling the stock v2.5.4 ...includes/modules/shipping/usps.php and replacing it with RideXbuilders version posted above. Thank you Ridexbuilder!!! I also found this works in 2.5.5-dev which has the "-----" issue.

Page 1 of 2 12 LastLast

Similar Threads

  1. Shipping not showing in one page checkout
    By dubhros in forum Installation/Setup
    Replies: 2
    Last Post: 02-18-2014, 06:27 PM
  2. Shipping Modules and One Page Checkout?
    By Pr0ject in forum Custom Mods and Hacks
    Replies: 0
    Last Post: 03-25-2012, 06:16 PM
  3. One page Checkout Shipping not Showing Up
    By Marotta1 in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 02-17-2011, 12:13 PM
  4. Shipping page being skipped on checkout
    By spottedhaggis in forum osCmax v2 Installation issues
    Replies: 8
    Last Post: 06-03-2006, 11:17 AM
  5. fatal error on checkout shipping page
    By Christy in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 01-21-2005, 09:16 AM

Tags for this Thread

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
  •