Forums / Addon Templates / Easy embed template

Easy embed template

Locked

Views: 112,629

Results 101 to 120 of 362
This thread is locked. New replies are disabled.
7 Jan 2008, 6:54 PM
#101
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Easy embed template

DivaVocals:

BTW - Urbanx's instructions are my BIBLE for using this contribution..

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

JOsh Beauregard
Sanguis Development

7 Jan 2008, 7:36 PM
#102
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

sanguisdesign:

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.

JOshYep 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:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 Jan 2008, 9:59 PM
#103
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

DivaVocals:

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

JOsh Beauregard
Sanguis Development

7 Jan 2008, 10:09 PM
#104
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

sanguisdesign:

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.

JOshI like the ideas..

So I guess that's a no on the prize for being the 100th poster huh??:laugh:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

13 Jan 2008, 8:20 AM
#105
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

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:

<html>
<head>
</head>
<body>

<div id="content">
 <!-- START EMBED -->
 <!-- END EMBED -->
</div>

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.

urbanx:

actually, all that's needed is a simple step by step.

when i started reading this thread, i thought "wow, this sounds like exactly what i'm looking for." then i looked at the documentation, read through some of the other posts, and thought "WTF?'

however, once i grasped it, i realized how brilliant this mod is, and how simple... mind-numbingly simple it is to implement.

it works like this:

  1. create an html file in your website that you would like to embed zen cart into. let's call it shop.html and let's put it in the root of our website:
  1. somewhere in your html file, you need to put three very specific lines of text. WHERE you put them is up to you, but they must be together and they must be exact. the thing to know is that it goes in the body of the file, and that it goes where you want your zencart to go.
<div id="content"> <!-- START EMBED --> <!-- END EMBED -->
  1. install zen cart. i'm going to assume that you installed zen cart in a directory called zen. go to http://www.foo.com/zen and do all the zen installation stuff.

DO NOT GO ANY FURTHER UNTIL YOU HAVE ZEN WORKING PROPERLY WITH THE DEFAULT TEMPLATE.

  1. once you have zen up and running, it is time to install the new template. the sang_embed template installs like any other template. please see the wiki if you need basic assistance with installing a template in zen cart (or better yet, buy the zen book, you won't regret it). essentially, you copy the template files to your webserver. most will go in zen/includes/templates/sang_embed, but the main thing is to match the folder structure in the download. don't forget to "turn on" the sang_embed template in the admin.

  2. make ONE change in the file named embed_config.php. you can find it at /path_to_your_files/zen/includes/templates/sang_embed/common/embed_config.php

find the line that begins with $zc_temp (it is line 11) and change it so that it refers to the html file you created in step 1. in our example, it would be:

$zc_temp = '/path_to_your_files/shop.html';

THIS IS THE KEY. IT TELLS ZEN CART THAT IT MUST EMBED ITSELF IN THAT FILE.

  1. go test it by going to http://www.foo.com/zen

  2. revel in your brilliance

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

16 Jan 2008, 6:13 PM
#106
huck avatar

huck

New Zenner

Join Date:
Jan 2008
Location:
El Norte
Posts:
1
Plugin Contributions:
0

Re: Easy embed template

:oops:Sorry wrong thread. Will delete.

Carlos Blackburn . . . . . https://www.irontail.com

22 Jan 2008, 5:07 PM
#107
kent avatar

kent

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

Re: Easy embed template

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

22 Jan 2008, 6:15 PM
#108
kent avatar

kent

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

Re: Easy embed template

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.

22 Jan 2008, 7:35 PM
#109
kent avatar

kent

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

Re: Easy embed template

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

22 Jan 2008, 7:45 PM
#110
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Easy embed template

How about having a look at this:
https://svn.rubikintegration.com/zencart_mods/advanced_rma/includes/init_includes/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

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

22 Jan 2008, 11:21 PM
#111
kent avatar

kent

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

Re: Easy embed template

I just did a fresh default install of zencart, adding only the easy embed templates.

When I switch to the embed template I get

' . $sitetemplate_bottom);
?>

output to the very top of the page before the <!DOCTYPE... declaration. This happens if my store.html template is present or not.

So it's a dead end to me. I have no idea how to fix that.

22 Jan 2008, 11:28 PM
#112
kent avatar

kent

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

Re: Easy embed template

yellow1912:

How about having a look at this:
https://svn.rubikintegration.com/zencart_mods/advanced_rma/includes/init_includes/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

The swooshing sound you hear is this suggestion flying over my head ;-)

