Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    1
    Plugin Contributions
    0

    Default Where do I find proper files where constants are defined?

    Such as ACCOUNT_DOB?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Where do I find proper files where constants are defined?

    Some are defined in the database. A fast way to find them is to use the first input field on the Developers Toolkit page: Admin->Tools->Developers Toolkit.

    Or, you could look up constants or other text via other fields using the same tool. The various input boxes are used to search various selective areas. The last one searches the whole site's files.

    https://www.zen-cart.com/tutorials/index.php?article=39
    https://www.zen-cart.com/tutorials/index.php?article=38
    .

    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
    Jul 2007
    Posts
    74
    Plugin Contributions
    0

    Default Documentation sadly lacking

    I have several times had the same question.

    So why is it that the Wiki doesn't contain this essential information? I have been trying to locate an Admin setting for SHOW_FOOTER_IP without much luck. It's defined in 'tpl_footer.php' but I can't find it using the Dev Toolkit search, no definition in the Wiki and nowhere in the ZenSupport area. The forums hit it, but mostly just as quotes.

    What we all need is something that defines all these constants and locates them in the standard ZenCart files:

    E.g.
    SHOW_FOOTER_IP - Set in Admin/Customer, this option lets you choose whether to display a customer's IP address on every page as they browse the site.

    Default files where it occurs:
    admin/customer.php
    includes/templates/template_default/common/tpl_footer.php


    The ZenCart documentation really needs a major overhaul. This should be considered a complete project for a future release.
    --Tim

  4. #4
    Join Date
    Jul 2007
    Posts
    74
    Plugin Contributions
    0

    Default BTW re SHOW_FOOTER_IP

    I did finally find the setting for this using Dev Kit search (in search CONSTANT definitions using ALL language files).

    It is in Admin/Layout Settings.

    (The Admin panels could use a serious overhaul/reorganization as well.)

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Documentation sadly lacking

    Quote Originally Posted by senortim View Post
    I have several times had the same question.

    So why is it that the Wiki doesn't contain this essential information? I have been trying to locate an Admin setting for SHOW_FOOTER_IP without much luck. It's defined in 'tpl_footer.php' but I can't find it using the Dev Toolkit search, no definition in the Wiki and nowhere in the ZenSupport area. The forums hit it, but mostly just as quotes.

    What we all need is something that defines all these constants and locates them in the standard ZenCart files:

    E.g.
    SHOW_FOOTER_IP - Set in Admin/Customer, this option lets you choose whether to display a customer's IP address on every page as they browse the site.

    Default files where it occurs:
    admin/customer.php
    includes/templates/template_default/common/tpl_footer.php


    The ZenCart documentation really needs a major overhaul. This should be considered a complete project for a future release.
    --Tim
    In the admin under configuration->layout settings, look for "Footer - Show IP Address status" near the bottom of the list.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  6. #6
    Join Date
    Jul 2007
    Posts
    74
    Plugin Contributions
    0

    Default Re: Where do I find proper files where constants are defined?

    Thanks Mary Ellen.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Documentation sadly lacking

    Quote Originally Posted by senortim View Post
    The ZenCart documentation really needs a major overhaul. This should be considered a complete project for a future release.
    --Tim
    Does this mean you're volunteering?
    .

    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.

  8. #8
    Join Date
    Jul 2007
    Posts
    74
    Plugin Contributions
    0

    Default Re: Where do I find proper files where constants are defined?

    Actually, I'd love to and I've thought of offering, but there are two problems. First, I'm having a baby in the next month or so. Second, I find ZenCart so confusing that I'd really need a knowledgeable guide to help me know where to start.

    For example, what I really wanted at first was a sense of how all the ZenCart files go together. However, I now think that it might be more important to know where various pieces fit visually. Especially for those who want to customize ZenCart's appearance (as I do.)

    And it would be useful to have some of the documentation echoed in the source files themselves -- such as showing the user what the text output of a PHP script might be within that snippet of php code (e.g., a module). This might take a lot of the mystery out of it.

    Anyway, if you weren't being entirely flip, let's talk.

    --Tim

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Where do I find proper files where constants are defined?

    Quote Originally Posted by senortim
    For example, what I really wanted at first was a sense of how all the ZenCart files go together.
    You might find these handy:
    http://www.zen-cart.com/index.php?ma...roducts_id=378
    http://www.zen-cart.com/index.php?ma...roducts_id=298

    ... as well as the various tutorials in the FAQ area:
    https://www.zen-cart.com/tutorials/index.php
    .

    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.

  10. #10
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Documentation sadly lacking

    Although I think documentation is a great thing (as long as I don't have to write it), I think the suggestion below is overkill.

    Quote Originally Posted by senortim View Post
    What we all need is something that defines all these constants and locates them in the standard ZenCart files:

    E.g.
    SHOW_FOOTER_IP - Set in Admin/Customer, this option lets you choose whether to display a customer's IP address on every page as they browse the site.

    Default files where it occurs:
    admin/customer.php
    includes/templates/template_default/common/tpl_footer.php
    Most newbies won't have a clue what that means. It might useful for someone trying to write a mod for Zen Cart, but the average non-technical user probably won't care and will only add to his/her confusion and feeling of being overwhelmed.

    It seems to me that some users think they need to know every last detail on how Zen Cart works before they can get anything done. That's like saying you need to understand an internal combustion engine and how it ties into all the systems in a car before you can learn to drive.

    The template system isn't always obvious, but it isn't difficult either.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Where are the email variables defined
    By rhodesengr in forum General Questions
    Replies: 1
    Last Post: 7 Feb 2008, 09:27 PM
  2. Where are buttons defined
    By miweb in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 31 Jul 2007, 01:58 PM
  3. Where are things defined?
    By brownsgreens in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Oct 2006, 10:51 PM
  4. Uncertain where zones are defined.....
    By distanceDemon in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 14 Sep 2006, 09:31 PM
  5. Where are MEDIUM_IMAGE_WIDTH, etc are defined?
    By harmeet in forum General Questions
    Replies: 5
    Last Post: 12 May 2006, 03:52 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