MZ Remove "Sell" entirely from Shop Menu and Small Tweak

Hi guys! I´ve been working on my project and I just touched the shop menu.
I would like to make the shops Buy only, but I can´t seem to remove the "Sell" button ("Vender" in the image), I tried making a plugin out of the shop scene menu, deleting everything related to sell but it didn´t work, it gave a "bind" error.

And the small tweak is just as the scene covers the whoooole screen I would like to make the rectangles less wide and maybe push them to one side, could you tell me which part of the "Shop Scene" to edit to change it? I´ve change a few rectangles on other menus but this one has so many I´m a tad confused.

Thanks a million in advance!
1758211225583.png
MV has a "Purchase Only" option when you set the Shop Processing event, at the very bottom of the list menu. Is that not the case for MZ, or does this plugin you're using disable that?
MV has a "Purchase Only" option when you set the Shop Processing event, at the very bottom of the list menu. Is that not the case for MZ, or does this plugin you're using disable that?
Yeah but the Purchase Only option only gray's out the "Sell" which would imply to the player that it will be used later on, I would like to remove it completely, the plugin I tried to make did nothing, only give an error ):
Create a plugin by removing the button:
JavaScript:
(() => {
    Window_ShopCommand.prototype.makeCommandList = function() {
        this.addCommand(TextManager.buy, "buy");
        if (!this._purchaseOnly) {
            this.addCommand(TextManager.sell, "sell")
        }
        this.addCommand(TextManager.cancel, "cancel");
        this.reselect(); /* Fix maxCols */
    };

    Window_ShopCommand.prototype.maxCols = function() {
        return (!this._purchaseOnly)? 3 : 2;
    };
})();
(Enable "Sell Only" to work)

Result:
1758429615476.png


Or, if you prefer, use your own plugin to customize the shops in your game:
Create a plugin by removing the button:
JavaScript:
(() => {
    Window_ShopCommand.prototype.makeCommandList = function() {
        this.addCommand(TextManager.buy, "buy");
        if (!this._purchaseOnly) {
            this.addCommand(TextManager.sell, "sell")
        }
        this.addCommand(TextManager.cancel, "cancel");
        this.reselect(); /* Fix maxCols */
    };

    Window_ShopCommand.prototype.maxCols = function() {
        return (!this._purchaseOnly)? 3 : 2;
    };
})();
(Enable "Sell Only" to work)

Result:
View attachment 349883

Or, if you prefer, use your own plugin to customize the shops in your game:
This worked like a charm! thanks a milliion!!

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/remove-sell-entirely-from-shop-menu-and-small-tweak.180135/