Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default File Structure as related to Plug In files?

    I still cannot get my head around where to put my custom files. I need to have an "expected stock" listing and it seems to me that the best solution is to literally create a new standalone Database table for products on order. I can then modify my template so that I say "## on Order for <DATE> Delivery"

    I have the admin menu modified for the new code and a skeleton file based off the products_expected.php for this.

    Catalog->Products on Order works at this point in time. The database and php coding from here is a breeze. What I do not get is all the language defines and such. I would really like to make this a formal contribution in the future.

    As I understand it.....

    Module ->Code to collect Data (skeleton done...need to flesh it out)
    Template ->how to display Data (will have to edit my Template files for this change)
    Language Defines->to define the text

    Up to this point, I have simply been editing english.php for my Text Defines. This is really not the correct way to do it I am sure. Do we put this new language file in the template directory and use an included statement in my php code or is there an autoload directory?

    I now this may sound like a dumb question but its not a template override so I am a bit lost.

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Zen Cart Structure as related to Plug In files

    For custom language files, you can use include/languages/YOUR_LANGUAGE/extra_definitions/YOUR_CUSTOM_FILE.php

    Extra_definitions will autoload

  3. #3
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default Re: Zen Cart Structure as related to Plug In files

    I thought so...but the darn thing did not work...I will have to look into this more.

  4. #4
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default Re: Zen Cart Structure as related to Plug In files

    Quote Originally Posted by g2ktcf View Post
    I thought so...but the darn thing did not work...I will have to look into this more.
    Well, its still not working. In fact, I introduced a php error into the file in \extra_definitions on purpose to see if I could get it to log the error. But got nada. Any clues? Do \extra_definitions files show errors in the logs?

  5. #5
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Zen Cart Structure as related to Plug In files

    They will.

    what are you exactly trying to put in to the language file?

  6. #6
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default Re: Zen Cart Structure as related to Plug In files

    Quote Originally Posted by Design75 View Post
    They will.

    what are you exactly trying to put in to the language file?
    I just advised someone to be careful where they are adding a file.....and I was in the wrong directory!!! Sometimes I feel like a putz! works now that I used the ADMIN side! lol

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Zen Cart Structure as related to Plug In files

    Quote Originally Posted by g2ktcf View Post
    I just advised someone to be careful where they are adding a file.....and I was in the wrong directory!!! Sometimes I feel like a putz! works now that I used the ADMIN side! lol
    Now that never happens to me (NOT) Happy you got it working!!

 

 

Similar Threads

  1. Image file structure
    By freshstart in forum General Questions
    Replies: 4
    Last Post: 8 Jun 2008, 06:38 PM
  2. Changing file structure
    By A-1 Electronics in forum Basic Configuration
    Replies: 6
    Last Post: 1 May 2007, 05:20 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