Validation on Category
Posted: Tue Feb 10, 2015 4:27 am
Hi,
I need a validation on View Category/View Product page to first select a warehouse (as Inventory/Stock is dependent on the warehouse). I have written the necessary logic in the Controllers (ProductController and CategoryController) to throw an Exception when the warehouse is not selected. Now, I want to display the message nicely before/after redirecting to the Home Page. How do I handle the same in my product.hml/category.html and what is the relevant portion of JS that gets called on Page Load.
Also, stock availabilty seems to be getting called from BLC_SKU entity directly (in the product.html page). How can I change it get called from my new Entity (which holds the map of Warehouse-wise-SKU Inventory position) instead.
Regards
I need a validation on View Category/View Product page to first select a warehouse (as Inventory/Stock is dependent on the warehouse). I have written the necessary logic in the Controllers (ProductController and CategoryController) to throw an Exception when the warehouse is not selected. Now, I want to display the message nicely before/after redirecting to the Home Page. How do I handle the same in my product.hml/category.html and what is the relevant portion of JS that gets called on Page Load.
Also, stock availabilty seems to be getting called from BLC_SKU entity directly (in the product.html page). How can I change it get called from my new Entity (which holds the map of Warehouse-wise-SKU Inventory position) instead.
Regards