Selling in Shop to look identical to Buying

I.e when you purchase stuff in a shop in RPG maker the buy menu has everything laid out for you in one list, when it comes to selling it splits it into 4-5 catagories in a completely different format, would there be anyway to have it so the selling window just displayed all items/weapons/armours and such in one list ready for you to sell?
@Symbol_ Copy and paste the following into a '.js' file in your plugins directory, and then add that file as a plugin within your project. This is a fairly quick hackjob, so if you use other shop plugins, there may be incompatibilities. If that happens, let me know and I will try and work around that.

Code:
(function($) {                                                                       // {

  $.prototype = Object.create(Window_ShopBuy.prototype);

  $.prototype.makeItemList = function() {
    this._data = [];
    this._price = [];

    $gameParty.allItems().forEach(function(item) {
      if (item) {
        if (item.hasOwnProperty('itypeId')) {
          if (item.itypeId > 1) return;
        }
        if (item.price === 0) return;

        this._data.push(item);
        this._price.push(item.price);
      }
    }, this);
  };

  $.prototype.isEnabled = function(item) {
    return item && item.price > 0;
  };

})(Window_ShopSell);                                                                 // }



(function($) {                                                                       // {

  $.prototype.createCategoryWindow = function() {

  };

  $.prototype.createSellWindow = function() {
    var wy = this._commandWindow.y + this._commandWindow.height;
    var wh = Graphics.boxHeight - wy;
    this._sellWindow = new Window_ShopSell(0, wy, wh);
    this._sellWindow.setHelpWindow(this._helpWindow);
    this._sellWindow.setStatusWindow(this._statusWindow);
    this._sellWindow.hide();
    this._sellWindow.setHandler('ok',     this.onSellOk.bind(this));
    this._sellWindow.setHandler('cancel', this.onSellCancel.bind(this));
    this.addWindow(this._sellWindow);
  };

  $.prototype.commandSell = function() {
    this.activateSellWindow();
  };

  $.prototype.activateSellWindow = function() {
    this._dummyWindow.hide();
    this._sellWindow.show();
    this._sellWindow.activate();
    this._sellWindow.refresh();
    this._sellWindow.select(0);
    this._statusWindow.show();
  };

  $.prototype.onCategoryCancel = function() {

  };

  $.prototype.onSellOk = function() {
    this._item = this._sellWindow.item();
    this._sellWindow.hide();
    this._numberWindow.setup(this._item, this.maxSell(), this.sellingPrice());
    this._numberWindow.setCurrencyUnit(this.currencyUnit());
    this._numberWindow.show();
    this._numberWindow.activate();
    this._statusWindow.setItem(this._item);
    this._statusWindow.show();
  };

  $.prototype.onSellCancel = function() {
    this._sellWindow.deselect();
    this._statusWindow.setItem(null);
    this._helpWindow.clear();
    this._sellWindow.hide();
    this._statusWindow.hide();
    this._commandWindow.activate();
    this._dummyWindow.show();
  };

})(Scene_Shop);                                                                      // }



EDIT: Whoops, there was a small error I overlooked. Updated the code.
@Symbol_ Copy and paste the following into a '.js' file in your plugins directory, and then add that file as a plugin within your project. This is a fairly quick hackjob, so if you use other shop plugins, there may be incompatibilities. If that happens, let me know and I will try and work around that.

Code:
(function($) {                                                                       // {

  $.prototype = Object.create(Window_ShopBuy.prototype);

  $.prototype.makeItemList = function() {
    this._data = [];
    this._price = [];

    $gameParty.allItems().forEach(function(item) {
      if (item) {
        if (item.hasOwnProperty('itypeId')) {
          if (item.itypeId > 1) return;
        }
        if (item.price === 0) return;

        this._data.push(item);
        this._price.push(item.price);
      }
    }, this);
  };

  $.prototype.isEnabled = function(item) {
    return item && item.price > 0;
  };

})(Window_ShopSell);                                                                 // }



(function($) {                                                                       // {

  $.prototype.createCategoryWindow = function() {

  };

  $.prototype.createSellWindow = function() {
    var wy = this._commandWindow.y + this._commandWindow.height;
    var wh = Graphics.boxHeight - wy;
    this._sellWindow = new Window_ShopSell(0, wy, wh);
    this._sellWindow.setHelpWindow(this._helpWindow);
    this._sellWindow.setStatusWindow(this._statusWindow);
    this._sellWindow.hide();
    this._sellWindow.setHandler('ok',     this.onSellOk.bind(this));
    this._sellWindow.setHandler('cancel', this.onSellCancel.bind(this));
    this.addWindow(this._sellWindow);
  };

  $.prototype.commandSell = function() {
    this.activateSellWindow();
  };

  $.prototype.activateSellWindow = function() {
    this._dummyWindow.hide();
    this._sellWindow.show();
    this._sellWindow.activate();
    this._sellWindow.refresh();
    this._sellWindow.select(0);
    this._statusWindow.show();
  };

  $.prototype.onCategoryCancel = function() {

  };

  $.prototype.onSellOk = function() {
    this._item = this._sellWindow.item();
    this._sellWindow.hide();
    this._numberWindow.setup(this._item, this.maxSell(), this.sellingPrice());
    this._numberWindow.setCurrencyUnit(this.currencyUnit());
    this._numberWindow.show();
    this._numberWindow.activate();
    this._statusWindow.setItem(this._item);
    this._statusWindow.show();
  };

  $.prototype.onSellCancel = function() {
    this._sellWindow.deselect();
    this._statusWindow.setItem(null);
    this._helpWindow.clear();
    this._sellWindow.hide();
    this._statusWindow.hide();
    this._commandWindow.activate();
    this._dummyWindow.show();
  };

})(Scene_Shop);                                                                      // }



EDIT: Whoops, there was a small error I overlooked. Updated the code.

I cant seem to see any change, I've made sure follow your steps and activated it in game at both the top and bottom of my plugin list:
@Symbol_ Hmm, are you using any shop plugins?
@Symbol_ Hmm, are you using any shop plugins?

Im using one plugin that allows me to put images behind windows. HIME_Windowbackgrounddesigner, and YEP_Core...those are the only two I could think might have any effect?
@Symbol_ It is possible. Try temporarily disabling the Window Background Designer, or perhaps YEP Core and see if that works. Also, press F12 to open the debug window to see if there are any errors popping up.
@Symbol_ It is possible. Try temporarily disabling the Window Background Designer, or perhaps YEP Core and see if that works. Also, press F12 to open the debug window to see if there are any errors popping up.

Turns out YEP core was disabled anyway so it wasnt that, tried disabling background designer, no difference.

The errors I get are: Uncaught SyntaxError: Unexpected token }
@Symbol_ Hmm ... here, give this a try. Download the attached file and add that to your plugins, and disable/remove the one you currently have in your project. Kind of sounds like perhaps the copy process missed a bracket and the plugin is blowing up before it has a chance to make any changes.
@Symbol_ Hmm ... here, give this a try. Download the attached file and add that to your plugins, and disable/remove the one you currently have in your project. Kind of sounds like perhaps the copy process missed a bracket and the plugin is blowing up before it has a chance to make any changes.

this works now! Thanks so much dude, you've saved my ass twice nice. You're a huge asset to this community. If there's anything I can do please let me know.
@Symbol_ Not a problem! Glad that worked out-

Original thread: https://forums.rpgmakerweb.com/threads/selling-in-shop-to-look-identical-to-buying.113551/