Zen Cart Logo
Forums / Customization from the Admin / Remove Update Button From Shopping Cart when priced by attributes?

Remove Update Button From Shopping Cart when priced by attributes?

Locked

Views: 6,433

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
25 Oct 2007, 1:30 AM
#1
khaber avatar

khaber

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?

25 Oct 2007, 4:13 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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? :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?

25 Oct 2007, 11:33 AM
#3
khaber avatar

khaber

New Zenner

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

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.

26 Oct 2007, 3:05 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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
  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
?>
26 Oct 2007, 2:19 PM
#5
khaber avatar

khaber

New Zenner

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

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! :smile:

26 Oct 2007, 8:16 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Remove Update Button From Shopping Cart when priced by attributes?

Commenting out the two echos would work ... :smile:

Just add two slashes // infront of the echo lines for the button ...

12 Dec 2007, 9:39 PM
#7
deepwatersdotinfo avatar

deepwatersdotinfo

New Zenner

Join Date:
Dec 2007
Posts:
6
Plugin Contributions:
0

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.

30 Jul 2008, 1:55 PM
#8
erick295 avatar

erick295

New Zenner

Join Date:
Jul 2008
Posts:
2
Plugin Contributions:
0

Re: Remove Update Button From Shopping Cart when priced by attributes?

Sorry, shouldn't have replied to this, feel free to delete this post.