Closed (fixed)
Project:
Ubercart Price Per Role
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2010 at 21:49 UTC
Updated:
3 Mar 2010 at 21:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
peroski commentedI second that and would be happy to chip in some funding to help :)
Comment #2
fenstratHere's a patch with a copy of the attribute pricing functionality from d5.
I've basically converted these two commits to d6/uc2.
Also updated the precision on price field to be inline with uc2.
Prices are still using the old uc_currency_format() and will need to be updated to uc_price() for any sort of compatibility with the price alter system (e.g. uc_vat), but will have to have a shot at that when I have more time.
Comment #3
hozt commentedFantastic!
I have applied the patch and have had excellent results with testing. I will do more testing thorough testing in the next couple of days.
Comment #4
longwaveTested briefly and seems to work, as you say it doesn't work fully with uc_vat as it should be calling uc_price(), but this is a good start. Committed to HEAD and will be available in the next -dev release, thanks for the patch!