Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default [Done v155b]checkout_shipping: No method chosen after cart goes from virtual to mixed

    Using a 1.5.5a installation with the demo products, add the "Single Download" product (id=179) to the cart. Login and go to checkout.

    Since the order currently contains only a virtual product, the shipping method is set to free_free and the checkout_shipping page is properly bypassed and the order shows "Free Shipping".

    Now, go back to the products' menu and add a 'physical' product to the cart and re-enter the checkout flow. The checkout_shipping page is displayed (with no message) and none of the shipping methods is selected. I'm pretty sure that previous version(s) of Zen Cart would display a message like "Your available shipping options have changed. Please re-select your desired shipping method.". The $_SESSION['shipping'] is still set to free_free.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: checkout_shipping: No method chosen after cart goes from virtual to mixed

    Is this unique to v155? Or did it happen in v154?
    .

    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.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: checkout_shipping: No method chosen after cart goes from virtual to mixed

    I just checked on a local zc1.5.4 test site: Same behavior.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: checkout_shipping: No method chosen after cart goes from virtual to mixed

    It seems the check is only done if the previously-selected shipping method is *not* free_free:

    Code:
        if (!in_array($checkval, $checklist) && $_SESSION['shipping']['id'] != 'free_free') {
          $messageStack->add('checkout_shipping', ERROR_PLEASE_RESELECT_SHIPPING_METHOD, 'error');
        }
    .

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: checkout_shipping: No method chosen after cart goes from virtual to mixed

    Quote Originally Posted by DrByte View Post
    It seems the check is only done if the previously-selected shipping method is *not* free_free:

    Code:
        if (!in_array($checkval, $checklist) && $_SESSION['shipping']['id'] != 'free_free') {
          $messageStack->add('checkout_shipping', ERROR_PLEASE_RESELECT_SHIPPING_METHOD, 'error');
        }
    In testing this with Ajeh, it appears as though this change should work, and in theory without any ill side-effects ...

    Just remove the second test: ... && $_SESSION['shipping']['id'] != 'free_free'

    Mind testing a bit to confirm it's not causing any undesired results?
    .

    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.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: checkout_shipping: No method chosen after cart goes from virtual to mixed

    Will do either later today or in the morning ...

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: checkout_shipping: No method chosen after cart goes from virtual to mixed

    Looks good, DrByte!

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: checkout_shipping: No method chosen after cart goes from virtual to mixed

    .

    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.

 

 

Similar Threads

  1. [Done v155b] MasterCard 2-series BIN
    By jackie.taferner in forum Bug Reports
    Replies: 10
    Last Post: 9 Apr 2017, 09:34 PM
  2. v151 Disable a payment method for a chosen shipping method?
    By chowyungunz in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 12 Jun 2015, 12:56 PM
  3. Replies: 24
    Last Post: 22 Oct 2010, 05:49 AM
  4. Only show payment method when UPS shipping method chosen?
    By helen610 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Aug 2008, 03:04 AM
  5. Canada Post - problem with mixed virtual and non-virtual products?
    By Franck69 in forum Addon Shipping Modules
    Replies: 3
    Last Post: 27 Jul 2008, 10:31 PM

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