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
    Hertfordshire, UK
    Posts
    9,916
    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
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  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
    Hertfordshire, UK
    Posts
    9,916
    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.
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  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. adding shopping cart image to shopping cart sidebox?
    By RobertG in forum Addon Sideboxes
    Replies: 13
    Last Post: 26 Oct 2011, 06:24 AM
  2. Replies: 1
    Last Post: 10 Sep 2009, 09:14 PM
  3. Products not being added to shopping cart
    By kashyyyk in forum General Questions
    Replies: 2
    Last Post: 14 Aug 2009, 02:51 AM
  4. Replies: 19
    Last Post: 22 Nov 2008, 06:11 PM
  5. No Shopping Cart - Products Not Added?
    By starmakersandy in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2008, 09:50 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
  •