Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Mar 2010
    Posts
    6
    Plugin Contributions
    0

    Default How the Zen Cart MVC works?

    Hi, I am new to Zen Cart and need to fix some issues. Please can anyone guide me as how can I understand / debug the Zen Cart, how can I identify the page / function that is being executed?

    In my site all links are executed through index.php so I fail to understand which page/function contains the actual functionality. e.g. My site calls the following:

    http://xyz.com/index.php?main_page=p...&frm=something

    where should I look for if I want to modify the functionality in the page I get?

    Thanks, appreciate your help.

    Regards.

  2. #2
    Join Date
    Mar 2010
    Posts
    6
    Plugin Contributions
    0

    Default How the Zen Cart MVC works?

    Hi, I am new to Zen Cart and need to fix some issues. Please can anyone guide me as how can I understand / debug the Zen Cart, how can I identify the page / function that is being executed?

    In my site all links are executed through index.php so I fail to understand which page/function contains the actual functionality. e.g. My site calls the following:

    http://xyz.com/index.php?main_page=p...&frm=something

    where should I look for if I want to modify the functionality in the page I get?

    Thanks, appreciate your help.

    Regards.

  3. #3
    Join Date
    Mar 2010
    Posts
    6
    Plugin Contributions
    0

    Default How the Zen Cart MVC works?

    Hi, I am new to Zen Cart and need to fix some issues. Please can anyone guide me as how can I understand / debug the Zen Cart, how can I identify the page / function that is being executed?

    In my site all links are executed through index.php so I fail to understand which page/function contains the actual functionality. e.g. My site calls the following:

    http://xyz.com/index.php?main_page=p...&frm=something

    where should I look for if I want to modify the functionality in the page I get?

    Thanks, appreciate your help.

    Regards.

  4. #4
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: How the Zen Cart MVC works?

    Is there supposed to be a Zen-Cart at that URL? You can find out about debugging Zen-Cart HERE, but you first have to have ZC installed before you can debug it, and if that's the correct URL in your post, then you have no ZC installed.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  5. #5
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: How the Zen Cart MVC works?

    Oh, yea..........a little hint about this forum............posting the same question 3 times will do nothing but make the Mods mad, and most of the time get you ignored by others.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How the Zen Cart MVC works?

    As dynamic PHP software, Zencart builds almost all its pages 'on the fly', pulling in information from several sources, including define files, modules, template files, and the database. The names of the various files can give you a clue as to what those files apply to.

    If you have a question about a particular function, we might be able to provide an example.

  7. #7
    Join Date
    Mar 2010
    Posts
    6
    Plugin Contributions
    0

    Default How the Zen Cart MVC works?

    Hi, I am new to Zen Cart and need to fix some issues. Please can anyone guide me as how can I understand / debug the Zen Cart, how can I identify the page / function that is being executed?

    In my site all links are executed through index.php so I fail to understand which page/function contains the actual functionality. e.g. My site calls the following:

    http://xyz.com/index.php?main_page=p...&frm=something

    where should I look for if I want to modify the functionality in the page I get?

    Thanks, appreciate your help.

    Regards.

  8. #8
    Join Date
    Mar 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: How the Zen Cart MVC works?

    Thanks friends for taking out time and replying.

    Sorry for multiple post, that was not intentionally. Actually to check for replies I accidentally refreshed the 'post new thread' page.

    The index.php has following comments so I think it is part of zen cart:

    * index.php represents the hub of the Zen Cart MVC system
    *
    * Overview of flow
    * <ul>
    * <li>Load application_top.php - see {@tutorial initsystem}</li>
    * <li>Set main language directory based on $_SESSION['language']</li>
    * <li>Load all *header_php.php files from includes/modules/pages/PAGE_NAME/</li>
    * <li>Load html_header.php (this is a common template file)</li>
    * <li>Load main_template_vars.php (this is a common template file)</li>
    * <li>Load on_load scripts (page based and site wide)</li>
    * <li>Load tpl_main_page.php (this is a common template file)</li>
    * <li>Load application_bottom.php</li>
    * </ul>
    *
    * @package general
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: index.php 2942 2006-02-02 04:41:23Z drbyte $


    Regards.

  9. #9
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: How the Zen Cart MVC works?

    Yes, that is "index.php" of ZC, but did you actually INSTALL ZC after you uploaded the files to your server?

    You should get the install page first thing after uploading. So you would go to:

    http://your_domain_name.com

    or:

    http://your_domain_name.com/install/install.php

    If you're seeing (able to read it in your browser as text) the rest of that file you posted, then it would appear that you have Indexing turned on, and I would suggest (again) that you go into your cPanel and set "Indexing" to OFF for your public_html directory. Once done, you should see the Install page, instead of it being "indexed".

    READ THIS!
    Last edited by Get Em Fast; 26 Mar 2010 at 12:04 PM.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  10. #10
    Join Date
    Mar 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: How the Zen Cart MVC works?

    It is a working site amd the ZC has been installed by the site owner.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Where can I found out how the Zen Cart UPS shipping module works
    By apathy in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 16 May 2008, 07:20 PM
  2. Replies: 3
    Last Post: 25 Nov 2007, 07:48 PM
  3. What software is best for figuring out how zen cart works.
    By birdoasis in forum General Questions
    Replies: 4
    Last Post: 12 Apr 2007, 07:58 PM
  4. I have some questions about how Zen Cart works
    By immersive in forum General Questions
    Replies: 8
    Last Post: 30 Oct 2006, 07:17 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