Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2009
    Posts
    52
    Plugin Contributions
    0

    Default Added verbage to shopping cart, how do I do it the right way?

    I added some text to the shopping cart page using HTML, just plopped it into the top of shopping_cart.php in my template.

    You need to add a product to see the page.

    http://www.midwestnotebooks.com/inde...=shopping_cart

    To add more items click Continue Shopping.

    To delete items from your cart hit the red "X".

    To change quantity, edit qty. box and click the green refresh arrows.


    How do I do it the right way? Using .php commands?
    Last edited by plsony; 16 Feb 2010 at 07:35 PM. Reason: spelling error

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default Re: Added verbage to shopping cart, how do I do it the right way?

    The proper place to add commentary (and it can be html formatted) is in includes/languages/english/shopping_cart.php

    The defines are added to:

    PHP Code:
    define('TEXT_INFORMATION''Your Text Here'); 
    Once you've made the changes, the file should be saved to your over-ride folder:-

    includes/languages/english/YOUR_TEMPLATE/shopping_cart.php
    19 years a Zencart User

  3. #3
    Join Date
    Jul 2009
    Posts
    52
    Plugin Contributions
    0

    Default Re: Added verbage to shopping cart, how do I do it the right way?

    Thanks,

    That is where I put the HTML.

    Can I have multiple lines of define('TEXT_INFORMATION') and in multiple places?

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default Re: Added verbage to shopping cart, how do I do it the right way?

    It all appears in one place, but you can split lines using <br /> tags.

    If you want to position bits of text around the cart page, you will need to edit its template.

    If you follow the php conventions used for "echoing" such defines (use the above as a guide) then you will have done this properly.

    Hard-coding the template file (while effective) is bad protocol.
    19 years a Zencart User

  5. #5
    Join Date
    Jul 2009
    Posts
    52
    Plugin Contributions
    0

    Default Re: Added verbage to shopping cart, how do I do it the right way?

    Thanks,

    Thats great.

    How do I place an image using .php instead of HTML as seen in the credit logos below the cart?

 

 

Similar Threads

  1. Is there a way to Disable the Shopping Cart ...
    By jibbyprog in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Oct 2010, 04:55 PM
  2. How would I move the template all the way to the right and fix an image to the
    By pityocamptes in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 15 Sep 2010, 05:45 AM
  3. Shopping Cart blows out to the right
    By victoria in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Apr 2008, 03:24 PM
  4. How to put "Shopping cart" at the top right column
    By d2leader in forum Basic Configuration
    Replies: 4
    Last Post: 29 Sep 2006, 09:14 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