Can't update quantity of cart.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/14/2009 2:04:07 PM
Gravatar
Total Posts 550

Can't update quantity of cart.

Hi Joe

When I want update quantity of the cart in cart.aspx page the Cart is null and return to the AccessDenid page.

Best

Asad

7/9/2009 6:32:43 AM
Gravatar
Total Posts 550

Re: Can't update quantity of cart.

Hi Joe

This error was happened in my local copy because I have to POST merchant ID as "MID" for Saman Bank. I do following change and  it solved.

// moduleId = WebUtils.ParseInt32FromQueryString("mid", moduleId);
moduleId = WebUtils.ParseInt32FromQueryString("mid", true, moduleId);

Best,

Asad

7/9/2009 9:18:51 AM
Gravatar
Total Posts 18439

Re: Can't update quantity of cart.

Hi Asad,

I'll make the same change here to make sure we are only getting our param from the query string. This function ParseInt32FromQueryString is poorly named since it actually by default parses all request params unless you pass in true to make it only look at the query string but unfortunately renaming it would be a breaking change for custom features in the wild, so all I could really do is overload the method to allow passing in this bool. I added this overload not too long ago for this very reason because I had a similar case where there was a form variable and a querysrtring param with the same name and it caused a conflict.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.