Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Overrides directory question about free shipping text.

    NOTE: On the Payment, Shipping and Order Total Modules, only the language files have overrides ...

    The code files do NOT have overrides ...

    On the file:
    /includes/languages/modules/order_total/ot_shipping.php

    what are you trying to overrides that is not working ... what is the condition that makes the shipping Free?
    Last edited by Ajeh; 8 Jun 2012 at 02:07 PM.
    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: v1.5.5]
    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!

  2. #12
    Join Date
    Jul 2009
    Posts
    122
    Plugin Contributions
    0

    Default Re: Overrides directory question about free shipping text.

    Hello Linda and thank you for taking the time to reply again.

    As I mentioned in my first post in this thread I wanted to change the text from the default wording which says:

    Free shipping for orders over %s

    which is located in this file:

    /includes/languages/modules/order_total/ot_shipping.php

    to

    Your order qualifies for free shipping as the total is over %s

    by placing the ot_shipping.php file inside an over rides directory like so:

    /includes/languages/modules/order_total/MYTEMPLATE/ot_shipping.php

    The condition that makes it free shipping is when the order totals over $200.00.

    I don't know what else to say as I have tried this numerous times to get this to work in an over rides directory but it doesn't. It only works if I change the text in the main file located here.

    /includes/languages/modules/order_total/ot_shipping.php

    Hope this makes sense.

  3. #13
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Overrides directory question about free shipping text.

    /includes/languages/modules/order_total/

    Where is the LANGUAGE?

    /includes/languages/english/modules/order_total/
    20 years a Zencart User

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

    Default Re: Overrides directory question about free shipping text.

    Quote Originally Posted by CybaGirl View Post
    Hello I seem to be facing an issue with the over rides directory and changing the text "Free shipping for orders over %s" which is shown on the shopping carts first page.

    I understand how the over rides directory works and I have used it a number of times in the past without any problems. But for some reason it doesn't seem to work with the text changes I have made to the files that control what is said on this page.

    For example I used the Developers Tool Kit to find "Free shipping for orders over" and the search told me that this text is in the following three files:

    Code:
    /home/mysite/public_html/includes/languages/english/checkout_shipping.php
    
    Line #30 : // when free shipping for orders over $XX.00 is active
    
    Line #32 : define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s');
    Code:
    /home/mysite/public_html/includes/languages/english/modules/order_total/ot_shipping.php
    
    Line #26 : define('FREE_SHIPPING_DESCRIPTION', 'Free shipping for orders over %s');
    Code:
    /home/mysite/public_html/includes/modules/order_total/ot_shipping.php
    
    Line #111 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, date_added) values ('Free Shipping For Orders Over', 'MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER', '50', 'Provide free shipping for orders over the set amount.', '6', '4', 'currencies->format', now())");
    So I changed the first two files on their respective lines to reflect the text that I want the shopping cart to display and in this case I want it to display "Your order qualifies for free shipping as the total is over %s"

    I then saved these files as new files with the same name of course and created over ride directories as follows:

    Code:
    /home/mysite/public_html/includes/languages/english/MY_TEMPLATE/checkout_shipping.php
    Code:
    /home/mysite/public_html/includes/languages/english/modules/order_total/MY_TEMPLATE/ot_shipping.php
    But for some reason the text is not changed .

    However if I replace the ot_shipping.php file located here and without using the over rides directory:

    Code:
    /home/mysite/public_html/includes/languages/english/modules/order_total/ot_shipping.php
    with the edited one I just created the text is changed to what I want it to display. But of course this is not the ideal solution due to upgrade purposes in the future etc and I would prefer it to work with the over rides directory if possible.

    So I guess my question is. Is the over rides directory suppose to work in this case? As the order_total directory contains a classic directory inside of it. So I assumed that by adding the name of my template directory" inside of the order_total directory and then placing the new file inside it I could then use the over rides system as per normal. But it doesn't seem to work.



    So any thoughts or suggestions as to what might be causing this issue would be greatly appreciated.

    Thanks.
    There is something off on some of the Order Total modules for overrides ... so I am moving this to the Bug Reports for further review in future releases ...
    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: v1.5.5]
    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!

  5. #15
    Join Date
    Jul 2009
    Posts
    122
    Plugin Contributions
    0

    Default Re: Overrides directory question about free shipping text.

    Thank you very much Linda I am pleased that you understood what I was trying to achieve as I was starting to go crazy over it as I was sure I was doing everything right. Especially considering I have used the over ride system numerous times in the past to change things in both the ZenCart files and mods for that matter.

    Thank you for your helpful input it has been very much appreciated. I'm still using version 1.39h on two of my stores due to mods being upgraded to work with 1.5 so I am unable to test to see if this issue is present in 1.5 at the moment.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Shipping Module Programming Question about weight and free shipping
    By voltar in forum Built-in Shipping and Payment Modules
    Replies: 59
    Last Post: 18 Nov 2011, 10:29 PM
  2. General question about overrides
    By jeffmic in forum General Questions
    Replies: 2
    Last Post: 23 Sep 2010, 05:08 AM
  3. quick question about overrides vs Image Handler2 addon
    By buckit in forum Basic Configuration
    Replies: 2
    Last Post: 25 Aug 2010, 09:11 PM
  4. Free shipping item overrides other fees.
    By GonzoInRoch in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 31 Mar 2008, 07:39 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