Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2010
    Posts
    10
    Plugin Contributions
    0

    Default Editing Shopping Cart Sidebox to display only last item added

    I've been playing around with the code for awhile now but just haven't been able to make any headway on this. I'm hoping to alter the shopping cart sidebox to display only the last product added along with it's corresponding product image.

    If anyone has any suggestions on the most efficient way to do this I could really use a helping hand. Thanks!

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

    Default Re: Editing Shopping Cart Sidebox to display only last item added

    Try editing the tpl_shopping_cart.php for the sidebox and change this code:
    Code:
        for ($i=0, $n=sizeof($products); $i<$n; $i++) {
          $content .= '<li>';
    to read:
    Code:
        for ($i=0, $n=sizeof($products); $i<$n; $i++) {
          $content = '<li>';
    This should only leave the last thing added to the customers_basket as being displayed in the shopping cart sidebox ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. v151 - main menu disappears when item added to shopping cart.
    By HammurIT in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 May 2015, 11:38 AM
  2. Replies: 5
    Last Post: 21 May 2011, 04:16 PM
  3. Editing shopping cart sidebox content
    By GMCto in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 22 Feb 2010, 08:56 PM
  4. New item added to cart when editing an existing item
    By jds580s in forum General Questions
    Replies: 2
    Last Post: 23 Feb 2009, 08:39 PM
  5. Replies: 7
    Last Post: 25 Jan 2009, 06:00 AM

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