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?
Views: 2,527
Zen Follower
how do I remove the 'update cart' next to the 'continue shopping' button in the shopping cart?
Totally Zenned
/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
Zen Follower
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
Totally Zenned
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
New Zenner
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
New Zenner
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
Tell staff why this post should be reviewed.