potteryhouse / stock_by_attribute_1.5.4

Stock by Attribute for Zen Cart 1.5.3
GNU General Public License v2.0
2 stars 5 forks source link

Expected error message when adding item to cart not consistently displayed #20

Closed mc12345678 closed 9 years ago

mc12345678 commented 9 years ago

If the store is set to not display the shopping cart upon adding items, then when a product quantity is added to the cart in excess of that allowed, no error message is generated and in fact the successfully added to cart message appears. Subsequently accessing the shopping_cart displays the error message about exceeding the quantity.

Suggested solution is to incorporate an includes/extra_cart_actions file to address the details of the error message when working with a SBA tracked item.

It looks like there may be three functions that would be of "concern" to address in the file, the add product, the update product and the multiple add product cases. All three should be possible to incorporate and address.

mc12345678 commented 9 years ago

Issue appears to be resolved via inclusion of extra_cart_actions file for SBA tracked product. Now when cart is set to not display after adding product, error message appears if the total of the variant exceeds the available quantity of that variant if the allow checkout option is set to false. If allow checkout (permitting backorder quantities) is set to true, then the products are considered successfully added to the cart, and it is only when viewing the cart that the red message about backorder and the currently available product are displayed. This is consistent with routine ZC operation.

Issue resolved in both mc12345678 branches.