MV Shop Menu - skip item amount

Hello everyone. I would like to request a plugin, because I didn't find a solution and I'm not firm with JavaScript.

I'm using Yanfly Engine Plugins including Item Core and Shop Menu Core for my project in RMMV. Nearly all my items are "independent", which means, I cannot buy or sell more than one at a time. Because of that I would like to skip the scene in the shop menu, where I choose the amount of the items. The quantity should always be set to 1 automatically. I would like the "choose amount"-scene to be skipped when buying AND selling.

I hope I explained my request sufficiently. Thanks in advance.
You can try this (copy paste to notepad, save as .js file and add as plugin below Yanfly):

Scene_Shop.prototype.onBuyOk = function() {
this._item = this._buyWindow.item();
SoundManager.playShop();
this.doBuy(1);
this.activateBuyWindow();
this._goldWindow.refresh();
this._statusWindow.refresh();
};

Scene_Shop.prototype.onSellOk = function() {
this._item = this._sellWindow.item();
SoundManager.playShop();
this.doSell(1);
this.activateSellWindow();
this._goldWindow.refresh();
this._statusWindow.refresh();
};
Thank you very much for the fast response and for the plugin. This is exactly what I wanted.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/shop-menu-skip-item-amount.183307/