Page 25 of 37 FirstFirst ... 15232425262735 ... LastLast
Results 241 to 250 of 361
  1. #241
    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 dwickwire View Post
    Hi guys,

    I have been looking online for a way to embed Zencart shoppingcart into Joomla. I thought this might work but it seems to me that this is a method of redesigning your website to what Zencart looks like. I just want to embed my Zencart home page into a joomla article. Anyone know how to do that?

    Thanks

    Derek
    There is no way that works well to "embed" ZenCart into a Joomla blog article.. an iframe is the closest possible solution, but ultimately iframes fail for two reasons:

    1. Session errors which will render many areas of Zen Cart in operable.
    2. The inability to set the height attribute on the iframe so that it adjusts dynamically. (This is not a Joomla error, but a limitation of iframes -- you can only set the iframe width to dynamically adjust to the page width)

    This template is meant to embed Zen Cart into a static HTML page as part of an existing website. That said, a CMS such as Joomla does not create a site which is constructed of static HTML pages persay.

    However you can still use this template to "integrate" Zen Cart with a Joomla site if you're willing to do a little work, and you're okay with users having to have one login for Joomla, and another for Zen Cart. (if you are not using any Joomla components which requires user accounts and logins this is a NON issue)

    The way I have used the Easy Embed template with Joomla is to create a static HTML page which looked an "empty" clone of like my Joomla pages and them embedded Zen Cat into that cloned page. After that it was simply a matter of adding a link to the Joomla nav to include my Zen Cart, and synching the Zen and Joomla style sheets.

    Here is the final result of this: http://www.phlaunthair.com

    HTH

  2. #242
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Easy embed template 2.0 released

    Hi all just wanted to let you know that I have just submitted
    version 2.0
    to the downloads section of the site.
    Its not live yet but there you go.

    Please look over the file system as there are lay out changes.
    and more configuration OPTIONS.
    Also added here is a major memory saver. I rewrote the while thing and revised all of the regex to be more simple.
    also it's take on a php class->function object. so instead of dividing the whole thing up into sections and leaving them in memory, it just generates the part of the site needed to be made in on instance and does not retain it in memory.
    the result its faster, more easy to read and customize.

    I also for the first time did a spell check on the readme file. it was a grueling 10 mins but I made it through.

    if you cant wait you can always get the files right from the Subversion repo. the url is https://sanguineasyembedtemplatesyst...anches/zencart
    happy embedding
    Last edited by sanguisdesign; 30 Sep 2008 at 05:57 PM. Reason: spelling

  3. #243
    Join Date
    Sep 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Easy embed template

    Has anyone successfully wrapped this template mod with a template that includes navigation elements (ie., home, about, contact) and account elements (ie. login/logout, my account)?

    More specifically, I want "login" to change to "logoff" when a person is logged in, and vice versa. The culprit is likely the session variables, although they should be accessible since the zencart directory is on the same server as the home, about, and contact web pages, which are in the website root.

    I thought the code below should work:

    PHP Code:
                    <?php if ($_SESSION['customer_id']) { ?>
                    <li><a href="<?php print("$webroot"."$shop");?>index.php?main_page=login">Logout</a></li>
                <?php
                      
    } else {
                        if (
    STORE_STATUS == '0') {
                
    ?>
                    <li><a href="<?php print("$webroot"."$shop");?>index.php?main_page=login">Login</a></li>
                <?php } } ?>
    I saw an example with a bunch of zen_href_link references, so I was wondering if those additions to the code are necessary, with ez-pages that link to my "external"(outside zen cart) pages.

    Hopefully this topic is relevant enough - I figured not too many other people would see a reason for this workaround.

    I would move the zen-cart files into the website root, but:
    • Then there is the issue of two index.php's(since it was recommended not to change the name of zen-cart's index.php-the product/shop page- and I'm not sure how to change index.php -the home page- or if that would impact SEO).
    • And having all of the zencart files floating in the website root would make the file structure less organized.

  4. #244
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: Easy embed template

    Quote Originally Posted by oboeonetwothree View Post
    Has anyone successfully wrapped this template mod with a template that includes navigation elements (ie., home, about, contact) and account elements (ie. login/logout, my account)?

    More specifically, I want "login" to change to "logoff" when a person is logged in, and vice versa. The culprit is likely the session variables, although they should be accessible since the zencart directory is on the same server as the home, about, and contact web pages, which are in the website root.

    I thought the code below should work:

    PHP Code:
                    <?php if ($_SESSION['customer_id']) { ?>
                    <li><a href="<?php print("$webroot"."$shop");?>index.php?main_page=login">Logout</a></li>
                <?php
                      
    } else {
                        if (
    STORE_STATUS == '0') {
                
    ?>
                    <li><a href="<?php print("$webroot"."$shop");?>index.php?main_page=login">Login</a></li>
                <?php } } ?>
    I saw an example with a bunch of zen_href_link references, so I was wondering if those additions to the code are necessary, with ez-pages that link to my "external"(outside zen cart) pages.

    Hopefully this topic is relevant enough - I figured not too many other people would see a reason for this workaround.

    I would move the zen-cart files into the website root, but:
    • Then there is the issue of two index.php's(since it was recommended not to change the name of zen-cart's index.php-the product/shop page- and I'm not sure how to change index.php -the home page- or if that would impact SEO).
    • And having all of the zencart files floating in the website root would make the file structure less organized.
    what you seem to be asking one fundamental question here can you run php in the markup file.
    the answerer is yes how ever I have had trouble in the past w/ having to run chdir's and includes. how ever the template file is pre-parsed before any thing is divided up. so if you are mixing up you html w/ php it might break.
    how ever using zen cart functions should not be a problem since application top has already been run at the time that the sang embed is included.

    JOsh

  5. #245
    Join Date
    Sep 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Easy embed template

    At the moment I have tpl_main.html with quite a bit of embedded php - but the parsing has not been a problem.

    One issue I had was that my included footer.php within tpl_main.html included duplicate </body> and </html> tags, since did two files somewhere in your template system had </body></html> as well. I caught this when my xhtml didn't validate.
    • My fix was to preg_replace </body> and </html> from within tpl_main.html.
    • I tried this at the bottom of embed_config.php, but it also put a bunch of space at the bottom of the footer:
      PHP Code:
      $sitetemplate_bottom preg_replace("#</body>#is"""$sitetemplate_bottom);
      $sitetemplate_bottom preg_replace("#</html>#is"""$sitetemplate_bottom); 
      I'm not sure why the above code put in all that extra space. -I couldn't see anything suspicious in the browser's source code.


    Session solution
    • I ended up using the solution here in order to access application_top.php and keep sessions active throughout my website:
      https://www.zen-cart.com/forum/showt...219#post621219
    • I also moved my Home, About, etc pages to the root directory, and used the above solution for pages in subdirectories (where I could not figure out how to access application_top.php), but presumably it could be used in the inverse manner - for pages in the website root directory above the zencart shop directory.

  6. #246
    Join Date
    Mar 2004
    Location
    Fort Collins, CO :: Play Hockey eh?!
    Posts
    64
    Plugin Contributions
    0

    Default Re: Easy embed template

    I have two footers?!

    My download did not have
    Code:
    <div id="content">
    I'm curious, in the directions there is never mention a closing div for that line? In several forum posts I see where users are generally including it anyway.

    Here is my page shop.html template page:
    http://turningleaftouch.com/shop.html

    Here is my shop:
    http://turningleaftouch.com

    What am I missing?

    This is the best thing since beer!
    Last edited by flash; 27 Dec 2008 at 01:58 AM. Reason: Getting it right...

  7. #247
    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 flash View Post
    I have two footers?!

    My download did not have
    Code:
    <div id="content">
    I'm curious, in the directions there is never mention a closing div for that line? In several forum posts I see where users are generally including it anyway.

    Here is my page shop.html template page:
    http://turningleaftouch.com/shop.html

    Here is my shop:
    http://turningleaftouch.com

    What am I missing?

    This is the best thing since beer!
    Try checking out this post http://www.zen-cart.com/forum/showpo...&postcount=105. It should answer your question..

    Just a suggestion I'd like to pass on.. before I use ANY Zen Add-On I usually read through the entire support thread so I know if there are any "gotchas" or if the Add-On is generally working or not.. (Don't want to create a site support nightmare form myself..) It's how I discovered UrbanX's tips and instructs for using this mod.. It's was like a lightbulb going off!

  8. #248
    Join Date
    Mar 2004
    Location
    Fort Collins, CO :: Play Hockey eh?!
    Posts
    64
    Plugin Contributions
    0

    Default Re: Easy embed template


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

    Default Re: Easy embed template

    Maybe I'm missing it.. but I don't see two footers..

  10. #250
    Join Date
    Jul 2006
    Posts
    89
    Plugin Contributions
    0

    Default Re: Easy embed template

    Hi everyone,

    I have the same issue of double footer. Worse yet, I am having double header as well. My site is www.sushi-franchise.com/sushi. Template is www.sushi-franchise.com/home.htm

    I do notice as someone suggested that there are two <body></body> tags, which I thought might be a problem. But even if I delete the <body> tag in the home.htm template, the problem is still there.

    Another thing I am confusing about is the side columns in joomla. Can they be there if I am going to use the ##############dex template? Will that be the cause of problem?

    I really appreciate your time. But hope you guys can help me out. Even if it's just a few tips, or directions to some resources, that'll be terrific! Thanks!

 

 
Page 25 of 37 FirstFirst ... 15232425262735 ... LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR