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.
|
|
|
|
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 |
|
|
|
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. |
|
1 user thanked Naveed Ashraf for this useful post.
|
|
|
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...
|
|
|
|
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 |
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close