Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jul 2009
    Posts
    158
    Plugin Contributions
    0

    Default Add jpeg or banner to shopping cart view

    I'm just wondering if it is possible to add an image above the shopping cart contents? When someone clicks view cart and it takes them to the page where everything in the cart is displayed (not the sidebar view), I would like an image to appear above the cart contents.

    Amy

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

    Default Re: Add jpeg or banner to shopping cart view

    If you are talking about this page

    /index.php?main_page=shopping_cart

    Then the default lists this as an option
    Code:
    You may want to add some instructions for using the shopping cart here. (defined in includes/languages/english/shopping_cart.php)
    Remember to copy the file for your template

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

    Default Re: Add jpeg or banner to shopping cart view

    Oh I forgot about that spot. What code to I insert to add a jpeg?

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

    Default Re: Add jpeg or banner to shopping cart view

    What code to I insert to add a jpeg?
    Standard html image code

    image src= etc...

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

    Default Re: Add jpeg or banner to shopping cart view

    By etc do you mean filename.jpg?

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Add jpeg or banner to shopping cart view

    You need to use standard HTML <img> code to display an image. There are multitudes of tutorials on the web about using images in HTML.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Add jpeg or banner to shopping cart view

    http://www.w3schools.com/tags/tag_img.asp

    You need to either specify the full URL of the image starting with http://, or the relative location starting with images/ (assuming the image is under your Zen Cart /images/ folder).

  8. #8
    Join Date
    Jul 2009
    Posts
    158
    Plugin Contributions
    0

    Default Re: Add jpeg or banner to shopping cart view

    I'm trying really hard to work this out but I just have no idea. This is the line I have in my shopping_cart.php:

    define('TEXT_INFORMATION', 'Shipping is based on the total weight of your items. Please take note of shipping weight displayed below before proceeding to checkout.');

    and I am attempting to add:

    <img src="/images/FreePostage.jpg" alt="Free Postage" height="321" width="600">

    but I don't know where to put it. I tried putting it at the end of the text line and on a line of its own but I have no knowledge of code so I can't tell if what I'm doing is wrong or if the <img line is wrong.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add jpeg or banner to shopping cart view

    Something like:
    Code:
    define('TEXT_INFORMATION', 'You may want to add some instructions for using the shopping cart here. (defined in includes/languages/english/shopping_cart.php' . '<br>' .
    '<img src="/images/FreePostage.jpg" alt="Free Postage" height="321" width="600">');
    should work ...

    NOTE: that is an awfully huge image for the shopping_cart and would drive me crazy ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Jul 2009
    Posts
    158
    Plugin Contributions
    0

    Default Re: Add jpeg or banner to shopping cart view

    Thanks I will give this a try. I don't know what size to make the image so I just put a huge one in so I can see it then reduce it until I like the size.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Why is my LOGO.jpeg file not loading in the Banner
    By darknight in forum General Questions
    Replies: 5
    Last Post: 16 Jan 2013, 01:33 PM
  2. v151 Uploading JPEG in shopping cart or somewhere during purchase process
    By webmeister in forum Customization from the Admin
    Replies: 9
    Last Post: 5 Oct 2012, 03:56 AM
  3. v150 Add a View Cart link to my shopping cart header, in 12leaves template?
    By Serg in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 22 Aug 2012, 02:49 AM
  4. Shopping Cart Page Not Found / Cant view cart or checkout
    By pquery in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 30 Oct 2009, 06:46 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