New Zenner
- Join Date:
- Jul 2007
- Posts:
- 3
- Plugin Contributions:
- 0
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?
Started by khaber on 25 Oct 2007, 1:30 AM · Views: 6,435
New Zenner
How do you remove the "update cart" button image from the shopping cart when your products are priced by attributes?
Oba-san
What if I decide I want to change may order from 1 Red Widget to 27 Red Widgets? :unsure:
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 ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
New Zenner
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.
Oba-san
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
if ($product['buttonUpdate'] == '') {
echo '' ;
} else {
echo $product['buttonUpdate'];
}
?>
<?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 ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
New Zenner
Great. I found the code to edit but I'm not sure what changes to make. Any suggestions? Sorry, I'm obviously no programmer! :smile:
Oba-san
Commenting out the two echos would work ... :smile:
Just add two slashes // infront of the echo lines for the button ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
New Zenner
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.
New Zenner
Sorry, shouldn't have replied to this, feel free to delete this post.
Tell staff why this post should be reviewed.