Results 1 to 10 of 361

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    25
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Jan 2008
    Posts
    25
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Easy embed template

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

  4. #4
    Join Date
    Jan 2008
    Posts
    25
    Plugin Contributions
    0

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

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Easy embed template

    Quote Originally Posted by Kent View Post
    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/showpo...7&postcount=95 is where I posted having this SAME problem on page 9 of this thread..

    http://www.zen-cart.com/forum/showpo...7&postcount=94 is where Josh tells me the reason for the issue, and then finally

    http://www.zen-cart.com/forum/showpo...3&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.. (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..

  6. #6
    Join Date
    Jan 2008
    Posts
    25
    Plugin Contributions
    0

    Default Re: Easy embed template

    http://www.zen-cart.com/forum/showpo...3&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.. (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..
    ....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.

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Easy embed template

    Quote Originally Posted by Kent View Post
    ....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..

    Quote Originally Posted by Kent View Post
    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.
    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..

  8. #8
    Join Date
    Jan 2008
    Posts
    25
    Plugin Contributions
    0

    Default Re: Easy embed template

    Quote Originally Posted by yellow1912 View Post
    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

    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?

  9. #9
    Join Date
    Mar 2008
    Posts
    76
    Plugin Contributions
    0

    Default Re: Easy embed template

    This worked pretty well for me. Thank you. I just used added the common pages to my template, from I think version 1.2 beta?

    embed_config.php
    tpl_main_page.php
    html_head.php

    After modifying embed_config.php with:

    $zc_temp = $_SERVER['DOCUMENT_ROOT'].'/shop.htm';

    Note: The zencart stylesheet.css will override your footer generic styles, so you might need to add some class names.

 

 

Similar Threads

  1. Embed php template within another php template based on drop-down menu selection?
    By mcqueeneycoins in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Jan 2012, 06:44 PM
  2. Embed cart button to old site is easy! if no atributes
    By medragon in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 9 Jun 2009, 06:21 AM
  3. How easy is it to install a zen-cart template?
    By ssbeats in forum Addon Templates
    Replies: 1
    Last Post: 22 Nov 2007, 09:43 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