mrkgnao: I attempted the same in the previous (Pinata) sale and Johny. from GOG informed me that this will not work as the decision is made as part of the purchase operation on the server, not as part of the pre-checkout on the client. But it might be different this time.
After looking at the code, it seems the IDs are only there to limit the number of pinatas one can add to the basket. The ids seem to be always ordered and get added in that order:
a.prototype._checkPinatasInCart = function () {
var a,
b,
c,
d;
for (this._availablePiniataId = null, d = this._pinataIds, a = 0, c = d.length; c > a; a++) if (b = d[a], !this._cart.has(b)) {
this._availablePiniataId = b;
break
}
return this._callPinataLeftListeners(this.isPinataAvailable())
},
The web devs use an IDE with autocomplete but without spellchecking, else debugging typos like 'piata' and 'piniata' would be a pain.