Hi!

I need Ubercart admin to optionally assign % discount per registered user. I thought it may be a user profile field used by Conditional Action with uc_discount.module but I do not found a place where to input price calculating PHP code, only the field with + or * is available. I need to multiply price by say $account->profile_discount

Please, give a hint if I'm on a wrong path and there are any per user discount options available. Can I use uc_discount.module to solve the task or I need to implement hook_uc_price_handler myself?

Also, a link to any hook_uc_price_handler documentation or simple examples would save my day.

Thanks!

Comments

Scott M. Sanders’s picture

I believe you can do this by simply checking the user email address or name as predicate condition.

I have a client with the same requirement but have yet to test.

Scott M. Sanders’s picture

Actually I guess my client did test this (using email address) and reports that it works okay. :)

sin’s picture

Condition is not a problem, the discount is. It must be configurable per user in user profile. For example 5% to user1, 12% to user2 etc. The goal is to hide Conditional Actions administration from shop administrator and provide a simple way to set discount by editing user profile.

4kant’s picture

Hi,

I´m looking for a similar solution.

In my case I´m working on a shop with one catalog but many different shop owners (sellers) who share products (not like marketplace where - as far as I know now - sellers sell their own products). I´m about to build this shop with domain access and it´s related modules.
The point is that every seller should be able to offer one single product for which price he likes.
That means that shop A sells this T-shirt A (lets say node ID=100) for 30,- and Shop B sells the same T-shirt (ID=100) for 35,- etc.

Every seller should be able to change the price as he likes - anytime.

Now I have two cases:

  1. Edit the product
    Sellers should not be able to change the origin price - but they should be able to modify it.
    My idea for the edit-case was to have a CCK-Number Field (must think of a user-relation for this field). The discount action-field should fetch the value of this field.

    Wouldn´t token integration for this discount field offer a flexible solution?
    I think it could be a way for sin too...

  2. View the product
    I´m sure I will find a way to do this...

The question of the token integration: Might this make sense?

Thanks for any help

4k

jazzitup’s picture

I wonder why "Calculate product discounts" predicate doesn't have this feature that include user selection by e-mail address?
It only has a selection per role (that doesn't even allow a multi-select of roles), which is in my case not that helpful.
I need a condition to be able to (multi) select my individual users "per se".

I've participated another discussion that could be considered as a feature request regarding this topic:
http://www.ubercart.org/forum/ideas_and_suggestions/14150/new_discounts_...