Page 1 of 1

Add to cart( buyproductdialog ), not postbacking

Posted: Wed Jan 13, 2010 8:56 am
by William_firefold
On our product page, we changed something, somewhere which prevents postbacks from working. If we add something to the cart, it doesnt pop up in the minibasket. if you refresh the page, it is there as normal. This leads me to believe the code is still working ok, but something is obstructing the javascript.
Any ideas? What part is responsible for calling the ajax to add stuff to cart?

update: version is 7.0.3. This feature worked yesterday, and my coworker says app_code hasnt been touched. I tried the hotpatch for 7.0.3 but no changes.
in addition, product reviews panel does not become visible when the link is clicked. this may be some sort of global ajax issue.

Re: Add to cart( buyproductdialog ), not postbacking

Posted: Mon Jan 25, 2010 11:03 am
by mazhar
It could be some AJAX problem, after adding product to cart you need to update the mini-basket control as well because if AJAX is enabled then you would need to update those controls which needs to reflect the new information but are not in same update panel.

Re: Add to cart( buyproductdialog ), not postbacking

Posted: Thu Jun 24, 2010 1:09 pm
by Thistle3408
Mazhar,

You wrote:
It could be some AJAX problem, after adding product to cart you need to update the mini-basket control as well because if AJAX is enabled then you would need to update those controls which needs to reflect the new information but are not in same update panel.

I'm still pretty new to some of this.

How does one update the stuff in one panel when the information in another panel is changed?

Re: Add to cart( buyproductdialog ), not postbacking

Posted: Thu Jun 24, 2010 4:29 pm
by Shopping Cart Admin
Hello,

Have you tried re-setting the page from the admin side?

Backup the page first as it will remove your changes to the file.

/Admin/Website/CustomizedPages.aspx

Re: Add to cart( buyproductdialog ), not postbacking

Posted: Thu Jun 24, 2010 7:02 pm
by Thistle3408
Mike,

I am not sure what you mean "re-setting the page from the admin side".

It seems you totally missed my question.

If I have two (or more) panels on the page, update something (e.g., qty) on one panel....how do I get it to update a separate panel on the same screen?

That still might not be a clear question..I'll keep trying to define the question better if you keep trying to answer.


Thx

Re: Add to cart( buyproductdialog ), not postbacking

Posted: Fri Jun 25, 2010 7:04 am
by jmestep
We just ran into a problem with two different sites where conlibs had been commented out instead of removed and they were interfering with the post back. One was the simplesearch in the header because it was moved to the left nav. The other was in Show Product 1.htm where all the review code was commented out instead of removed. Sometimes it just doesn't work to comment out conlibs or sections of conlibs with <!-- -->

Re: Add to cart( buyproductdialog ), not postbacking

Posted: Fri Jun 25, 2010 7:55 am
by jmestep
On updating one panel when another is updated, you can do something like the following- we do it when we put the minibasket in the store header
<Ajax:UpdatePanel ID="UpdateBasket" runat="server">
<ContentTemplate>
[content goes here]
</ContentTemplate>
</Ajax:UpdatePanel>