In Progress

Drupal 6 Ubercart validation of item number in cart

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 "[url removed, login to view]" to "[url removed, login to view]") when a user press "Checkout" button.

<case 1>

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.

<case 2>

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 "[url removed, login to view]" the validation must be applied to it also or the user must be redirected back to "[url removed, login to view]". I trid this module [url removed, login to view] but it doesn't validate when the user goes to "from [url removed, login to view]" to "[url removed, login to view]"

and just from "[url removed, login to view]" to "[url removed, login to view]"

I need somebody that can fix this module for me, or ideally write a custom module with javascript code I can implement.

Thanks.

Skills: Drupal, Javascript, jQuery / Prototype, PHP

See more: javascript ubercart drupal, validation drupal6 ubercart, ubercart validation drupal, drupal popup ubercart, drupal validate cart items, type of button in php with code, less than 3 press, code org 6 a, code org 6, drupal ubercart cart validation, javascript less than, validation, javascript validation, drupal 6 to drupal 7, javascript url example, drupal user module, code review javascript, javascript code review time, drupal page user, drupal type, validation page, javascript code validation, javascript validation example, popup javascript code, drupal button

About the Employer:
( 5 reviews ) Koto-ku, Japan

Project ID: #1535959

Awarded to:

Ayeshrajans

Hello there, You won't believe that your module is already built! Please see the private message for the demo link. Thank you. Sincerely, Ayesh.

$40 USD in 1 day
(32 Reviews)
5.1

3 freelancers are bidding on average $53 for this job

EyeFish

Please check your PMB. Waiting to serve you. Thanks.

$50 USD in 1 day
(53 Reviews)
6.5
zeet2020

check your pm

$70 USD in 5 days
(8 Reviews)
4.3