setting the discount rate via code
Am trying to add a discount on the product price depending on where are the users are from "filled in the registration form"
Am thinking about fetching the data "state" via hook and altering the discount rate depending on the fetched data.
but I can't figure out where can I set the value of the discount and change the price of an item.
I don't think the rules will be much of a help, since all be adding a lot of conditions to it.
Have you worked through the
Have you worked through the [Product pricing rules](http://www.drupalcommerce.org/node/461) section of the manual?