Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2007
    Posts
    3
    Plugin Contributions
    0

    Default Remove Update Button From Shopping Cart when priced by attributes?

    How do you remove the "update cart" button image from the shopping cart when your products are priced by attributes?

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

    Default Re: Remove Update Button From Shopping Cart when priced by attributes?

    What if I decide I want to change may order from 1 Red Widget to 27 Red Widgets?

    Do you need it gone from the page entirely?

    Or, just from within the Product List but keep the one under the list of products?
    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!

  3. #3
    Join Date
    Jul 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Remove Update Button From Shopping Cart when priced by attributes?

    I would like it gone entirely. I've seen replies about deleting code but I'm not sure how to do that so I was hoping for an easier solution.

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

    Default Re: Remove Update Button From Shopping Cart when priced by attributes?

    The current settings available are:
    Show Shopping Cart - Update Cart Button Location
    Show on Shopping Cart Update Cart Button Location as:

    1= Next to each Qty Box
    2= Below all Products
    3= Both Next to each Qty Box and Below all Products
    As you want it gone totally you need to work a little but harder ...

    Look in the tpl_shopping_cart_default.php for two sections of code and adjust as needed:
    PHP Code:
    <?php
      
    if ($product['buttonUpdate'] == '') {
        echo 
    '' ;
      } else {
        echo 
    $product['buttonUpdate'];
      }
    ?>
    PHP Code:
    <?php
    // show update cart button
      
    if (SHOW_SHOPPING_CART_UPDATE == or SHOW_SHOPPING_CART_UPDATE == 3) {
    ?>
    <div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATEICON_UPDATE_ALT); ?></div>
    <?php
      
    } else { // don't show update button below cart
    ?>
    <?php
      
    // show update button
    ?>
    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!

  5. #5
    Join Date
    Jul 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: Remove Update Button From Shopping Cart when priced by attributes?

    Great. I found the code to edit but I'm not sure what changes to make. Any suggestions? Sorry, I'm obviously no programmer!

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

    Default Re: Remove Update Button From Shopping Cart when priced by attributes?

    Commenting out the two echos would work ...

    Just add two slashes // infront of the echo lines for the button ...
    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!

  7. #7
    Join Date
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Remove Update Button From Shopping Cart when priced by attributes?

    hi thanks for that. i commented out the echo statements, but now my update button (at the bottom) doesn't work (i.e. if i update the quantity and click the update button, the totals don't change). any idea what i'm doing wrong? thanks.

  8. #8
    Join Date
    Jul 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Remove Update Button From Shopping Cart when priced by attributes?

    Sorry, shouldn't have replied to this, feel free to delete this post.
    Last edited by erick295; 30 Jul 2008 at 03:01 PM.

 

 

Similar Threads

  1. Remove right sidebox shopping cart from when on shopping cart page
    By alterego55 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Oct 2010, 01:45 AM
  2. shopping cart - hide the Cart Quantity Update button when not needed
    By dause in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Oct 2009, 04:28 AM
  3. How do I remove paypal button from shopping cart?
    By snowy2007 in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 20 Nov 2008, 11:10 AM
  4. remove price in product listing when priced by attributes
    By Thunder in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 30 Sep 2008, 05:41 PM
  5. Remove update button from cart box
    By longstockings in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 3 Jun 2007, 03:05 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