You have chosen to sponsor your bid up to a maximum amount of .
I have a Drupal6 site using ubercart 6.x-2.7.
I need to validate the number of items in cart before they go to checkout page (from "example.com/cart" to "example.com/cart") when a user press "Checkout" button.
If the number of the item in the cart is less than 3 I need to show a popup message "Are you sure you want to proceed with only 3 items?" and the user must press OK button to go to the checkout page.
if the number of the item in the cart is more than 5 I need to show a popup message "You can't proceed with more than 5 itmems at the same time please remove some items from your cart" and prevent users from going to checkout page untill the user has only less than 5 items in the cart.
One important thing is that when the user manually type the URL "example.com/cart/checkout" the validation must be applied to it also or the user must be redirected back to "example.com/cart". I trid this module http://drupal.org/project/uc_moq but it doesn't validate when the user goes to "from exmaple.com/cart" to "example.com/cart/checkout"
and just from "exmaple.com/cart/checkout" to "example.com/cart/checkout/review"