Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2005
    Posts
    9
    Plugin Contributions
    0

    Default Problem: Editing options not available for Order Total Modules

    When I go to Modules > Order Totals in the Admin, I am no longer able to edit the settings. There is nothing displayed to the right of the Actions column. When I click on one of the items in the list, such Shipping, nothing changes on the page.

    This has always worked fine, but I noticed the problem after I made some modifications to the process function of ot_shipping.php (didn't modify any other functions). However, even after I restored ot_shipping.php to it's original (unmodified) version, I still see the same behavior in the Admin.

    From the shopper perspective, everything works fine and it is using the last good settings in the Admin for ot_shipping.

    Any ideas on the best way to resolve this?

  2. #2
    Join Date
    Oct 2005
    Posts
    9
    Plugin Contributions
    0

    Default Re: Problem: Editing options not available for Order Total Modules

    Okay, I just figured this out myself. It seems that if you have files in the /includes/modules/order_total directory other than the standard files and file names that ZC is expecting, it will not display the page correctly in the Admin. I just had a backup copy of ot_shipping.php in the directory named ot_shipping_orig.php and that caused the problem. Renaming the file so it doesn't start with ot_ and trying other permutations of changing the file name made no difference, it still causes the same problem.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Problem: Editing options not available for Order Total Modules

    Ah ha! You have discovered the secret of the self loading directory!

    Try 1ot_somemodule.php.BAK or similar next time
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Oct 2005
    Posts
    9
    Plugin Contributions
    0

    Default Re: Problem: Editing options not available for Order Total Modules

    Thanks for the tip, Kim!

    The reason I ran into this is because I need to be able to have two different order total values to qualify an order for free shipping...one value for domestic, and one for international.

    Maybe I should post this somewhere else, but...

    It seems that I will need to tweak these files that make use of MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER:

    /includes/modules/order_total/ot_shipping.php
    /includes/modules/pages/checkout_shipping/header_php.php
    /includes/modules/shipping_estimator.php

    Can anyone confirm this, or otherwise point me in the right direction in terms of best way to enable this in ZC?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problem: Editing options not available for Order Total Modules

    You need to customize the ot_shipping.php module for this IF where it determines what the amount is:
    PHP Code:
            if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
              
    $order->info['shipping_method'] = $this->title;
              
    $order->info['total'] -= $order->info['shipping_cost'];
              
    $order->info['shipping_cost'] = 0;
            } 
    You would set the module to Both ... but then need to customize:
    MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER

    to be one value for International and one value for national ...

    Look at the case statement above this IF to see how National and International are determined to know which charge to apply ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Oct 2005
    Posts
    9
    Plugin Contributions
    0

    Default Re: Problem: Editing options not available for Order Total Modules

    Thanks, I have tried modifying ot_shipping.php, but when testing things out with the new values, the free shipping option didn't show up at checkout when it should have.

    So that led me to think that I need to modify some additional files, and I'm thinking that /includes/modules/pages/checkout_shipping/header_php.php is the culprit(?), though I need to stare at the code more.

    (BTW, I'm using ZC 1.2.5)

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problem: Editing options not available for Order Total Modules

    Another way to manage Free Shipping on orders over a certain amound for 1 country is explained in this thread:
    http://www.zen-cart.com/forum/showth...ipping+true%3B
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Sort Order for order total modules.
    By swamyg1 in forum General Questions
    Replies: 10
    Last Post: 1 Sep 2016, 06:08 AM
  2. v151 Order total modules don't appear in Modules/Order Total
    By godt in forum General Questions
    Replies: 8
    Last Post: 29 Nov 2013, 02:50 AM
  3. v139h Shipping, order total and payment modules not activated
    By devyani in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 1 Mar 2013, 11:14 AM
  4. Admin->Modules ->Order Total Problem after upgrade.
    By PatF in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 22 Apr 2011, 11:10 AM
  5. Modules > Orders Total - Options not showing
    By BeautyHealth.com.cy in forum General Questions
    Replies: 2
    Last Post: 28 Jul 2010, 02:08 PM

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