negative quantity balance - major problem

21.12.2016 03:23
#1
victorybadges
Joomshopping forum user no avatar
Name: Nick
09.07.2012
Posts: 263
Quote
negative quantity balance - major problem

Hello JS forum

My buyers are able to order more quantity than the balance of the product item

eg stock quantity (before order) 4; order quantity 7; stock quantity (after order) -3

it should not let the buyer order more than 4 with a message stating cannot order this quantity, order a lower quantity

please help as I am sure this function was working in the past

I am on JS 4.11.6

thank you kindly
regards Nick

 
21.12.2016 08:17
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25938
Quote
Aw: negative quantity balance - major problem

Configuration / products

Hide products which are not avaible on the stock: Y
or
Hide buy button when product isn't available in stock: Y

 
22.12.2016 03:48
#3
victorybadges
Joomshopping forum user no avatar
Name: Nick
09.07.2012
Posts: 263
Quote
Aw: negative quantity balance - major problem

thank you
I used option 2
that does work as it gives me this message

Error
Some products can not be delivered in the quantity ordered
The maximum order quantity is 2.

However it reveals to the buyer how much stock is available
How can I remove the 2nd line

 
22.12.2016 07:55
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25938
Quote
Aw: negative quantity balance - major problem

No possible.
or change core

components\com_jshopping\models\cart.php

function add

....
JError::raiseNotice.....

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.