Upgraded to 7.0.3 but now can't add to cart!?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
industry
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 37
Joined: Fri Apr 03, 2009 4:17 am

Upgraded to 7.0.3 but now can't add to cart!?

Post by industry » Mon Sep 27, 2010 7:29 am

Hi

Does anyone have a solution i can try to get items added to the basket again?

http://www.geniusnet.co.uk/G-Shot-HD550T-P352.aspx

Notice the Add to wishlist and Add to Cart buttons do not do anything.....i have tried re-uploading the ConLib files before and after the upgrade but it doesn't fix the problem

One thing i have noticed is the link behind the buttons says:
javascript:WebForm_DoPostBackWithOptions(new%20WebForm_PostBackOptions("ctl00$wpm$ShowProduct$ctl09$AddToBasketButton",%20"",%20true,%20"AddToBasket",%20"",%20false,%20true))

Whereas the link behind the add to cart on the related products says:
javascript:__doPostBack('ctl00$wpm$ShowProduct$ctl11$ItemsRepeater$ctl01$Add2Cart$AC','')
Last edited by industry on Wed Oct 13, 2010 5:46 am, edited 1 time in total.

industry
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 37
Joined: Fri Apr 03, 2009 4:17 am

Re: Upgraded to 7.0.3 but now can't log in!?

Post by industry » Tue Sep 28, 2010 5:49 am

Looking around the site, its not just the log in button thats failing to work, i can now no longer add items to the basket/cart

Help :?

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Upgraded to 7.0.3 but now can't log in!?

Post by plugables » Tue Sep 28, 2010 8:56 am

Seems like you upgraded on the live site directly. Not a good idea really.
Anyway ... you probably missed something during the upgrade. Most likely you already had some customizations done on your store. When you upgraded you either did an overwrite or you did not incorporate the updates to those custom scripts manually.
Upgrading a customized site should always be done with lot of attention and care. If you don't have a staging site, It is better to do the upgrade on a test site on your local system first.

industry
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 37
Joined: Fri Apr 03, 2009 4:17 am

Re: Upgraded to 7.0.3 but now can't log in!?

Post by industry » Tue Sep 28, 2010 9:42 am

Any idea how i can get the buttons working again? - i've no idea where to start looking :(

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

Re: Upgraded to 7.0.3 but now can't log in!?

Post by jmestep » Tue Sep 28, 2010 5:46 pm

I was able to add products to the basket.
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

industry
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 37
Joined: Fri Apr 03, 2009 4:17 am

Re: Upgraded to 7.0.3 but now can't log in!?

Post by industry » Wed Sep 29, 2010 2:56 am

jmestep wrote:I was able to add products to the basket.
Hmm, i can add to basket if i click the link within the category pages:
http://www.geniusnet.co.uk/Over-Ear-Style-C170.aspx


But within the actual product, the button wont work (within the productdialogue conlib):
http://www.geniusnet.co.uk/GHP-03B-P328C170.aspx

If you need me to post any files/code just ask - i have access to it all.

Thanks in advance

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

Re: Upgraded to 7.0.3 but now can't log in!?

Post by jmestep » Wed Sep 29, 2010 7:21 am

OK, I couldn't add it from the product page either. In Firefox firebug, I am seeing the error that val is null.

function ValidatorValidate(val, validationGroup, event) {
val.isvalid = true;
if ((typeof(val.enabled) == "undefined" || val.enabled != false) && IsValidationGroupMatch(val, validationGroup)) {
if (typeof(val.evaluationfunction) == "function") {
val.isvalid = val.evaluationfunction(val);
if (!val.isvalid && Page_InvalidControlToBeFocused == null &&
typeof(val.focusOnError) == "string" && val.focusOnError == "t") {
ValidatorSetFocus(val, event);
}
}
}
ValidatorUpdateDisplay(val);
}

Check the code in your two buyproductdialog files and see if they are different from the default Able ones.
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

industry
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 37
Joined: Fri Apr 03, 2009 4:17 am

