News:

Support the VirtueMart project and become a member

Main Menu

limit the number of products a user can buy

Started by 6.522, April 06, 2022, 15:55:58 PM

Previous topic - Next topic

6.522

Hello, is there a plugin that lets you limit the number of products a user can buy? For example one product per user?
Regards

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products


pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products


pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

6.522

did't ask ;) but I'm using it (AwoCoupon) and personally don't see an option to achieve that.. but maybe I'm missing something

Studio 42

You can set Maximum Purchase Quantity in the product settings

6.522

yes but user can make another order and buy the product again ;) so this will work only partiary

Jumbo!

In that case, you have to manage it using a custom plugin.

GJC Web Design

code a plugin triggered by the addtocart to check if the current logged user has already this pid in their history .. if so display an error message
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

It's not possible to full prevent a use to buy more then 1 using any trick
You create a new account and buy again using this account and voila.
Even checking the IP is not safe, because you can use different mobile phones
Use my solution and add a warning in the product that you do not delivery this product more then 1 time

GJC Web Design

QuoteYou create a new account and buy again using this account and voila.

unless u use a "private" shop .. i.e. all registrations are invite or admin approved
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

6.522

well you are both right actually ;) Studio 42 pointed out correctly that creating second account would allow to make another order.. but it's not my case because  - as GJC Web Design wrote - all users on my site must be approved by Admin so creating a plugin according the the GJC Web Design instructions would do its job :)
unfortunately my coding skills are not very hmm sophisticated ;) what would be the estimated cost of such a plugin?

Studio 42

For the creation of the plugin, it depends on the options you need.
Eg. If the quantity is still 1, then checking all old orders is the only query to write
Do you need to check all products or just some?
Do you need a category as a filter (then you can create a query using a specific category (unpublished)
Basic code for a plugin + package requires 4 hours
Each option is 1/2 to 1 hour.
So minimum 150€ but can be 200€(or more, if you need more options)