Results 1 to 10 of 2956

Threaded View

  1. #22
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: One-Page Checkout [Support Thread]

    1.5.5f PHP7.1 cliponearrings.net.au

    Hi - I am getting the following myDEBUG error and am not sure what to do to fix it - I am not experiencing any symptoms on the site, well none that I am aware of anyway.

    Code:
    [09-Oct-2018 00:32:43 Australia/Melbourne] Request URI: /index.php?main_page=checkout_one, IP address: 124.168.54.51
    #1  zones->quote() called at [/home/cliponearrings/public_html/includes/classes/shipping.php:171]
    #2  shipping->quote() called at [/home/cliponearrings/public_html/includes/modules/pages/checkout_one/header_php.php:200]
    #3  require(/home/cliponearrings/public_html/includes/modules/pages/checkout_one/header_php.php) called at [/home/cliponearrings/public_html/index.php:36]
    
    [09-Oct-2018 00:32:43 Australia/Melbourne] PHP Warning:  A non-numeric value encountered in /home/cliponearrings/public_html/includes/modules/shipping/zones.php on line 252
    this is the line at and around #252 (in blue)
    Code:
        if ($shipping == -1) {
              $shipping_cost = 0;
              $shipping_method = MODULE_SHIPPING_ZONES_UNDEFINED_RATE;
            } else {
              switch (MODULE_SHIPPING_ZONES_METHOD) {
            	  case (MODULE_SHIPPING_ZONES_METHOD == 'Weight'):
                  // charge per box when done by Weight
                  // Handling fee per box or order
                  if (constant('MODULE_SHIPPING_ZONES_HANDLING_METHOD_' . $dest_zone) == 'Box') {
                    $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone) * $shipping_num_boxes;
                  } else {
                    $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone);
                  }
                  break;
            	  case (MODULE_SHIPPING_ZONES_METHOD == 'Price'):
                  // don't charge per box when done by Price
                  $shipping_cost = ($shipping) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone);
                break;
            	  case (MODULE_SHIPPING_ZONES_METHOD == 'Item'):
                  // don't charge per box when done by Item
                  $shipping_cost = ($shipping) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone);
                break;
              }
    my admin/shipping settings are 'zone' and 'weight' with no handling fees.

    cheers,
    Mike
    Last edited by shags38; 9 Oct 2018 at 06:53 AM.

 

 

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 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