# Summary
Ubercart Restrict quantity module allows the user to restricted products to add to cart.

# Project URL

https://www.drupal.org/project/uc_restrict_qty
# Where is the code?

https://github.com/kalaiselvannatarajan/drupal/tree/master/uc_restrict_qty
# Estimated completion date
Completed

# Dependencies

Ubercart(https://www.drupal.org/project/ubercart)
# Who's doing the port?

Nil
# D8 roadmap

Unknown
# Background and reference information

Comments

kalaiselvann’s picture

Issue summary: View changes
kalaiselvann’s picture

Assigned: Unassigned » kalaiselvann

Currently, I have worked on port to Drupal 8

kalaiselvann’s picture

Status: Active » Postponed
kalaiselvann’s picture

Issue summary: View changes
truthdev’s picture

HI there!
Need to restrict the product quantity in my ubercart store built in drupal 8.
Just used the code from gitbub link above.
Enabled module and clicked on cart button.
The message following appears:
The website encountered an unexpected error. Please try again later.

In error_log i see the following entry:
Error: Call to undefined function uc_cart_get_contents() in /**/modules/drupal-master/uc_restrict_qty/uc_restrict_qty.module on line 424 #0 /**/core/lib/Drupal/Core/Extension/ModuleHandler.php(539): uc_restrict_qty_form_alter(Array, Object(Drupal\Core\Form\FormState), 'uc_cart_view_fo...')

Any help will be much appreciated !