Thanks, nyaa. ^^;; I'm a programmer myself, so I know a thing or two about how it is. Glad I could help.
I was actually having the exploding crate contents problem because I was trying to stockpile grips, guards, ingots, daggers, etc. in a single big order at the end of the business day before sleeping for the next day. (Like a real shop!)
If you just order what you need as the NPCs come in, there's so few materials in each crate that it's fine, soo the game is playable for now... oo;