-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First Test Run already has a problem. Someone please help #7
Comments
Hi @Mimiii, if you're not in the United States can you make sure that you have the "Use Non-US JavaScript" setting selected: |
@tamarazuk, I recently set this up for a US store, and the module only worked if that setting WAS selected. It was coded backwards. Non-US stores should NOT select that box. US stores SHOULD select the box. I fixed the code on the store I was working on so that the box worked as designed. I meant to come back here and post about it but it slipped my mind, I apologize. |
hi @ideawebservices, what is the API URL for your US store? I'm taking a look at my code and I'm pretty sure I got it right unless Google is using different URLs |
@tamarazuk , |
@tamarazuk I'm not sure what you mean by API url? |
@ideawebservices Google Trusted Stores provides you with some sample code to integrate into your website. As far as I know, @Mimiii as @ideawebservices suggested, you may need to select that option if you are in the US. Can you give that a try and let me know if it works for you. I'll try to find out exactly which URLs are used when. Maybe I'll change the option to let users enter the URL suggested by Google Trusted Stores |
Also, thank you both for helping me track down this issue 😃 The plugin is still in a pre-release state as I did not have enough stores testing it out. With your help maybe I can get it to a stable 1.0.0 release and put it on WordPress.org! Thanks again |
@tamarazuk Ok, I selected the non US check box, and it passed all the way through until I reached the checkout page. Here are my errors: Optional: Google Shopping Item ID is missing |
There is an easy way to test, this is how I discovered the issue in the first place. Leave the box unchecked, then view the source of the front end page. You will see that it is using the gtmp_compiled.js file, which is for non-US stores. If you check the box and then view source, you will see it is using www.googlecommerce.com/trustedstores/api/js, which is for US stores. It's just backwards :) Here is the code with my changes: $src = 'yes' === $this->gts_non_us ? 'www.googlecommerce.com/trustedstores/gtmp_compiled.js' : 'www.googlecommerce.com/trustedstores/api/js'; |
@tamarazuk I just read your last post, you just have it backwards :) The gtmp_compiled.js is for NON-US stores, not the other way around. |
@Mimiii for the last error, you have to be using https at checkout to be able to sign up for Trusted Stores. This requires either a private or shared SSL to be set up on the domain. For the other errors, do you use Google Shopping? If not, you can ignore those errors. If you do use it, you need to fill in your google shopping credentials in the module settings area. |
@ideawebservices I just looked over my correspondence with a user from Australia who was having errors using the original URL in the extension: However, now I am starting to think that geography may have nothing to do with it as the documentation is now using the |
@tamarazuk Ok, i'm going to purchase an ssl certificate for my site. I will keep you updated |
@Mimiii that's great! thanks for keeping me updated. |
@tamarazuk do you know which ssl i need for google trusted stores? |
@Mimiii i think any SSL will do fine, but you can check the Google Trusted Stores help documentation for any recommendations |
@tamarazuk ok, i purchased one. I'm just trying to figure out how to install it to my managed wordpress site -- i will keep u posted |
I'm starting off with these issues:
Google Trusted Stores Badge
On Chrome - Failed
Last result collected from http://giftbasketsworldwide.com/product/valentines-gift-basket/ at 2015/02/09 20:22
▲!
Javascript is not implemented on the page
How to Fix: Implement the JavaScript code on this page of your website.
Learn more
The text was updated successfully, but these errors were encountered: