This issue was copied from role_discount_issues

Original post (by pyrello):

Hello,

Hello. I am trying to use the uc_discount module to set up a membership role that receives a 10% discount. I am having a couple issues. One is that for some reason you are required to set a start and an end date for the duration of the discount. I don't need a timeframe for the discount as it is permanently applied for users that have purchased that role. Is there a way to disable this?

Also, I am able to set up the discount and a condition. But when I go to add an action, on the first page, I get an empty combo-box under Property. If I click 'next', the page just reloads. Am I doing something wrong?

Here is my drupal environment:
Drupal: 5.10
MySQL database: 5.0.45
PHP: 5.2.5
Web server: Apache
Ubercart: 5.x-1.3
uc_discounts: version from this post http://www.ubercart.org/contrib/143#comment-16767

Appreciate any help. Thanks.

Sean

Update:

I have tested this and can't seem to get role discounts to work. A full audit of the module will take place within a couple of weeks.

Comments

joachim’s picture

I've filed a feature request for permanent discounts: http://drupal.org/node/324230
The problem with no actions is that you need to enable some actions module, and it's unclear:
a) that you need to do this (filed here: http://drupal.org/node/323868 , also a handbook page will eventually explain the model for this system)
b) which modules are action modules
c) what they do.

As for whether role discounts work in the first place, currently testing that :)

joachim’s picture

Status: Active » Closed (duplicate)

Yup, role discounts work, but note that uid 1 has no special privileges: you'll need to give yourself that role even if you are uid 1.

Closing as duplicate as other issues have been filed for the other problems encountered by the OP.

psynaptic’s picture

Great to know that role discounts do work. I was worried that this wouldn't since the original poster couldn't get it to work.

glennnz’s picture

I can't get the discounts to work at all.

I'm using a PostgreSQL database, so had to manually create the tables, and I think I've made some errors doing this. When I add a discount, I get the following:

* warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "uc_discounts_id_seq" does not exist in /Library/WebServer/Documents/includes/database.pgsql.inc on line 126.
* user warning: query: SELECT nextval('uc_discounts_id_seq') in /Library/WebServer/Documents/includes/database.pgsql.inc on line 145.

and I don't progress to setting the discount properties.

Help would be appreciated.

Glenn