I will remember this and include his instructions in the read me of the next ver.
btw I am happy too have the 100th post in a thread I started.
JOsh
Printable View
Yep his instructions wwere like a LIGHT bulb going off!:thumbsup: You should Definitely include in the next release.. Which brings up the OBVIOUS question, is there an upcoming release??? Care to share what's new/different??
BTW.. do I get a prize for being the 100th poster??:laugh:
well I have been thinking for a while, why do I need to have a hard file for the template.php file. why can't just have a data base entry for it. it would sort out the confusion about the setting of the embed config file.
I could even do it so a WYSIWYG editor would be pulled up and one could edit the over all lay out like that.
Also I now have screen capturing software on my workstation so I could release a how to video. the problem there is I develop on a Linux machine so people running other machines would most likely not be able to do exactly what I am doing.
just ideas. I am open to feature requests.
JOsh
I wanted to share this.. I was making sure that my site validated properly. I discovered that the HTML file you create for this template should NOT include the closing BODY and HTML tags.. When I included them, the markup validation tool kicked out errors indicating that I had duplicate closing tags for BODY and HTML.
So my base HTML file was adusted to look like this:
I placed my custom headers above the "<div id="content">" tag and my custom footer below the closing "</div>" tag. After that, my site validated like a champ.. Wanted to share this with anyone using this template.Code:<html>
<head>
</head>
<body>
<div id="content">
<!-- START EMBED -->
<!-- END EMBED -->
</div>
:oops:Sorry wrong thread. Will delete.
I must be more stunned than usual, even for a designer. I'm running a localhost with MAMP to test my stuff. I have zen installed and running and access it at http://localhost/zen/ and all is good there.
As far I can see I have the setup as described, the Sanguine Embbeded Cart is selected in Admin and my Store.html template file has the magic three lines but when I access my store at localhost/zen/ I get :
' . $sitetemplate_bottom); ?>
Home Log In
That second line is part of the navigation crumbs. My wild assumption is that the path I give to embed_config.php for my Store.html template file is wrong. Am I correct that's the error, or should I be pulling a different patch of hair out?
thanks,
-k
Previous to my earlier post: yes, I was pulling out the wrong hair. The path I had given was correct.
Actually, I had hit a snag when some fussy parser gizmo somewhere in the innards of the system didn't like the doctype declaration it found in my template store.html (that's used on the rest of the site pages) which caused it to burp out gibberish. When I removed such finery and my template doc started simply
<html>
<body>
why then suddenly I was a brilliant engineer and worth every penny again.
Thanks to Josh and all. This should be built-in to zen cart.
Well, I'm fired again.
It is finding my template, but I'm getting weird results and some images show up, some do not (though all are in the same directory and show up in the template file when it's viewed directly).
I'm seeing this when I view the source in my browser:
' . $sitetemplate_bottom);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title>Zen Cart!, The Art of E-commerce</title>
Sigh. So near and yet...
How about having a look at this:
https://svn.rubikintegration.com/zen.../ytemplate.php
you can do something like this:
say you have the page contact us, you can have:
..........page header
file content is automatically rendered depending on the $_GET["action"] or can be set.
..........page footer