logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
kevin26034224  
#1 Posted : Thursday, August 15, 2019 10:38:44 AM(UTC)
kevin26034224

Rank: Member

Groups: Registered, Developers
Joined: 7/26/2019(UTC)
Posts: 20

Thanks: 2 times
Issue 1: I am unable to save a maximum quantity value in the Additional settings section of the Edit Product page.
Issue 2: On my product page i have the "Buy Product Dialog" thingy. I cannot put in a quantity greater than 999, which must be some default value for the control. This lead me to the maximum quantity setting, which i can put a value in but it does not save.

I have inventory control disabled. Which may have something to do with the inability to save the maximum quantity.
However, I don't understand why there is a limit on the buy product dialog quantity.

Please advise.

Thank you.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Katie S  
#2 Posted : Thursday, August 15, 2019 11:46:33 AM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
The 999 purchase limit is something that must have been coded into the page. It should be the value you've entered for the product. I have reported issue ID AC9-1241

Thanks for letting us know. It should be fixed in an upcoming service release.

Katie


UPDATE: It will only save on the product page if the value entered is 9999 or less. I made a note of that in the bug report. What value are you trying to enter?

Edited by user Thursday, August 15, 2019 11:52:23 AM(UTC)  | Reason: Not specified

Thanks for your support!

Katie
Secure eCommerce Software and Hosting
Naveed Ashraf  
#3 Posted : Monday, August 19, 2019 8:56:07 AM(UTC)
Naveed Ashraf

Rank: Advanced Member

Groups: Admin, Administrators, Developers, Registered, HelpDesk, Authorized User
Joined: 7/31/2019(UTC)
Posts: 77

Was thanked: 8 time(s) in 8 post(s)
To fix the issue, please open the file ~/Website/Models/ProductModels.cs

and look for Quantity property in BuyProductDialogModel class.

There is a range validator specified for this field, *[Range(1,999)]*
this is creating the issue. Removing it will fix the issue. This attribute is not needed.
Thanks for your support!
Naveed Ashraf
Ablecommerce.com
Developer Assistance Available
thanks 1 user thanked Naveed Ashraf for this useful post.
kevin26034224 on 8/19/2019(UTC)
kevin26034224  
#4 Posted : Monday, August 19, 2019 8:59:06 AM(UTC)
kevin26034224

Rank: Member

Groups: Registered, Developers
Joined: 7/26/2019(UTC)
Posts: 20

Thanks: 2 times
Is rebuild or compile required?
We currently are using out of the box v9 code...
Katie S  
#5 Posted : Monday, August 19, 2019 4:45:19 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Yes, anytime the code is changed in one of the .cs files ( ~/Website/Models/ProductModels.cs) then you will need to recompile.

If the change is in one of the view files, then it isn't necessary. ( ~/Website/Views/Category/Index.cshtml)

Let me know if you have any questions.

Katie
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
Users browsing this topic
Guest (5)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.