Re: Upgraded to 7.0.3 but now can't log in!?

Post by industry » Wed Sep 29, 2010 9:51 am

Thanks for looking into this for us

I re-uploaded the default buyproductdialogue files that came with the upgrade and its changed the look and feel but the buttons still don't work.

Is there anything else that controls these buttons?

industry
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 37
Joined: Fri Apr 03, 2009 4:17 am

Re: Upgraded to 7.0.3 but now can't log in!?

Post by industry » Thu Oct 07, 2010 3:38 am

Hi

Does anyone have a solution i can try to get items added to the basket again?

http://www.geniusnet.co.uk/G-Shot-HD550T-P352.aspx

Notice the Add to wishlist and Add to Cart buttons do not do anything.....i have tried re-uploading the ConLib files before and after the upgrade but it doesn't fix the problem

One thing i have noticed is the link behind the buttons says:
javascript:WebForm_DoPostBackWithOptions(new%20WebForm_PostBackOptions("ctl00$wpm$ShowProduct$ctl09$AddToBasketButton",%20"",%20true,%20"AddToBasket",%20"",%20false,%20true))

Whereas the link behind the add to cart on the related products says:
javascript:__doPostBack('ctl00$wpm$ShowProduct$ctl11$ItemsRepeater$ctl01$Add2Cart$AC','')


I'm stuck :cry:

industry
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 37
Joined: Fri Apr 03, 2009 4:17 am

Re: Upgraded to 7.0.3 but now can't log in!?

Post by industry » Wed Oct 13, 2010 5:19 am

Anyone able to help?

Sales are being lost due to them not being able to add to cart

User avatar
s_ismail
Commander (CMDR)
Commander (CMDR)
Posts: 162
Joined: Mon Nov 09, 2009 12:20 am
Contact:

Re: Upgraded to 7.0.3 but now can't log in!?

Post by s_ismail » Wed Oct 13, 2010 5:52 am

I am not sure in your case why its showing such behavior but once i faced such issue due to some customization code, so if you have any customization then give a try by disabling that customized code .

industry
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 37
Joined: Fri Apr 03, 2009 4:17 am

Re: Upgraded to 7.0.3 but now can't add to cart!?

Post by industry » Wed Oct 13, 2010 9:54 am

I finally figured it out

In my left hand nav i had this commented out

<!--[[ConLib:SubscribeToEmailList Caption="Sign up for e-updates" EmailListId="1"]]-->

Then after googling loads of answers, someone said this
So after looking around I found out that I had some panels that were hidden on the page. And in one of those panels, I have a validation control, if a validation control is "hidden" on the page (the panel's visibility is set to false and later made visible) then .NET adds WebForm_DoPostBackWithOptions to the button controls and thus does not work.
So i basically removed the commented out line and it now works :D

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

Re: Upgraded to 7.0.3 but now can't add to cart!?

Post by jmestep » Wed Oct 13, 2010 11:04 am

Ah, yes. We have run into that with people commenting out conlibs instead of removing them.
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

loafintree
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Tue Jun 30, 2009 2:10 pm

Re: Upgraded to 7.0.3 but now can't add to cart!?

Post by loafintree » Thu Oct 27, 2011 9:09 am

I realize this thread is a year old but we're running into the same problem and we don't have any conlib's commented out. We can add to cart once from a product page and then the buttons no longer work for "add to cart" and "add to wishlist". The console is saying 'cannot set property "validationGroup" of null'. Both linkButtons have ValidationGroup="AddToBasket".

We did have some customization done but tried replacing those files with AbleCommerce original files (7.0.3) and still have the problem. Stumped here! Anyone have other ideas?

loafintree
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Tue Jun 30, 2009 2:10 pm

Re: Upgraded to 7.0.3 but now can't add to cart!?

Post by loafintree » Thu Oct 27, 2011 10:24 am

I'm still not sure why it's the case but it seems to be related to the minicart (minibasket.acsx) which was in the sidebar. Once I removed the minicart the error went away. Hope this helps others and encourages a fix.

Post Reply