Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2010
    Posts
    3
    Plugin Contributions
    0

    Default rearrange center of main page

    I've just successfully installed a test version of the 1.3.9f and I'm wanting to rearrange the center of the main page. Can someone tell me how to make the "define_main_page.php" print below the sub-categories?

    <!-- BOF: Display grid of available sub-categories, if any -->

    <div class="categoryListBoxContents" style="width:33%;">
    ....


    Thank You!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: rearrange center of main page

    You will have to re-order a copy of tpl_main_page.php for your template
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: rearrange center of main page

    Sorry, I forgot to mention I'm using the new "pure_green" template. I did not understand what you meant by re-order? You mean purchase another template, or re-order code?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: rearrange center of main page

    Re-order the code
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: rearrange center of main page

    Thank you for the reply. I have several years experience in C#, VB, C++ languages but PHP I've not used that much. I was posting this question to get help with the following questions.

    1) can someone tell me what module(s) to change the code and what folder it is under?
    2) can someone tell me about what line # in the module(s) I should look at to make the code change.

    If I can get these answers I can probably figure out the rest.

    Thank you for any support you can provide.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: rearrange center of main page

    PHP 101:
    PHP code is wrapped inside <?php and ?> tags.

    HTML 102:
    Commented HTML code is wrapped inside <!-- and --> tags.

    As a programmer, you'll know that "bof" and "eof" denote beginning and end of a section. Same with the comments in many of the templates.
    Thus, <!-- bof: something here --> marks the beginning of a section and <!-- eof: something here --> marks the end of said section.


    So ... in the prescribed template file, find the section you wish to relocate and move that up or down above or below any other section.


    Also, template files and language files should never be edited directly. A copy should be made and placed in a corresponding override folder. The override system is explained in the Tutorials/FAQs area at: https://tutorials.zen-cart.com link is also at the top of this page.
    .

    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.

 

 

Similar Threads

  1. Center box of Main page
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 25 Feb 2010, 05:23 PM
  2. Center Image on Main Page
    By amacole in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 18 Oct 2007, 03:27 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR