Needs work
Project:
Ubercart Userpoints
Version:
6.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2010 at 21:20 UTC
Updated:
26 Jul 2011 at 12:42 UTC
Hi all, I'm stuck with a problem.
Say I have a price of 5€ including vat, the price excluding vat (20%) is 4.17.
I installed userpoints for ubercart and the module calculate the price in points as 4 points (rounded) instead of 5.
Do you think this is a userpoint or vat issue?
Can you point e somewhere toward the solution?
thank you very much
Simone
Comments
Comment #1
longwaveUserpoints Payment uses $node->sell_price to calculate the points, which is always the ex-VAT price. Instead it should call uc_price() to allow the price to be altered by other modules such as uc_vat.
Comment #2
bmagistro commentedThis seems like it should be configurable so that points are either on base price or on final price with vat for example. I consider the way I did things as product base price. When building this initially, we didn't want a user to earn points for tax or shipping on products, just the product. What are your thoughts on it being configurable in a future release?
Comment #3
bmagistro commentedPostponing due to lack of response. Will consider adding a configuration option in future versions.
Comment #4
designate commentedHow to calculate the points to be awarded when buying a product with the list_price instead of the sell_price? This way I would set lower price when buying larger quantities without reducing awarded points.
Comment #5
gillisig commentedI would very much like it to be configurable, in fact im kinda in need of it right now, unless I find another way to solve it.
Actually now that I think about it, it seems to be working in a strange way, if I user the payment method instead of using a credit card, it only makes sure I got enough to pay for the product cost but not the shipping, how does that make sense if you obviously arent gonna use the credit card to pay for the rest? seeing your not using the discount module and your only payment method for that order will be the user points.
So when I process the order it allows me to go through and I end up with minus userpoints, it says "User (username) lost 6092 points Total now is -1093 points.
Comment #6
gillisig commentedIm updating this to Priority major since I see this as a big bug that should really get fixed.
Comment #7
gillisig commented