I don't know what I'm looking at at that link you gave. Is this an alternate method of embedding the store into my html design?

23 Jan 2008, 12:11 AM
#113
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

Kent:

I just did a fresh default install of zencart, adding only the easy embed templates.

When I switch to the embed template I get

' . $sitetemplate_bottom);
?>

output to the very top of the page before the <!DOCTYPE... declaration. This happens if my store.html template is present or not.

So it's a dead end to me. I have no idea how to fix that.My suggestion to you is to read this ENITRE thread.. There is some good information in here.. Including this thread
http://www.zen-cart.com/forum/showpost.php?p=477677&postcount=95 is where I posted having this SAME problem on page 9 of this thread..:smile:

http://www.zen-cart.com/forum/showpost.php?p=477677&postcount=94 is where Josh tells me the reason for the issue, :lookarounand then finally

http://www.zen-cart.com/forum/showpost.php?p=460923&postcount=93 is the thread where you need to go to download the latest version of this template contrib.. It will resolve the problem with the strange code that you are having.. :smartalec: (If you downloaded the template from Josh's website, you have an older version of it..)

Good luck.. I am IN LOVE with this contrib.. It's given me a WHOLE world of new ideas for Zen..:clap:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

23 Jan 2008, 12:53 PM
#114
kent avatar

kent

New Zenner

Join Date:
Jan 2008
Posts:
33
Plugin Contributions:
0

Re: Easy embed template

http://www.zen-cart.com/forum/showpost.php?p=460923&postcount=93 is the thread where you need to go to download the latest version of this template contrib.. It will resolve the problem with the strange code that you are having.. :smartalec: (If you downloaded the template from Josh's website, you have an older version of it..)

Good luck.. I am IN LOVE with this contrib.. It's given me a WHOLE world of new ideas for Zen..:clap:

....mutter...grumble...hundreds of posts...won't work...developer doesn't even have it right on his website...could have done it all by hand by now..mutter..hey...

BINGO!

omg. I thank you. My hair thanks you. I will witness. This is WONDERFUL. I was this close to scrapping Zen Cart altogether. I mean, the override system is nice and impressively complicated and all but I can't be at fiddling with it whenever I change the looknfeel, which will be often as this is an art site and must look, well, arty and fresh and change frequently.

This is the answer. :clap:

23 Jan 2008, 6:42 PM
#115
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

Kent:

....mutter...grumble...hundreds of posts...won't work...developer doesn't even have it right on his website...could have done it all by hand by now..mutter..hey...In Josh's defense he FREELY admits that the version on his site is not the most updated version.. I don't care as long as he sticks around to support this nifty little contrib, and we know where to find the latest version..:smile:

Kent:

omg. I thank you. My hair thanks you. I will witness. This is WONDERFUL. I was this close to scrapping Zen Cart altogether. I mean, the override system is nice and impressively complicated and all but I can't be at fiddling with it whenever I change the looknfeel, which will be often as this is an art site and must look, well, arty and fresh and change frequently.

This is the answer. :clap:You are very welcome.. And don't write off the override system just yet.. Even if you use this embedded template you MAY need to use some overrides to refine the look of the store within your website.. For the site I'm working on now, to coordinate the cart's look with the site's look, I had to use a few overrides.. You don't need to update your overrides every time you change your sites look. Once you have your overrides in place, you should only need to change your stylesheet and graphics to change the store's look..

