Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Mar 2006
    Location
    Durham, UK
    Posts
    84
    Plugin Contributions
    0

    Default Template overrides in languages/english/modules/shipping ?

    There's a classic folder in there so I tried creating a /my_template/ override, but it doesn't seem to work. Is it supposed to?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: Template overrides in languages/englishmodules/shipping ?

    This pattern should work:

    /includes/languages/english/modules/shipping/silvercity/rates.php

    where silvercity is your active/selected template name
    and rates.php is the name of the shipping module file you're trying to override
    Last edited by Ajeh; 17 Aug 2006 at 09:35 PM. Reason: fix path to include specific language directory
    .

    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
    Mar 2006
    Location
    Durham, UK
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template overrides in languages/englishmodules/shipping ?

    Quote Originally Posted by DrByte
    This pattern should work:

    /includes/languages/modules/shipping/silvercity/rates.php

    where silvercity is your active/selected template name
    and rates.php is the name of the shipping module file you're trying to override
    Thanks Doc. Tried that and it still isn't working.

    Similar pathnames can get a bit confusing so I'm wondering if I'm doing something really stupid here? Just to be sure I started again with a copy of flat.php, put copies in the following folders and put the path in one of the defines so I could see in admin which file was being used.

    None of the following worked for me:
    /includes/languages/modules/shipping/silvercity/flat.php
    /includes/languages/english/modules/shipping/silvercity/flat.php

    I even tried:
    /includes/languages/english/silvercity/modules/shipping/flat.php

    But the only one I can get to show is the base file in:
    /includes/languages/english/modules/shipping/flat.php

  4. #4
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: Template overrides in languages/englishmodules/shipping ?

    is your site set to the "silvercity" template ?

    Works fine for me on a fresh install... as long as the proper template is selected
    .

    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
    Mar 2006
    Location
    Durham, UK
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template overrides in languages/englishmodules/shipping ?

    Quote Originally Posted by DrByte
    is your site set to the "silvercity" template ?
    Certainly is. I've been working on the stylesheet so I know that area of the templating system is working OK. I've even tried copying and pasting the directory name again just in case there was any confusion with the exact name, but it's still not happening for me.
    Quote Originally Posted by DrByte
    Works fine for me on a fresh install... as long as the proper template is selected
    Apart from the template, mine's fresh too. Oh well. Nothing to do but forget about it and hope something pops up later. Thanks for the help anyway.

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

    Default Re: Template overrides in languages/englishmodules/shipping ?

    Have you an URL to your site? I cannot reproduce this issue and maybe seeing your site will spark a bell ...
    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!

  7. #7
    Join Date
    Mar 2006
    Location
    Durham, UK
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template overrides in languages/englishmodules/shipping ?

    Quote Originally Posted by Ajeh
    Have you an URL to your site? I cannot reproduce this issue and maybe seeing your site will spark a bell ...
    Thanks for the offer Linda but I'm running on localhost at the moment 'till we've got some of the other more crucial issues resolved. This one's curious (aren't they all ) but I can easily work round it by editing the core file. Just wanted to keep to the rigours of the template system is all.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,762
    Plugin Contributions
    9

    Default Re: Template overrides in languages/englishmodules/shipping ?

    Basic(stupid) question...

    Do you have a folder at /includes/templates/silvercity/ ??

    And the edited template_info.php file in that folder?
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Mar 2006
    Location
    Durham, UK
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template overrides in languages/englishmodules/shipping ?

    Quote Originally Posted by kobra
    Basic(stupid) question...
    Not at all. It's a stupid problem, so anything that jogs the grey-cells out of whatever tramline they're currently on is much appreciated

    Quote Originally Posted by kobra
    Do you have a folder at /includes/templates/silvercity/ ??
    Certainly do. That's where I've been editing the stylesheet.
    Quote Originally Posted by kobra
    And the edited template_info.php file in that folder?
    Could I resist the opportunity to put my name on the template?

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

    Default Re: Template overrides in languages/englishmodules/shipping ?

    Check that if you view source and see your stylesheets coming from:

    includes/templates/silvercity

    That you are spelling silvercity exactly that way in the
    /includes/languages/english/modules/shipping/silvercity

    Meaning if you see
    includes/templates/SilverCity

    You should be using:
    /includes/languages/english/modules/shipping/SilverCity
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 31 May 2017, 08:57 PM
  2. Replies: 7
    Last Post: 27 May 2015, 09:32 PM
  3. Warning: main(/web/zen-cart/includes/languages/english/modules/payment/header_php.php
    By Coffee1 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 16 Jul 2009, 07:37 AM
  4. Replies: 3
    Last Post: 21 Jan 2009, 04:13 PM
  5. v 1.3.5 - 'languages/english/modules/' overrides
    By Pixxi in forum Bug Reports
    Replies: 1
    Last Post: 9 Oct 2006, 09:02 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