Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    help question Override folder not working

    Hello,

    My template name is "lock".

    I am trying to override the file here: includes/languages/modules/payment/paypalwpp.php

    I noticed that there was a classic folder here, so I created a "lock" folder as well and copied the file to it.

    I now have this: includes/languages/modules/payment/lock/paypalwpp.php

    I am trying to override the file here: includes/languages/modules/payment/lock/paypalwpp.php

    But the changes do not reflect on the site when the file in the "lock" folder is changed. But will if the original is changed.

    Thanks

    DD

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Override folder not working

    Presuming you already copied all these files:
    /includes/templates/classic/

    to here:
    /includes/templates/lock/



    Open this file on your computer:
    /includes/templates/classic/template_info.php

    Edit to reflect your custom Template
    i.e. $template_name = 'lock';

    Upload to:
    /includes/templates/lock/template_info.php


    This will allow Zen Cart to know what the other Template is called and refer to it by name. Thus any files/folders you customize for your 'lock' Template should show as well.

  3. #3
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Re: Override folder not working

    I have the template_info.php file setup in includes/templates/lock to specify the template name.

    In addition, I have "lock" folders working already in different areas.

    For example:

    includes/languages/english/lock
    includes/languages/english/html_includes/lock

    but it is not working here:

    includes/languages/modules/payment/lock

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Override folder not working

    Perhaps your path is wrong?

    includes/modules/payment/

    You'll note that you cannot setup an override within that dir.
    You can alter the 'paypalwpp.php' file but will have to make note to self, that you changed it. Prevents confusion in the future.

  5. #5
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Re: Override folder not working

    Sorry, there should be "ENGLISH" in there for the last few posts.

    The following works :

    includes/languages/english/lock
    includes/languages/english/html_includes/lock

    but does not work here:

    includes/languages/english/modules/payment/lock

    **note: there is a classic folder here: includes/languages/english/modules/payment/classic

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Override folder not working

    Have you confirmed that permissions are correct for your new folder/file?
    Are you uploading the changed file or editting online; through a Hosting Control Panel for example?

  7. #7
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Re: Override folder not working

    File permissions are set to 755 just like the "lock" folder in html_includes, which is working. I use dreamweaver to upload the files and folders.

    This is how I did the other ones too. That work fine

  8. #8
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Override folder not working

    755 is for folder permissions.
    644 is for file permissions.

  9. #9
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Re: Override folder not working

    Yes, that is the way it is setup.

    What should I check ?

  10. #10
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Override folder not working

    At this point I can only suggest you continue with your Trial & Error methods, to determine exactly where/what the problem is.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Override not working
    By carter in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Apr 2009, 09:01 PM
  2. Override not working? 1.3.7
    By wmarcy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Feb 2007, 12:02 PM
  3. Override not working
    By underworldmagic in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Dec 2006, 03:13 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