Minimum and Maximum Total

Contrib type: 
Module
Status: 
Complete and working
Moderation: 
Awaiting moderation

Downloads

Latest version: 
2.0
Compatibility: 
Ubercart 1.x
Compatibility: 
Ubercart 2.x

Minimum and maximum number of cart items required/allowed to checkout

v1.2 - I have add maximum checkout
2.0 - Compatible Ubercart 2.x


PreviewAttachmentSize
uc_total_min.tar.gz1.16 KB
uc_total_min-2x.tar.gz1.23 KB
fred0's picture
Offline
Joined: 07/05/2009
Juice: 10
An update to the 6.x version

Hi. I was testing your 6.x version and found that it wasn't as flexible as I'd like it to be. I've attached an updated version here that makes the following changes:

  • Move settings to checkout settings page instead of cart settings page.
  • Place setting fieldset inside general checkout fieldset. This is to overcome the fact that the form elements have no weight and the uc_total_min form items were appearing below the submit button.
  • Add a custom error message field.
  • Change the names of the form variables so that they are easier to identify in the database and reduce the likelihood of naming conflicts.
  • Add uc_total_min.install file with update function to change variable names for users with previous installs.
  • Alter some of the name and description text on the forms for clarity.
  • Re-work the the checkout validation to be simpler and to add the custom error message display. I also removed the || !variable_get('uc_checkout_enabled', TRUE) from the if statements because I couldn't see its purpose.
  • Remove unused and commented out test code.

Cheers.

AttachmentSize
uc_total_min.zip 2.06 KB