New Zenner
- Join Date:
- Dec 2012
- Posts:
- 9
- Plugin Contributions:
- 0
I have a quick question about the EZ-pages.
Are they any way I can include a html table into and EZ page? If so, would the code to that be?
:lookaroun
Views: 1,024
New Zenner
Are they any way I can include a html table into and EZ page? If so, would the code to that be?
:lookaroun
Black Belt
You can include any HTML you like in ez-page content. Table code is such basic HTML that there are probably tens of thousands of places online where you can learn about how to create them. Try https://www.w3schools.com for a comprehensive starter.
Totally Zenned
Here is a very simple TABLE in html
As Glenn says, use any html editor to compile your table... toggle to SOURCE CODE, copy the HTML, then PASTE it in your input field in CK Editor (after toggling to SOURCE)
<table class="productSizes">
<tbody>
<tr id="productSizesRowOne">
<td>
Content Here</td>
<td>
Content Here</td>
<td>
Content Here</td>
</tr>
<tr id="productSizesRowTwo">
<td>
Content Here</td>
<td>
Content Here</td>
<td>
Content Here</td>
</tr>
<tr id="productSizesRowThree">
<td>
Content Here</td>
<td>
Content Here</td>
<td>
Content Here</td>
</tr>
<tr id="productSizesRowFour">
<td>
Content Here</td>
<td>
Content Here</td>
<td>
Content Here</td>
</tr>
</tbody>
</table>
My example has a few CLASS and ID tags to assist with styling later. You can omit these, or add your own. If you omit them, any table styling will be as per default declarations for table elements.
New Zenner
I only ask because sometimes the codes are different in zen cart. I was just making sure.
When in doubt, ask the experts.
Thank you both. :D
Totally Zenned
coffeebean2009:
... sometimes the codes are different in zen cart.
HTML is HTML... it's "common" to every website.
New Zenner
Okay, I thought it was kinda different. Oh well. Thanks again.
I just finished the page I was wanting. Yay.
I do have another question though. How would I go about merging php files together. Are they a program that will do it for me?
Totally Zenned
coffeebean2009:
Okay, I thought it was kinda different. Oh well. Thanks again.
I just finished the page I was wanting. Yay.
I do have another question though. How would I go about merging php files together. Are they a program that will do it for me?
What would you want to do this for?
PHP is a language that gives INSTRUCTIONS for things to happen when CONTENT needs to be displayed on a browser screen. They are not "pages" in the same way as static HTML "pages" are.
PHP is a code that BUILDS the page "on-the-fly". The code assembles all the components for the resultant HTML output - and there can be HUNDREDS of these for every output.
When the php has built the HTML output, it fires it off to the visitor's browser screen, and it shows up on the screen.
When the visitor clicks a link - or perform an action (such as "add to cart") the "Page" they are on vanishes forever, and the PHP assembles a completely NEW html output, just for them.
Along the way, it may perform a few calculations and store stuff in the database...
So... tell us what BEHAVIOUR you are trying to achieve, and perhaps we can advise on how the PHP should look.
New Zenner
Okay, I understand. I was just trying to figure out how to merge a main page from a template package with an existing main page.
Totally Zenned
If you are trying to bring in additional CONTENT, then you might be able to do so by activating various "switches" in ADMIN CONSOLE.
"Merging" php requires considerable skill in most cases.
Again... what are you trying to "bring in"? Tell us what CONTENT you would like to display, and WHERE and WHEN it is to be displayed.
New Zenner
I have installed a Picaflor Azul template. But I was wanting to have her homepage template as well and in the read me file it says to use a favorite file merging software to merge it with tlp_main_page.php. However I only wanted the header from the main template but have the footer from the homepage template, but I also want a different footer background. Hope you can understand that. I was just trying to ask all my zen cart questions in one whack.
Black Belt
However I only wanted the header from the main template but have the footer from the homepage template
I suspect that you need to look at the template files /common/tpl_header.php & tpl_footer.php
I also want a different footer background
These are controlled through the stylesheet.css file
Tell staff why this post should be reviewed.