Download & Extend

Setting up rules for ubercart userpoints using CA or rules modules in D6

Project:Ubercart Userpoints
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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

#1

I 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.

#2

I just wrote q custom block for this. I can use the same php in a ruleset using php as a condition.

#3

Status:active» closed (won't fix)

Glad to hear you got this working the way you wanted.