Page 1 of 1
Upgraded to 7.0.3 but now can't add to cart!?
Posted: Mon Sep 27, 2010 7:29 am
by industry
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','')
Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Tue Sep 28, 2010 5:49 am
by industry
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

Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Tue Sep 28, 2010 8:56 am
by plugables
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.
Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Tue Sep 28, 2010 9:42 am
by industry
Any idea how i can get the buttons working again? - i've no idea where to start looking

Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Tue Sep 28, 2010 5:46 pm
by jmestep
I was able to add products to the basket.
Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Wed Sep 29, 2010 2:56 am
by industry
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
Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Wed Sep 29, 2010 7:21 am
by jmestep
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.
Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Wed Sep 29, 2010 9:51 am
by industry
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?
Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Thu Oct 07, 2010 3:38 am
by industry
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

Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Wed Oct 13, 2010 5:19 am
by industry
Anyone able to help?
Sales are being lost due to them not being able to add to cart
Re: Upgraded to 7.0.3 but now can't log in!?
Posted: Wed Oct 13, 2010 5:52 am
by s_ismail
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 .
Re: Upgraded to 7.0.3 but now can't add to cart!?
Posted: Wed Oct 13, 2010 9:54 am
by industry
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

Re: Upgraded to 7.0.3 but now can't add to cart!?
Posted: Wed Oct 13, 2010 11:04 am
by jmestep
Ah, yes. We have run into that with people commenting out conlibs instead of removing them.
Re: Upgraded to 7.0.3 but now can't add to cart!?
Posted: Thu Oct 27, 2011 9:09 am
by loafintree
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?
Re: Upgraded to 7.0.3 but now can't add to cart!?
Posted: Thu Oct 27, 2011 10:24 am
by loafintree
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.