Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2007
    Posts
    4
    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
    64,649
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jul 2007
    Posts
    4
    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
    64,649
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Jul 2007
    Posts
    4
    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
    64,649
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  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. Checkout Button in Shopping cart sidebox?
    By zoreli in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 30 Jul 2010, 06:03 PM
  2. Show selected attributes in Shopping Cart Box?
    By bigmom in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Oct 2007, 04:40 AM
  3. Aligning Product Attributes with Add to Cart Button
    By mlm2005 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jul 2006, 01: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
  •