Closed (fixed)
Project:
Ubercart Price Per Role
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2012 at 16:07 UTC
Updated:
4 Jan 2013 at 22:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
ryndog commentedI should mention that I have tried viewing the catalog by using the 'Wholesale' view option as an admin, and also logging in a user account that is set to the role of Wholesale, therefore ruling out its a user permision issue.
Comment #2
Bandy commentedI have this problem with UC 7 RC 3 and 4 but with RC2 works fine.
Comment #3
yakbuttertea commentedHave the same problem. For me it worked good with the RC3 and Ubercart Price Per Role 7.x-1.x-dev (2010-Nov-12) version somehow not with the latest version. But now with RC4, no version is working correctly. With the patch on http://drupal.org/node/1366378 the price is showing correctly but when item added to cart, the wrong price is shown (default, not according to role).
Comment #4
Bandy commentedInfo: Also the problem with Ubercart 3.0
Comment #5
ParisLiakos commentedSeems ubercart doesnt use sell_price when something is added to cart, but price..i wonder if it was always like that or this behavior just changed
Comment #6
ParisLiakos commentedComment #7
yakbuttertea commentedTested and works like a charm thank you rootatwc.
UPDATE: if you use attributes it doesn't work.
Comment #8
Bandy commentedThank you for the patch rootatwc.
Comment #9
ParisLiakos commentedoh, i didnt have attributes when making the patch.if i find time i will try to check it as well
Putting it back to needs work according to #7
Comment #10
caw67 commentedworks!
Comment #11
jboeger commentedSo what is the current status with this patch? It works unless you are using attributes?
Thanks in advance.
Comment #12
anthonyjhall commentedDoes anyone have ideas on how to make this work with attributes?
Comment #13
theladebug commentedHi -
This is because the most recent version of ubercart no longer supports hook_uc_cart_item.
I've written and attached a patch to solve this issue by using hook_uc_product_alter instead.
Comment #14
theladebug commentedor here it is with the proper naming convention
Comment #15
yakbuttertea commentedTested and works great!
@theladebug: Thank you so much... Now we can have a more elegant site :)
Comment #16
rexgonzaga23 commentedThanks #14 the patch worked ...
Comment #17
websiteadminguy commentedApplied #14, still have same issue.
Role price shows in the "price" field, the display price is the default value. Value added to cart is the default.
Doesn't work on products with attributes or ones without.
Ubercart 3.1, Drupal 7.14
Any input would be appreciated, thanks!
Comment #18
yakbuttertea commentedI have UC 3.1, D7 and 7.x-1.x-dev (2011-Sep-06). I believe it is the latest version of UC price per role and followed #14 exactly and it works great. What version of UC price per role do you have?
Comment #19
websiteadminguy commented7.x-1.x-dev 2011-Sep-07
Comment #20
jboeger commentedSame as #17 for me... applied patch but I still see the default pricing and default price is added to cart.
I need this to work pronto, bounty available!
Comment #21
DrupalDummie commentedSorry if this is a dumb question but that's my style lol. How do you install this patch listed in #14 because I tried and failed due to a gross inability to do simple things.
Comment #22
DrupalDummie commentedThis is the error message I get. What am I doing wrong?
Comment #23
g089h515r806 commented#5 patch works.
Comment #24
DrupalDummie commentedThank You g089h515r806 that patch applied!
But I still have the same issue. But I found the patch that did fix my issue here... http://drupal.org/node/1366378#comment-6275576 in #3 comment
Comment #25
katlian commentedThank you rootatwc and ladebug! I have been struggling with this all morning. Applied both patches (#5 and #14) and it works perfectly.
Comment #26
davident commentedJust patched #5 and #13 against 7.15 and Ubercart 3.1 on a site with many attributes and everything is working great
Comment #27
jpschroeder commentedFor people still having trouble with this, we found an error that made the module not working when the nid and vid get offset:
This is on line 293 of the price per role module. You see it sets the node array by nid, but earlier it created that array using the vid. A quick change fixes it:
Hope that helps someone out there who is pulling their brains (as we did)
Comment #28
Dan Z commentedYes, #27 is covered in #1366378: Per role prices wont show in node edit page. The patch there also makes sure that $node->vid is fetched.
Comment #29
Dan Z commentedLots of people report that the patches work, and they work for me, too, so changing status.
Comment #30
DevJoshLopez commentedwhen will this be committed to the dev version?
Comment #31
DanZ commentedIt's ready to be committed, but you have to get the maintainer's attention and time: http://drupal.org/user/246492. Good luck. He's very busy.
Comment #32
DanZ commentedCommitted #5 and #14. I'll be co-maintaining 7.x-1.x.