Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / removing update cart on checkout page

removing update cart on checkout page

Locked

Views: 2,527

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Feb 2008, 11:21 PM
#1
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

removing update cart on checkout page

how do I remove the 'update cart' next to the 'continue shopping' button in the shopping cart?

26 Feb 2008, 12:57 AM
#2
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: removing update cart on checkout page

/includes/templates/your custom template folder/templates/tpl_shopping_cart_default.php
or
if you do not use a custom template then replace *your_custom_template_folder *with template_default

find near line 76 through line 84:

       <td class="cartQuantityUpdate">
<?php
  if ($product['buttonUpdate'] == '') {
    echo '' ;
  } else {
    echo $product['buttonUpdate'];
  }
?>
       </td>
       <td class="cartProductDisplay">

and change to:

       <td class="cartQuantityUpdate">
<!-- remove "update" button from shopping cart page" -->
<!-- <?php
  if ($product['buttonUpdate'] == '') {
    echo '' ;
  } else {
    echo $product['buttonUpdate'];
  }
?> -->
       </td>
       <td class="cartProductDisplay">

Ron

26 Feb 2008, 8:08 PM
#3
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

Re: removing update cart on checkout page

hey I did that and it takes out the button in the product line, but I want to remove it from below, next to continue shopping and estimate shipping buttons... looks like around line 135 here it would be something

<?php // show update cart button if (SHOW_SHOPPING_CART_UPDATE == 2 or SHOW_SHOPPING_CART_UPDATE == 3) { ?> <div class="buttonRow back"><?php echo zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT); ?></div> <?php } else { // don't show update button below cart ?> <?php } // show update button ?>

since there is a 2 or 3 to show I would think that this might be admin controllable

27 Feb 2008, 3:52 AM
#4
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: removing update cart on checkout page

Admin-> Configuration-> Stock-> Show Shopping Cart - Update Cart Button Location = 1

This configuration can be used to show update button next to quantity box, or below next to the Shipping Estimater button or both depending on setting.

Forget commenting out code that I offered in Post #2.

Ron

17 Mar 2008, 12:24 AM
#5
dscrossstitch avatar

dscrossstitch

New Zenner

Join Date:
Mar 2008
Posts:
29
Plugin Contributions:
0

Re: removing update cart on checkout page

when i commented out the code my update buttons no longer changed anything.

but when i put things back to normal and just changed the stock section in admin my buttons worked a treat and i just have the 1 update button at the bottom

22 Apr 2008, 5:17 PM
#6
senortim avatar

senortim

New Zenner

Join Date:
Jul 2007
Posts:
75
Plugin Contributions:
0

Re: removing update cart on checkout page

Thanks ronlee for the Admin buttons for this. I, too, found that commenting the lines out created some odd behavior (i.e., the buttons are gone, but the Update button at the bottom no longer functions.) Now it works totally fine.

But I have another question regarding this: Does anyone know how the buttons are getting activated? I'm looking at the code using Firebug and don't see anything -- no <a> tag, no form tag, no Javascript -- that is capturing the mouse click. It's like magic!

--Tim