Thread: basics

Page 5 of 5 FirstFirst ... 345
Results 41 to 48 of 48
  1. #41
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: basics

    use the page2 files for examples

    you will see ALL that you need to see,
    then you can use ezpages to call these internal pages and drop the links in the header, the footer, or a sidebox


    so rather than Jumping on these folks,
    take a minute to hear what they have to say,

    you might want to Unblock those that you were rude to,

    say a few oopses and forgive me's

    take the @$$ kickin that you will recieve from a few of them then let them and others help you to your end,

    Please not I looked at your site and there is nothing there that cant be done in ZC in a matter of Hrs,

    and you may want to talk to the designers,
    its full of errors
    Zen cart PCI compliant Hosting

  2. #42
    Join Date
    Jan 2005
    Location
    Lake Havasu, AZ
    Posts
    1,149
    Plugin Contributions
    0

    Default Re: basics

    Jagguy - download the "About Us" page that I linked to and you will see how it all goes together :)
    When the world gets in my face I say Have A Nice Day.
    * I DO Think and I HAVE BEEN Zenned - therefore, I AM * I donate - do you?
    Custom Templates and Zen Services CRS Designs, Inc.

  3. #43
    Join Date
    Feb 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: basics

    Hi,

    I am not getting what to do here I am sorry. ZC is confusing for me as I don't have much experience on it.

    page2 is that page_2.php in english/language dir? and is this linked to the tpl file of the same name tpl_page_2_default.php. I construct pages like this and add php content on a ezpage , then link to it is that what you are talking about?


    Maybe a hello world example is all I need but it looks like I need it. Does the ezpage just contain the php information or is it used some other way.
    If I just want to say hello world from a php script what files do I need exactly to make it work?



    Where is the aboutUs page located as I couldn't really find it anywhere , not really lucky with this thing yet.

    ps ok I can get it in page_2 but how do I link that in the system and can i get DB info?

    thanks
    Last edited by jagguy; 22 Feb 2007 at 08:08 AM.

  4. #44
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: basics

    Quote Originally Posted by TinaS View Post
    All you need to do - very SIMPLE - click DOWNLOAD above - and then oh heck - here this is the URL to where I was sending you :
    http://www.zen-cart.com/index.php?ma...roducts_id=182


    This is the "basic structure" of creating a new page in zen. I have used it over and over and I have embedded TONS of other PHP scripts into my zens
    Quote Originally Posted by TinaS View Post
    Jagguy - download the "About Us" page that I linked to and you will see how it all goes together :)
    I think the link above is what TinaS was referring to.

    While the about-us contribution doesn't pull data from the database, it does demonstrate the infrastructure used for a new "page" in Zen Cart (ie: one that can be accessed via ...index.php?main_page=blahblah

    You can build all the DB-query code you want inside the module file (in this case includes/modules/pages/about_us/header_php.php -- stuff the output into relevant variables, and then use the tpl_about_us_default.php template file to loop thru its content with appropriate echo statements as needed (or no loop if not an array, etc).

    Generally, a "module" prepares data which can be used "for" display. This can be extracting from database, parsing POST/GET data, accessing external resources, etc.
    The "language" files are used to define language-specific text "for" output.
    The "template" files are used to render actual output. Sometimes this is done via include() and sometimes by echo ... sometimes both.
    .

    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. #45
    Join Date
    Feb 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: basics

    Quote Originally Posted by DrByte View Post
    I think the link above is what TinaS was referring to.

    While the about-us contribution doesn't pull data from the database, it does demonstrate the infrastructure used for a new "page" in Zen Cart (ie: one that can be accessed via ...index.php?main_page=blahblah

    You can build all the DB-query code you want inside the module file (in this case includes/modules/pages/about_us/header_php.php -- stuff the output into relevant variables, and then use the tpl_about_us_default.php template file to loop thru its content with appropriate echo statements as needed (or no loop if not an array, etc).

    Generally, a "module" prepares data which can be used "for" display. This can be extracting from database, parsing POST/GET data, accessing external resources, etc.
    The "language" files are used to define language-specific text "for" output.
    The "template" files are used to render actual output. Sometimes this is done via include() and sometimes by echo ... sometimes both.
    Hi,

    I will check what you said and I did this also . I will try a php file as well but do i need to use ZC variables or is it all my own code?

    I put the files in this location and
    /includes/languages/english/custom/about_us.php
    /includes/languages/english/extra_definitions/custom/about_us.php
    /includes/languages/english/html_includes/custom/define_about_us.php

    I see the link to the page and see the file in define pages aboutUs but the link fails page not found.
    Last edited by jagguy; 22 Feb 2007 at 09:51 AM.

  6. #46
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: basics

    Quote Originally Posted by jagguy View Post
    I put the files in this location and
    /includes/languages/english/custom/about_us.php
    /includes/languages/english/extra_definitions/custom/about_us.php
    /includes/languages/english/html_includes/custom/define_about_us.php

    I see the link to the page and see the file in define pages aboutUs but the link fails page not found.
    there are a few more files:
    /includes/modules/pages/about_us/header_php.php
    /includes/templates/YOURTEMPLATE/templates/tpl_about_us_default.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.

  7. #47
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,550
    Plugin Contributions
    9

    Default Re: basics

    What I want to do is add php content and html/css for my own pages.
    Answering one of your first questions... Try downloading the Dynamic Sideboxes module (Downloads Section in sideboxes).

    This contribution is to display any of the sideboxes of ZC into a static HTML page you have WITHIN the ZC store (in same domain). The instructions are very easy to follow.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  8. #48
    Join Date
    Feb 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: basics

    hi,
    ok let me have a look at all this info i have got.

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. v154 Right Back to Basics
    By adb34 in forum Basic Configuration
    Replies: 3
    Last Post: 3 Apr 2015, 04:34 PM
  2. Back to Basics w/a Glitch
    By sammirah in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 10 Apr 2012, 08:12 PM
  3. layout basics
    By mex in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 23 Feb 2007, 05:09 AM
  4. Credit Card Basics
    By LeJerque in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Dec 2006, 04:35 AM

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