Forums / Templates, Stylesheets, Page Layout / Is there a list of Constants and Classes and their use?

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

Locked

Started by grimorg80 on 18 Aug 2009, 1:57 PM · Views: 856

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
18 Aug 2009, 1:57 PM
#1
grimorg80 avatar

grimorg80

New Zenner

Join Date:
Aug 2009
Location:
Rimini, Italy
Posts:
2
Plugin Contributions:
0

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?

18 Aug 2009, 4:02 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

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.

18 Aug 2009, 4:55 PM
#3
grimorg80 avatar

grimorg80

New Zenner

Join Date:
Aug 2009
Location:
Rimini, Italy
Posts:
2
Plugin Contributions:
0

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)

http://www.alewebsite.net/vari/screenshot1.jpg

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... :)

18 Aug 2009, 5:53 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

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.