Seriously, once you get the hang of the override system it's actually a lot simpler than it looks at first blush.. (Trust me.. I know this from FIRST hand experience..) AND you'll appreciate the overrides if/when you upgrade..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

23 Jan 2008, 8:17 PM
#116
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

to kent and DivaVocals,
I thank you and understand the talk your having. however I am getting married in under two weeks. basically I am not able to provide the most fresh code.
My web site is unfortunately going the way of the shoe makers son. It was written before I discovered drupal, and it is written in a proprietary CMS that I made for my self.
Do you two think this is worth me setting up a source forge project page?

that way you could install form the SVN and update easier and stuff. its up to you.

DivaVocals, thank you for providing the support here. I am way to busy at the moment to be any real help.

JOsh

JOsh Beauregard
Sanguis Development

24 Jan 2008, 3:47 AM
#117
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Easy embed template

sanguisdesign:

to kent and DivaVocals,
I thank you and understand the talk your having. however I am getting married in under two weeks. basically I am not able to provide the most fresh code.
My web site is unfortunately going the way of the shoe makers son. It was written before I discovered drupal, and it is written in a proprietary CMS that I made for my self.No apologies necessary.. Just took giving Kent the same nudge you gave me to point him to the latest version of the code.. :smile: Weddings are a bear so I understand that you've been somewhat out of the loop so to speak.. Just as long as we know where to find you, we're all good!!:yes:

I understand about your website and it's current state.. My hubby gives me the LOOK everytime I finish another web project.. His site is BADLY in need of some TLC (okay truth be told it needs an OVERHAUL!!!:blush:), and unfortunately I let it go by the side of the road.. It was a project site I did for a web design class I took years ago.. So can you say OUTDATED??!!!:laugh:

sanguisdesign:

Do you two think this is worth me setting up a source forge project page?

that way you could install form the SVN and update easier and stuff. its up to you.I think it's time for a Source Forge Project Page.. You get my vote!:bigups:

sanguisdesign:

DivaVocals, thank you for providing the support here. I am way to busy at the moment to be any real help.

JOshY/W.. but I'm only passing back what I've been given.. I need to thank you.. You have NO IDEA how your template shaped my current project.. In fact your template is the ONLY reason why this project will be successful IMO.. It solved a MYRIAD of issues for me..:clap:

So go get married.. Just make sure you COME BACK!! :laugh:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

12 Feb 2008, 6:23 PM
#118
jgkiefer avatar

jgkiefer

Zen Follower

Join Date:
May 2004
Posts:
64
Plugin Contributions:
0

Re: Easy embed template

I too am very impressed with this little beauty! Maybe a code snippet could be developed to embed Zen-Cart in remote websites?
I vote in favor of a SourceForge project!

-Jeff

18 Mar 2008, 2:35 PM
#119
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

I am back,
and yes my honey moon was good, but a month w/o pay (freelancers dont get paid vacations) and the work progress slow down has been painful,
so it took em 3 weeks to do but here it is. the currently pending project on source forge. Please PM me if you would like to get SVN write access. once it is up.
https://sourceforge.net/projects/eazyemb/

as for

jgkiefer:

I too am very impressed with this little beauty! Maybe a code snippet could be developed to embed Zen-Cart in remote websites?
I vote in favor of a SourceForge project!
You could embed Zen in remote web sites w/ a hack on the configuration.php and a mysql server is that is open to remote connections, w/o the east embed template.

JOsh

JOsh Beauregard
Sanguis Development

5 Apr 2008, 2:18 PM
#120
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Easy embed template

OK OK so its been a while, and the sourceforge project was rejected. how ever lest not be discouraged here. I have signed up for a google code base. the URL is, http://code.google.com/p/sanguineeasyembedtemplale/.
I will put together a new package and add it to the repo. And I will also add it to the download section of the site.

JOsh Beauregard
Sanguis Development