Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default Undefined index: shipping in classes/order.php

    Php 7.1.8
    this is causing me an undefiend index notice (but not in normal use).

    'shipping_module_code' => (isset($_session['shipping']['id']) && strpos($_session['shipping']['id'], '_') > 0 ? $_session['shipping']['id'] : $_session['shipping']),
    If the clause is false why would shipping_module_code be set to $_session['shipping']?
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,692
    Plugin Contributions
    9

    Default Re: Undefined index: shipping in classes/order.php

    in addition, i have never understood the use of the underscore ( _ ) in the code for the shipping module, and the searching for it as demonstrated here.

    it seems that there is some sort of intelligence built into the code that makes it that more difficult to read/debug.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

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

    Default Re: Undefined index: shipping in classes/order.php

    Quote Originally Posted by carlwhat View Post
    in addition, i have never understood the use of the underscore ( _ ) in the code for the shipping module, and the searching for it as demonstrated here.

    it seems that there is some sort of intelligence built into the code that makes it that more difficult to read/debug.
    Shipping modules can have multiple shipping-methods; the selected method is appended (separated by an underscore) to the end of the shipping_module selection.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,495
    Plugin Contributions
    88

    Default Re: Undefined index: shipping in classes/order.php

    See also this bit of documentation on shipping-module innards.

 

 

Similar Threads

  1. v154 Docs index, includes/classes/shopping_cart.php, and CHANGES-714
    By llynix in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 12 Jan 2015, 08:32 PM
  2. v151 Undefined index: path in configure.php (using Apsona)
    By torvista in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 5 Apr 2013, 06:46 PM
  3. Version help with admin/includes/classes/order.php
    By Brent in forum General Questions
    Replies: 2
    Last Post: 4 Jan 2011, 03:25 PM
  4. Undefined Function in order.php
    By datatv in forum Managing Customers and Orders
    Replies: 3
    Last Post: 17 Oct 2008, 02:58 AM
  5. PhP question about a line of code in includes/classes/order.php
    By dbrewster in forum Managing Customers and Orders
    Replies: 12
    Last Post: 1 Feb 2007, 03:30 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