MV YEP Conditional Shop Prices

Has anyone yet found a way to edit this plugin in some way to have the sell prices also adjusted? I have my variables and switches all set up for the price adjustments to work beautifully, but through some oversight it looks like sell prices were completely kept out of this plugin. As of right now it just gives you the default /2 of the database general price. The scene controlling sell price is within The Shop Core:
Yanfly.Shop.Scene_Shop_sellingPrice = Scene_Shop.prototype.sellingPrice;
Scene_Shop.prototype.sellingPrice = function() {
if (this._item && this._item.sellPrice !== undefined) {
return this._item.sellPrice;
}
return Yanfly.Shop.Scene_Shop_sellingPrice.call(this);
};

I know what I need it to do is utilize the new set buy price to then also set the sell price. From what I can tell this is the portion of the Conditional Shop Price that is calling the new buy price:
Yanfly.CnShPr.Window_ShopBuy_price = Window_ShopBuy.prototype.price;
Window_ShopBuy.prototype.price = function(item) {
var price = Yanfly.CnShPr.Window_ShopBuy_price.call(this, item);
price = this.processConditionalShopPrices(item, price);
return price;
};

So while I logically know what needs to happen, my coding language knowledge ends at SQL, which is very unhelpful in a JS engine haha.

Any ideas/has anyone accomplished this before?

(Also my apologies to the moderators if this is a better fit for the JS Request Section.)
there is a plugin that can set the price in the notetag of the item.

like if a item cost 5000, the sell price as default = 2500.
through a notetag, you can do <sellprice: 5000>

I'm not sure if its also in the yanfly helpfile of the shopcore or another one,
or from SRD if not mistaken, which I can check later.

but double check the helpfile if there is something about item notetag
to set a different sell price or buy price that was also there, at least for
the YEP_Multicurrency plugin that also works with variables.
@ShadowDragon yes, Yanfly's Shop Core already let's you set a fixed sell price through notetags. That's where the this._item.sellPrice in the first code piece @TheLastYuriSamurai posted comes from. However as I understand it they don't want to set fixed sell prices but rather have them dependent on the conditional buy prices.

You could try putting the following as a plugin above the shop core. (Note though that I was too lazy to actually set up a test project with conditional prices, so it is untested 😅)
JavaScript:
Scene_Shop.prototype.sellingPrice = function() {
    return Math.floor(this.buyingPrice() / 2);
};
@ShadowDragon I'm afraid @eomereolsson is correct. I need the sell price to take the yanfly's conditional prices, take the result, then divide by 2.

I'm afraid I tried putting the plugin both above the shop core and below, with no luck.

Original thread: https://forums.rpgmakerweb.com/threads/yep-conditional-shop-prices.152327/