Add to cart( buyproductdialog ), not postbacking

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Add to cart( buyproductdialog ), not postbacking

Post by William_firefold » Wed Jan 13, 2010 8:56 am

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Add to cart( buyproductdialog ), not postbacking

Post by mazhar » Mon Jan 25, 2010 11:03 am

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.

Thistle3408
Lieutenant (LT)
Lieutenant (LT)
Posts: 77
Joined: Mon Apr 19, 2010 4:52 pm

Re: Add to cart( buyproductdialog ), not postbacking

Post by Thistle3408 » Thu Jun 24, 2010 1:09 pm

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?

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Add to cart( buyproductdialog ), not postbacking

Post by Shopping Cart Admin » Thu Jun 24, 2010 4:29 pm

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
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

Thistle3408
Lieutenant (LT)
Lieutenant (LT)
Posts: 77
Joined: Mon Apr 19, 2010 4:52 pm

Re: Add to cart( buyproductdialog ), not postbacking

Post by Thistle3408 » Thu Jun 24, 2010 7:02 pm

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

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Add to cart( buyproductdialog ), not postbacking

Post by jmestep » Fri Jun 25, 2010 7:04 am

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 <!-- -->
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Add to cart( buyproductdialog ), not postbacking

Post by jmestep » Fri Jun 25, 2010 7:55 am

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>
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply