Bearing in mind I don't know coding:
I actually in my CUSTOM_TEMP the snippet in your quote. That snippet, I beleive, is part of the Stock By Attributes contribution - I see it the mod files but not in the 1.3.8 or 1.3.9 files.
BUT
There is another line in my CUSTOM_TEMP version:
PHP Code:
<?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?>
And in the 1.3.9 TEMP_DEFAULT this shows as:
PHP Code:
<?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product', $request_type)); ?>
I just tried in my own test site - when I use the former, and enter more than available stock, I get an error message AND the actual amount that exists in stock.
When I use the latter I get the error message, but NO indication of what is in stock.
That line of code in my CUSTOM_TEMP file also appears to come from the Stock By Attributes mod.
My test site is on PHP 5.2 and I am using zc 1.3.9d and SbyA 1.4.9 (As I said, I don't know code, so I don't know if this will give me grief when my server goes 5.3....but it works on 5.2)
Bookmarks