Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Checkout Button not changing with payment type
Tagged: 2checkout button, checkout button
- This topic has 6 replies, 3 voices, and was last updated 11 years, 7 months ago by SpookyCat.
-
AuthorPosts
-
April 3, 2013 at 10:48 am #8861SpookyCatSpectator
Hi There
I have just added 2checkout as a payment option on our website so I added that in the payment settings and sure enough it shows up in the dropdown box as an option and if I select it I get taken to the right place for payment, the problem is the CheckOut button does not change from PayPal to 2Checkout, what setting needs to be changed so that this will change or how do I make it work. You can try it at [http://www.west-racing.com/mf/?page_id=483]
The shortcodes are:
[wp_eStore_fancy4 id=2]
[wp_eStore_cart_when_not_empty]
[wp_eStore_download_link_sender]
WordPress version: 3.2.1
Thanks
Chris
April 3, 2013 at 11:47 am #54816PeterMemberYou have a javascript error on your page which is most probably causing the issue:
Uncaught TypeError: Object #<Object> has no method 'on'
Which version of eStore do you have?
The above error may be coming from your theme or another plugin.
Please try the conflict tests in the following link to determine the cause:
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
Also here’s another useful link for javascript error troubleshooting:
https://support.tipsandtricks-hq.com/forums/topic/debugging-javascript-errors-on-your-site
On another side note you appear to have quite an old WordPress version. You should also consider upgrading to the latest release because by running with an old version you leave yourself open to possible security and stability issues.
April 3, 2013 at 6:04 pm #54817SpookyCatSpectatorThank you for your reply, I am using version 6.9.1 of the store.
The line the error is on is on that calls you methods, line 934
$(‘.eStore_save_cart_section’).on(“click”, function (){
So how do I fix the error if it is in your class? Will an update to the latest version of your store fix it? I dont see a new version for estore when I check the plugins section on the wordpress settings.
Thanks
Chris
April 3, 2013 at 10:13 pm #54818PeterMemberTo get the latest eStore version please see this link:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
After installing the latest version try again and see if the problem has been fixed.
If not the most likely cause of the problem is your theme or another plugin.
Please do the conflict tests as recommended in my previous reply.
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
April 3, 2013 at 11:48 pm #54819SpookyCatSpectatorI have updated to the latest estore version but still no luck with the checkout button changing. You say it is my theme causing the problem but how is that when it is your method that is causing the error namely line 934:
$(‘.eStore_save_cart_section’).on(“click”, function (){
I have tried changing the theme and I have worked through all the plugins deactivating them and still the error shows up, every page of the site shows one error and that error is always the one above even if the page has not store stuff on it.
The store all works fine, the right checkout shows up when you click the button just the image doesnt change on selecting the method.
April 4, 2013 at 12:00 am #54820adminKeymasterThe way JavaScript works is that if you have one line of BAD code somewhere in a plugin or theme then the whole page doesn’t work correctly. So even though the issue seems like on our plugin, it is not (we check and make sure all JavaScript code coming from our plugins are proper).
With that said, the following is the issue on your site…
You have a plugin or a theme that is adding the following line of code. This line of code including a Jquery library that is nearly 3 YEARS old!
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js?ver=3.2.1'></script>
Find out who is doing it, make it stop including a 3 year old JavaScript library and your site will start working correctly.
Read the following post which will explain more on this jquery library inclusion issue:
April 4, 2013 at 1:19 pm #54821SpookyCatSpectatorThank you for the help, tracked down the offending php file and changed the version, now I have got working checkout buttons, thank you very much again for the help.
-
AuthorPosts
- You must be logged in to reply to this topic.