Group: Forum Members
Last Active: Mon 6 Dec 2021
Posts: 235,
Visits: 750
|
The description for frontend.basket.behaviour says:
"Determines whether basket addition displays message for number of seconds (if numeric), displays no basket (n) or shows the basket (y)"
which means that this value can be a number, it can be 'y', or it can be 'n'.
Unfortunately in line 341 of ProductVersions.ascx.vb there is a check that does not allow for non numeric values in this config setting.
btnAddVersions3.OnClientClick = "ShowAddToBasketPopup(" & KartSettingsManager.GetKartConfig("frontend.basket.behaviour") * 1000 & ")"
I am struggling to understand the intended use of this line of code so not sure personally how to handle 'y' and 'n' values. I am going to put a work around in my code which will just ignore both cases, but could someone who understands the background to this line of code please add the necessary for those two cases please?
For now I will just wrap it for my application:
If IsNumeric(KartSettingsManager.GetKartConfig("frontend.basket.behaviour")) Then btnAddVersions3.OnClientClick = "ShowAddToBasketPopup(" & KartSettingsManager.GetKartConfig("frontend.basket.behaviour") * 1000 & ")" End If
We are always willing to help out the community or pitch in to help you fix a problem. However, if you want a complete solution made such as a code module or new feature added you have two options. Either 1) Reach out to the Kartris internal development team at http://www.kartris.com/Contact.aspx. 2) Contact one of the Kartris approved partners at http://www.kartris.com/t-Worldwide-Developers.aspx. Have fun and good luck coding.
|