Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Terms and Conditions Checkbox Not Working
- This topic has 6 replies, 3 voices, and was last updated 13 years, 8 months ago by amin007.
-
AuthorPosts
-
March 25, 2011 at 4:36 am #3042emceesquared08Member
Hi,
I’m trying to use the Terms and Conditions agree checkbox and it does not seem to be working. I can add products to my cart just fine but then when i get redirected to my checkout page, before I even click on the checkbox the error message “You must agree to the Terms & Conditions!” appears on page load. Then when i click on the checkout with paypal button without agreeing to the terms it takes me to paypal when it should not.
I think that the checkbox did work before in a previous version of my site not too long ago but now it doesnt seem to be working. I’m not sure if the problem lies with some javascript function or where exactly. Any idea where the problem could be?
Thanks,
Alex
March 25, 2011 at 11:42 pm #30676wpCommerceModeratorCan you please post a link to the page where you have the product?
March 25, 2011 at 11:51 pm #30677emceesquared08MemberThe product page is at: http://infinitetrackminds.com/beatstore
After adding a product to the cart you should be redirected to the checkout page at: http://infinitetrackminds.com/checkout –> that’s where the terms and conditions box is not working.
I’ve tried testing it on the newest versions of Chrome, Firefox and Internet Explorer and I get the same behavior. I’ve also tried the fancy and when not empty versions of the cart but they also exhibit the same output.
March 26, 2011 at 2:15 am #30678amin007ParticipantYour theme is including a hardcoded JQuery version on your site which it should NEVER DO! Every plugin and them should use the JQuery that ships with WordPress itself:
http://infinitetrackminds.com/wp-content/themes/3_Them_ONLY/multidesign/js/jquery-1.4.2.min.js
Some good read for you:
http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
March 26, 2011 at 2:21 am #30679amin007ParticipantYour theme is including a hardcoded JQuery version on your site which it should NEVER DO! Every plugin and theme should use the JQuery that ships with WordPress itself:
http://infinitetrackminds.com/wp-content/themes/3_Them_ONLY/multidesign/js/jquery-1.4.2.min.js
Some good read for you:
– http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/
– https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
March 28, 2011 at 8:24 pm #30680emceesquared08MemberHi,
I went back and looked at the code and it definitely is not properly coded (I bought the theme online and did not code it myself). When I changed the header so that it included jquery properly, the terms and conditions box did work but then it broke other functionality of the theme. So i’m trying to figure out how to fix one without breaking the other.
I know hardcoding jquery with the estore plugin would not be good practice but i’m desperate in trying to get both estore and the theme working together. I looked at wp_estore1.php to manually include jquery as it was in the theme but it didnt work. If i did want to hardcore it which files and lines would i need to change?
I understand it was my fault for buying an unproperly coded theme but I like its functionality and would like to keep it if possible. I would appreciate any help.
Alex
March 29, 2011 at 1:26 am #30681amin007ParticipantAs per the WordPress’s coding guideline… eStore uses the JQuery library that comes with WordPress. Look for the following line in ‘wp_eStore1.php’ file:
wp_enqueue_script('jquery');
I don’t see how you can correct this problem by hardcoding the JQuery library in eStore. The issues is that JQuery library should only be included once in a page (this is why wordpess has that guideline so that each plugin or theme do not add the library… otherwise you will end up with multiple JQuery libraries on your webpage!).
I unfortunately don’t know of any magic solution to fix it other than to correct the coding. You are more than welcome to try.
-
AuthorPosts
- You must be logged in to reply to this topic.