HI, we are looking for an extjs professional who has __profound__ knowledge in extJS.
Pls. find a screenshot attached and watch the image-names
So, by clicking "NEU" you can add a product to an customer order. In db-terms that interface is to create one or more "orders-products".
An OrdersProduct consists of the following information:
- OrdersID : The order it is related to (that's the "Bestellung" you click on at the bottom)
- ProductID: That's the product you choose in the popup-window you're working on
- Quantity: That's a textfield where you can enter the amount that should be ordered.
- VariationID: One Product (T-Shirt Egyptian Flag) can have many different variations (Green XL, Red S, Black XXXL, etc.)
Many of these interface will shurly come. This might be an longtermin Option.
So, every row in the grid we should see represents one orders-product. If you hit "save" (Speichern), you send all rows data (=orders-products) with those 4 infos (orders-id, product-id, quantity, variation-id) to a controller (I'll tell you the exact name once you're there ;)
The store you use right now is the variationStore. but those should not be displayed in whole. This one should be used for the OrdersProduct to determine the right variation-id.
So, for the T-Shirt-example, you have to choose the attributes "Size" and "Color". Everytime you have chosen one of those needed attributes or changed them, you should send this choice to a controller, which then finds out all other possible values for the missing attributes. For example:
At first, the combos "size" and "color" are filled with "S,M,L,XL,XXL" (sizes) and "green, red, blue, black" (colors):
You choose: "Color: red", and send it to the controller. It answers with "Size: [S,M,XL]". So the combo for size should then show only: S,M,XL
You change color to "black", the controller answers "XL,XXL". Again, the size-combo should then show only XL and XXL, meaning: black is only available in those two sizes.
Or you choose "Size L", and then the color-combo should tell "green, red, blue", because these are the only available colors for SIZE L.
Once you have chosen all needed attributes (for the t-shirt example, both color and size), we will receive a specific variation_id, which is needed for our orders-product.
So, that's what we are trying to achieve. Apart from having an exact idea in HOW you can handle it in source code, do you understand WHAT should be done?? That's a very important first step.
If so, we can talk about the controller methods you need or I have to modify.
DropDown-boxes are very dynamic, based on the product you choose, and should be re-filled after any of them changed value