hi, i am getting this message: Please update your order...Units errors -
You ordered a total of: 1 Units: 0
on the shopping cart page. How can i fix it?, thanks. wayne
hi, i am getting this message: Please update your order...Units errors -
You ordered a total of: 1 Units: 0
on the shopping cart page. How can i fix it?, thanks. wayne
A url to this?
check in your product entry page for this product and the min, max, units - settings
You cannot sell in 0 units ... this has to be > 0 ...
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!
I have seen this before, and I believe it to be a bug in the Admin which masks the problem. Even if products.products_quantity_order_units is 0, it is displayed as 1 in the Admin during product edit.
Looking at admin/includes/modules/product/collect_info.php, line 378, if $pInfo->products_quantity_order_units == 0, 1 is displayed. This is misleading.
Geezer, to fix your problem:
- On the product info page, you will see (in the Add to Cart box) "Add to Cart: 1" with "Units: 0" below it. This is the trigger that you're in this state that Ajeh and Kobra are describing.
- You go to the admin for this product, and see that Product Qty Units is 1. It's really 0. Just go ahead anyway and update the product. The 0 will be overwritten with 1.
- Go back to the catalog product info page, refresh the page, and the Units: 0 should be gone.
Good luck,
Scott
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
This is not a bug ... this is an auto fix for when you make errors and set unit to 0 and then edit the product later it fixes it automatically when set to 0 as this is wrong:
PHP Code:<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_quantity_order_units', ($pInfo->products_quantity_order_units == 0 ? 1 : $pInfo->products_quantity_order_units)); ?></td>
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!
Then it's a bug that zen_get_products_quantity_order_units() doesn't return the greater of 1 or the actual value of products_quantity_order_units.
If 0 is a buggy value, it should be treated as such throughout the system.
Scott
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.