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
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.