Closed (won't fix)
Project:
Ubercart Userpoints
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2009 at 16:12 UTC
Updated:
23 Jan 2011 at 14:01 UTC
I am a noob in regards to rules.
How would I configure the following:
Whenever $user->points < 100, then print a message to the screen or have a block appear.
I want this to happen regardless of the event. So in this case, the event is the condition.
is there a way to make this happen?
Ultimately I would like an item placed in one's shopping cart which I think I can do with cart links.
Comments
Comment #1
bmagistro commentedI am going to leave this as active for now, but I am thinking this is a "won't fix" item. I am not familiar with cart links, so going on what I do remember... To do this I would probably write a custom module with a on checkout hook_checkout (or something like that) if (points < value) then (add item $0.00 to cart, show block, display message, etc) This when true option is where I am not sure how it could be made generic enough to be a module. I can see lots of people asking for different things. It might be easier to try and extend actions/rules so that the action is if points (<,>,=,etc) , then you can go in and add an action/workflow in the admin interface. I'm not sure what the right answer is, just things to consider.
Comment #2
socialnicheguru commentedI just wrote q custom block for this. I can use the same php in a ruleset using php as a condition.
Comment #3
bmagistro commentedGlad to hear you got this working the way you wanted.