Items sold in store not giving gold??

I am trying to set up a basic store just to experiment with them a bit, however when I sell items from my inventory that the store does not sell, no gold is added to my character. This only occurs with items I have created, and does not happen when I sell items that were pre-made such as a potion. For example. I created an item I intend to use as a crafting material called "White Leaf". The store I created does not sell White Leaf, however if I go to sell the item to the store, it will let me sell it, but no gold is added to my inventory. If I make is so the store sells white leaf, then it will put gold in my invetory, but only a percentage of the buy value. How do I make it so I can sell these items, and how do I control the % of the value received for sold items to a store. Below is a screenshot of the database entry for "White Leaf" the item I want to sell to the store.  


Screenshot (3).png
you have the price set to 1 gold coin.  When you sell an item, it sells for half its buy price (so half a gold coin) and gets rounded down to an integer (so 0).
Nice background!


Like Shaz mentioned, the default sell price is 50% and 50% of 1, rounded down, is 0, which is probably why you are seeing what you are seeing.


Sell price percentage can be adjusted in the rpg_scenes base script; this is the method you are looking for:

Code:
Scene_Shop.prototype.sellingPrice = function() {
    return Math.floor(this._item.price / 2);
};

Original thread: https://forums.rpgmakerweb.com/threads/items-sold-in-store-not-giving-gold.59480/