What Im doing is: I have a single update button, when people click on that the whole cart will be updated.
What Im doing is: I have a single update button, when people click on that the whole cart will be updated.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Do note the admin setting in the Configuration ... Stock ...
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
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!]
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!
Let me use a pic as example. I've used the default template. See how customers would have no use for the update button in this scenario.
![]()
You could look into the shopping_cart class for this section of code and use the function to calculate how many products are Max 1 vs the quantity in the cart ... and when they match don't show the button ...
PHP Code:/**
* Method to calculate the number of items in a cart based on an abitrary property
*
* $check_what is the fieldname example: 'products_is_free'
* $check_value is the value being tested for - default is 1
* Syntax: $_SESSION['cart']->in_cart_check('product_is_free','1');
*
* @param string product field to check
* @param mixed value to check for
* @return integer number of items matching restraint
*/
function in_cart_check($check_what, $check_value='1') {
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!]
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!
Thanks Ajeh! This is into php codes but I'll try to work it out .![]()