Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2010
    Location
    Scotland, United Kingdom
    Posts
    3
    Plugin Contributions
    0

    cart error replace Empty cart message HELP!

    Hi there
    I'm new to zencart as I guess you hear a lot and I have been reading your forums for a few of weeks now but have finally hit a problem I can't find a solution to. I have been building a new shop [first time] and would like to make this alteration.
    when a customer clicks on the cart icon with no products in the cart it shows "your cart is empty" message now I can remove this but I want to replace this with an html header contained in an ez page similar to the ones used in other areas of my site and instead of having new products [or any products] display below I intend to have banners for each section of the categories. my initial problem is getting an ez page to replace the "CART IS EMPTY" text I know this is going to be a hack in the php code but I can't even find where to look
    I've been through the developer tool kit section in admin but the phrase appears in so many pages I don't know which to start on.
    any help on this would be very much appreciated I have looked through the forum and searched google but have not found any other posts in relation to this
    I am using the latest build: v1.3.9f
    and a free template Designed by 12leaves.com
    the site is here but is not live yet so the home link does not work
    www.firstaidglasgow.co.uk/index.php

    Jim...
    Last edited by bremboy; 15 Nov 2010 at 07:35 PM. Reason: grammer

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Use Ez page to replace Empty cart message HELP!


  3. #3
    Join Date
    Oct 2010
    Location
    Scotland, United Kingdom
    Posts
    3
    Plugin Contributions
    0

    Default Re: Use Ez page to replace Empty cart message HELP!

    Thanks for your quick reply and I appreciate the hint I found the file that includes the "your cart is empty" text and I can achieve what I want by butchering the original file [inserting html] but I would prefer to do this by calling a pre created ez page to display here unfortunately due to my non existent php coding skills I don't know how to do this. below is the else part of the if statement and it shows css id and a call to write the message defined in text_cart_empty which is defined in my template override
    <?php
    } else {
    ?>

    <h2 id="cartEmptyText"><?php echo TEXT_CART_EMPTY; ?></h2>

    I would at this point like to call a predefined ez page to display instead of the TEXT_CART_EMPTY however I do not know the syntax required to do this any help please

    Thanks
    Jim

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Use Ez page to replace Empty cart message HELP!

    Try replacing
    Code:
    <h2 id="cartEmptyText"><?php echo TEXT_CART_EMPTY; ?></h2>

    with a standard html href link

    Code:
    <a> href="/index.php?main_page=page&id=your ezpage ID#"Text you want for the click here</a>

  5. #5
    Join Date
    Oct 2010
    Location
    Scotland, United Kingdom
    Posts
    3
    Plugin Contributions
    0

    Default Re: Use Ez page to replace Empty cart message HELP!

    Once again thanks I sorted it my method is a bit untidy but it will do until I learn a wee bit more about php.

    1. I created a new file in html_includes
    2.edited it in the admin area
    3.and found a bit of code to call it from the tpl_shopping_cart_default.php

    <?php include($DOCUMENT_ROOT . "includes/languages/english/html_includes/define_empty_ cart.php"); ?>
    at least this way I can edit it quickly through the admin panel if required but I have another query Oh No!! in doing this I have not used the override I tried making a folder using the path
    includes\templates\template_default\templates\mytemplate
    as the tpl_shopping_cart_default.php resides in the templates folder but it didn't seem to kick in should my custom folder be in the template_default alongside the templates folder ??

    anyway Kobra
    Thanks for your help and your time
    on an unrelated matter while building this site I had to make a sql file of UK regions [zones] which are identical to the current paypal ones I could upload them might save someone an hour or three if your as slow as me

    Jim..

 

 

Similar Threads

  1. v139h SOLVED: When clicking "Add to Cart", message shows "Your Shopping Cart is Empty"
    By bryanearl in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 14 Nov 2012, 05:22 PM
  2. Replies: 1
    Last Post: 7 Aug 2010, 09:11 PM
  3. Help! replace Information/Shopping cart sidebox header with Images
    By missinglife in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Oct 2009, 01:26 AM
  4. Shopping cart empty message
    By tbokich in forum Upgrading from 1.3.x to 1.3.9
    Replies: 8
    Last Post: 8 Apr 2009, 07:48 PM
  5. "Empty Cart" message when attribues not selected
    By rickj in forum General Questions
    Replies: 19
    Last Post: 14 Sep 2008, 05:01 AM

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