MyBB Community Forums

Full Version: Deleted Item Returns Money (NewPoints (2.1.1))
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

We found out today that if we delete/remove an item from a users inventory they are then reimbursed the cost of the item. We do not want to allow this as the items they are buying are deleted after use. They should not be getting a refund.

How would we fix this to make sure they do not receive refunds when items are removed? I cannot find this setting in Newpoints or Newpoints Shop settings.

Thanks!
Why dont u just remove item, then remove the amount of points from the users profile via Newpoints in admin cp?
The following must be the line causing this:
newpoints_addpoints($uid, floatval($item['price'])*$mybb->settings['newpoints_shop_percent']);