Menu Close
    Searching for an experienced Opencart Development Company ?

    Opencart Product Quantity Restriction

    Opencart Product Quantity Restriction module allows you to set quantity restriction on products. The admin has various options through which it can set limits for its customers. The registered users can send a request to the admin to change their limits. The customer can mention the minimum & maximum limits in the request. The admin can even set product quantity rules for any particular customer groups.

    Features

    • Set the module status as enabled or disabled
    • The admin can define product quantity rules only for the registered users
    • Minimum and maximum quantity for the customers and customer groups can be set
    • The registered users can send a request with an optional message to admin
    • The admin view, delete, approve or reject customer request
    • Configure product quantity rules for guest users
    • Add any category or type of products to the restriction list
    • Include any number of products in the restriction list
    • Use the filter option to find a customer, customer group or customer request
    • Automated notification emails to the admin and users about their request

    Installation

    First, extract the module zip. Then upload admin and catalog folders to the root directory of opencart.

    Upload file
    Second, log in to the admin account then go to Extensions> Extension installer and upload the XML file. The XML file is inside the ocmod folder.
    Upload XML file

    Third, after uploading the XML file. Go to the Extensions > Modification then click on Refresh icon.

    Refresh
     

    Fourth, after that in Admin panel go to System -> Users -> Usergroup. And edit ‘Administrator’ then select all for both Access and Modify Permission. Then click the Save button.

    Group access

    Finally, navigate to Extensions > Modules. From here the Module List will open, find Product Quantity Restriction. And click install/uninstall button. 

    Install module

    language translation

    Opencart Product Quantity Restriction module supports multiple languages. To set up different language for this module, please click here to view the instructions.

    Module Configuration

    After successfully installing this module in your Opencart. Now navigate to Extensions > Modules > Product Quantity Restriction and click Edit button.

    Edit module

    From here you will see the following option:

    Status – Set this to Enabled to use this module or else set it to Disabled, if you don’t want to use.

    Default Minimum Limit – This is the default minimum quantity limit for all products and all users.

    Default Maximum Limit – This is the default maximum quantity limit for all products and all users.

    Time – It is the default initial time after which previously made orders will be compared to check buy limit of the customer.

    After editing all the necessary settings, kindly click Save button on top to apply changes.

    Product quantity restrictions

    admin management

    Customer List

    The admin can access this option by navigating to Product Restriction > Customer List. Here the admin can find all the list of customers who have product quantity restriction. The admin can add any registered user(s) of the website to this list by clicking the Add button on top.

    Use Filter button to search any specific customer. Using their id, customer name, maximum and minimum limit.

    To edit any existing customer restriction click the Edit button under Action column.

    Add/Edit Customer

    In order to add a new customer to the list, click ADD button on top. Furthermore, to edit an existing customer, click EDIT button under Action column. After that, you will see product restriction for customer settings. Enter the following details. Please refer to the screenshot below:

    Customer Name – Here you have to enter the name of any registered user.

    Default Minimum Limit – This is the default minimum quantity limit for the customer.

    Default Maximum Limit – This is the default maximum quantity limit for the customer.

    To set any product specific quantity restriction for this customer. Click Add button below and enter the Product Name. After that enter the Minimum Limit and the Maximum Limit for that specific product.

    Click Save button on top to save your changes.

    Customer edit

    Customer Group List

    To access this option by navigating to Product Restriction > Customer Group List. From here you can find all the list of customer groups who have product quantity restriction.

    The admin can add any new customer group by clicking the Add button on top.

    Use Filter button to search any specific customer group. Using their id, customer group name, maximum and minimum limit quantity.

    In order to edit any existing customer group click the Edit button under Action column.

    product quantity restriction on customer group list

    Add/Edit Customer Group:

    To add a new customer group to the list, click ADD button on top. Moreover to edit an existing customer group, click EDIT button under Action column. After that, you will see product restriction for customer group settings. Enter the following details. Please refer to the screenshot below:

    Customer Group– Here you have to select any one of the available customer group using the drop-down menu.

    Default Minimum Limit – Set the default minimum quantity limit for this customer group.

    Default Maximum Limit – Set the default maximum quantity limit for this customer group.

    To set any product specific quantity restriction for this customer group. Click Add button below and enter the Product Name. After that enter the Minimum Limit and the Maximum Limit for that specific product.

    Click Save button on top to save your changes.

    Customer group edit

    Customer Requests List

    To this option by navigating to Product Restriction > Customer Requests List. From here you can find all the customers who have requested to change their restrictions. The admin can view any customer request by clicking on the View button under Action column.

    Use Filter option to search any specific customer request. Using their id, customer name, maximum and minimum limit quantity.

    To delete any customer request, click the Delete button on top. Please refer from the below screenshot:

    customer requests list

    Manage Customer Request:

    In order to Approve or Reject the customer request, click on the View button.

    A pop-up display will appear. It will show the name of the customer who has requested for the change in product quantity.

    If a customer has sent any message it will be visible. The admin has an option to send a reply message to the customer. Click Approve button to accept its request or else click Reject to decline.

    Restriction request

    User front-end View

    When a user enters its desired quantity. And that quantity is either less or more than the allowed quantity. The customer will get different kind of error messages on top. The user can either enter the allowed quantity or can send a request to admin. Please note- Only registered users can request for changing their product quantity restriction.

    Product Restriction Priority:

    Since there many different rules set for product restriction in the back-end. These rules will apply in the following order:

    First -> Customer Product

    Second -> Customer Default

    Third -> Customer Group Product

    Fourth -> Customer Group Default

    Fifth -> Module Setting Default

    Minimum Quantity Error
    From the screenshot, you can see that the user wants to buy only one product. The error message “You have to buy minimum 10 products” is being displayed on the top.

    Minimum quantity error

    Maximum Quantity Error

    From the screenshot, you can see that the user wants to purchase 20 products. The error message “You can buy maximum 15 products” is being displayed on the top.

    Maximum quantity error

    Subsequent Products

    If a user tries to buy the same product again with a new order. It will get an error message on top displaying “You cannot buy more of this products.”

    error message

    Contact Admin:

    The registered user can create a request for changing its restriction. After clicking the Contact Admin link in the error message, a pop-up display will appear. From here the user has to enter the requested minimum and maximum quantity values. The user can also enter any custom message for the admin. Click SEND button to deliver the request message to the admin.

     
    Pop up display

    After clicking the SEND button. A confirmation message will appear as shown in below screenshot:

    Success message

    Subsequent Requests

    Once a user sends any subsequent request for changing its product quantity restriction. An error message is visible on top as “Admin has already been notified of your request.”  The user should wait for the admin to respond to its request.

    Contact admin

    Furthermore, if you have any queries about this module, please feel free to write at HelpDesk System.

    Current Product Version - 3.1.0.0

    Supported Framework Version - 2.x.x.x, 3.x.x.x

    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Table of Content

    Hide Index