News:

Looking for documentation? Take a look on our wiki

Main Menu

Only one product and one quantity in cart

Started by vargai75, September 07, 2016, 17:25:54 PM

Previous topic - Next topic

vargai75

Hello,

I use VM3 and Joomla 3.6.2 .

Can somebody help to configuring this:

I need only one product and one quantity on the cart. Maximum number of product=1, and maximum quantity=1 .

Thank you!

GJC Web Design

#1
hide the quantity buttons and input by css

make the shipping only available for quantity 1
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

vargai75

I start with it, but this is NOT solution for me, because if set shipping=1 , but the cart enable to have 2 products....just says error :"We are sorry, no shipment method matches the characteristics of your order."


GJC Web Design

so change the message!

Sorry -- we only allow you for some strange reason to buy one of anything...
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

vargai75

:) Thank you for your answering! if i dont find any other solution, i will take it...

I was thinking the same thing(overwrite lang file), but I wish it would be better not to be able to put it in the basket

My problem its same like this post, bad this is an old post for VM1(another file structure and location)

https://forum.virtuemart.net/index.php?topic=113803.0

vargai75

i try overwrite the lang file, but the BIG problem , VM is sends the order is so... i dont need it, i need disable send order with 2 product...

Jumbo!

#6
Set "Maximum Purchase Quantity" as 1 in each products. That way VirtueMart will not allow the user to increase the quantity above 1.

To allow only 1 product in cart you will have to develop plugin to reject adding of products to the cart if a product already exists or added earlier.