Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Location
    Rimini, Italy
    Posts
    2
    Plugin Contributions
    0

    Default Is there a list of Constants and Classes and their use?

    I designed a modern cart layout. Now I want to usie it for ZenCart.

    Is there a list of costants and classes and their use?

    If I need to put in a line "currencies" and the dropdown menu, fully working, what do I have to fetch?

    I tried requiring the tpl_currencies.php but it simply doesn't work.

    This is the same for everything else: languages, logins, cart summary, and so on...

    Can you point me in the right direction? Please?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Is there a list of Constants and Classes and their use?

    Are you trying to call Zen Cart bits and pieces into a framework/layout you have designed yourself? That won't work, at least not without a whole lot of effort. ZC has a complete template system, and you need to translate your design into that system. A link to see your design will help us advise the best way for you to proceed.

    You may want to look at the Developers section of the wiki (link at top of page) for information on how ZC is structured.

  3. #3
    Join Date
    Aug 2009
    Location
    Rimini, Italy
    Posts
    2
    Plugin Contributions
    0

    Default Re: Is there a list of Constants and Classes and their use?

    OK, this is a sample of the layout I created (For the "box" on top right I captured a sample from an online shop to speed up the work as you can see)

    [scr]http://www.alewebsite.net/vari/screenshot1.jpg[/scr]


    Now... for starters...

    Shoul I modify the tpl_header.php using tables in order to fit the design I created?

    What should I use to create working versions of what I need (currencies, languages, cart summary, log-in, and so on..)?

    If I'll be able to get over this I'm pretty confident I'll be able to do everything I need... :)

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Is there a list of Constants and Classes and their use?

    You could use HTML tables to get the layout, but that is the old-fashioned way. The current best practice for layout is to put each element in a <div> and style the divs in your stylesheet. This makes rearranging and spacing things very fast and easy.

    The elements that are currently in tpl_header.php are already in divs, so you can use them as guides for setting up your new elements. There are mods in Free Addons for currency, language and shopping cart in the header, so you can use those to get your combination. You will have to merge parts of files to get all of the mods. The list of links on the left of your header can be done with the ez-page header bar, though you would have to substitute images for text to get your fancy font. It might be easier to have the whole link box as one image and code in a set of links with only the pixel_trans.gif image as content, and size and position them with display: block; in the stylesheet. There are several positioning methods you could use.

 

 

Similar Threads

  1. Can I print a list of orders and their items?
    By sgt_slaughter in forum Managing Customers and Orders
    Replies: 2
    Last Post: 2 Oct 2009, 06:31 PM
  2. Replies: 3
    Last Post: 11 Sep 2008, 09:17 PM
  3. Replies: 3
    Last Post: 29 Jan 2008, 05:23 PM
  4. Finding Constants and how to fix them
    By mommydesigns in forum General Questions
    Replies: 5
    Last Post: 22 Jun 2007, 08:57 PM
  5. PRODUCT_ALL_LIST_PRICE and other constants
    By David Bo in forum General Questions
    Replies: 2
    Last Post: 8 Feb 2007, 05:08 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