2 ********************************************************************************
3 ********************************************************************************
9 Ubercart Member Pricing: uc_member_pricing.module
11 --------------------------------------------------------------------------------
14 Allows users with a "manage prices" role to specify per product price
15 adjustments base on either user or role based rules.
17 This price adjustment can be a specic price, a amount offset, or a percentage
18 offset from the original price of the base product (not attribute products,
19 which may already add their own amounts to the result of this modules price
22 It is important to consider the order of precedence when creating these rules.
24 1. Role based pricing overrides the standard Ubercart "sell_price". When a
25 user is a member of multiple roles with a specified pricing rule, then the
26 lowest priced role price is used.
28 2. User based pricing overrides all role based rules.
31 See the TODO.txt for known remaining tasks. If you have ideas, let us know.
33 --------------------------------------------------------------------------------
36 * Brandon Williams http://drupal.org/user/615672
39 original sponsorship by:
41 * Pop Design Works - [ http://popdw.com ]
42 * Stable Step Inc - [ http://powersteps.com ]
45 original development by:
47 * CollectiveColors - http://collectivecolors.com
48 http://github.com/collectivecolors/drupal-modules-uc_member_pricing
53 http://drupal.org/project/uc_member_pricing
56 ********************************************************************************
57 ********************************************************************************
63 Currently this module requires the following Drupal modules be installed
66 * Ubercart - http://drupal.org/project/ubercart
68 --------------------------------------------------------------------------------
70 --------------------------------------------------------------------------------
72 We highly recommend using drush if possible. This will drastically speed up
73 downloading and updating your Drupal packages.
75 See http://drupal.org/project/drush
80 From your root Drupal site directory, run:
83 COMMAND_PROMPT$ drush dl uc_member_pricing
86 The to update, all you have to do is:
89 COMMAND_PROMPT$ drush update
92 This will update any contributed projects that have new releases. This is
93 much better than downloading the packages yourself. Oh, drush is extensible
94 as well, so you can write your own drush modules.
99 Go download the recommended package from the drupal project page. Untar in
100 your sites/all/modules folder or wherever you are putting your modules.
102 --------------------------------------------------------------------------------
104 --------------------------------------------------------------------------------
107 [1]$ cd $TOP_LEVEL_SITE_DIRECTORY
109 -------------------------------------------
110 | To clone this module into a Drupal site |
111 -------------------------------------------
114 # Only if your Drupal project << IS NOT >> a GIT REPOSITORY!!!
116 [2]$ git clone --branch 6.x-1.x http://git.drupal.org/project/uc_member_pricing.git
117 sites/all/modules/uc_member_pricing
119 --------------------------------------------
120 | To import this module as a Git submodule |
121 --------------------------------------------
124 # Only if your Drupal project << IS >> a GIT REPOSITORY!!!
126 [2]$ git submodule add -b 6.x-1.x http://git.drupal.org/project/uc_member_pricing.git
127 sites/all/modules/uc_member_pricing
129 [2.1]$ git commit -m "Adding uc_member_pricing module to project."
131 ---------------------------------------------
134 [3]$ cd sites/all/modules/uc_member_pricing
136 [4]$ git checkout -b $MY_BRANCH $MODULE_TAG
138 # For example, $MY_BRANCH = 6.x-1.x
139 # For example, $MODULE_TAG = 6.x-1.0-beta1
141 [5]$ git status # Your ready for site configuration ( See below )
144 ********************************************************************************
145 ********************************************************************************
151 1. Go to the administration page, [ /admin/user/permissions ], and find the
152 section for the "uc_member_pricing module". Set which roles are able to
153 administer special user or role based pricing at your site. Not that these
154 users can change the price of any product on the site.
156 2. Create your products.
158 3. After you have created your products, you will see a new tab under the node
159 edit page, called "Prices". Go there an start creating your rules. Follow
160 the instructions on the rule add or edit form. These rules become active for
161 the users and roles that they apply to on that page.
163 4. Let us know if you have problems. Use the issue queue at:
165 http://drupal.org/project/issues/uc_member_pricing
167 * Please post any issues you have with this module there.
170 ********************************************************************************
171 ********************************************************************************