How do you remove the "update cart" button image from the shopping cart when your products are priced by attributes?
How do you remove the "update cart" button image from the shopping cart when your products are 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!
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.
The current settings available are:
As you want it gone totally you need to work a little but harder ...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
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 == 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
?>
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!
Great. I found the code to edit but I'm not sure what changes to make. Any suggestions? Sorry, I'm obviously no programmer!
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!
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.
Sorry, shouldn't have replied to this, feel free to delete this post.
Last edited by erick295; 30 Jul 2008 at 03:01 PM.
Bookmarks