The attached module allows Ubercart store administrators to set minimum subtotals per user role for proceeding to checkout.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | uc_roleminimum.zip | 2.68 KB | dabblela |
| #1 | uc_roleminimum.tgz | 2.07 KB | dabblela |
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | uc_roleminimum.zip | 2.68 KB | dabblela |
| #1 | uc_roleminimum.tgz | 2.07 KB | dabblela |
Comments
Comment #1
dabblela commentedModule is attached.
Comment #2
dabblela commentedUpdating status
Comment #3
WebNewCastle commentedHey! How are you?
Thanks for your work and interest in contributing to Drupal in this manner.
I'm just here to volunteer for a bit, but I think someone else more "in the know" will probably ask that you include more in a "motivation message".
In the meantime, I think this looks pretty awesome. And I know that I've seen more than one post in forums asking for this particular feature - a similar one is for roles and pricing. I'm looking forward to looking through this more and testing it out. One thing I did notice - before you release this - I think it may be better to change the package name to one of the other Ubercart (non-core) related categories.
Sincerely,
Matt Winters
Comment #4
dabblela commentedThanks for the feedback! That was on my to-do list and completely slipped my mind before I uploaded.
I've updated to move it to the "Ubercart - extra" package.
Additionally, here's my motivation:
This module was specifically created to facilitate a wholesale feature on an Ubercart site. Wholesalers receive special pricing (with the Price per Role module) but need a minimum order amount. That said, allowing a minimum order on a per role basis makes it possible to create all kinds of role-based pricing structures.
Comment #5
avpadernoHello, and thank you for applying for a CVS account.
As per requirements, the motivation should include a description of the module features (more than two sentences), and a comparison with the existing solutions.
Comment #6
dabblela commentedThis module was specifically created to facilitate a wholesale feature on an Ubercart site. Wholesalers receive special pricing (with the Price per Role module) but need a minimum order amount. That said, allowing a minimum order on a per role basis makes it possible to create all kinds of role-based pricing structures.
This module allows a store administrator to set a minimum subtotal a user needs to have in their cart in order to proceed to checkout. If a user has more than one role, it looks for the highest minimum amount they must meet. Additionally, it provides an option for not taking the authenticated user role into account if a user has additional roles. That way, for instance, a store could say all authenticated users must have a $500 minimum order but "VIPs" can have a $250 minimum order, even though technically "VIPs" would also authenticated users.
Currently, Ubercart provides an option for a global minimum checkout amount, but this is inflexible. There are no other contributed solutions for achieving this functionality.
Comment #7
avpadernoIs there any reason the code of the proposed module should not be part of Ubercart? Did you open a feature request (or task) in Ubercart issue queue?
Comment #8
dabblela commentedAdded a feature request to the UC issue queue: http://drupal.org/node/984756
No response in a couple of days - at this point I don't know that there is room for feature requests in the UC development cycle with Drupal Commerce upcoming.
Comment #9
longwaveI would be willing to accept this as a new feature patch to Ubercart Price Per Role, as it seems like a good fit to be included directly in that module.
Comment #10
dabblela commentedSounds good to me.
Comment #11
nelslynn commentedGetting the following error with uc_roleminimum.zip, using Drupal 6.19 and Ubercart 6.x-2.4
Fatal error: Cannot use string offset as an array in /public_html/includes/form.inc on line 990
Comment #12
avpaderno