Skip to content
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

Open
Mimiii opened this issue Feb 10, 2015 · 18 comments
Open

First Test Run already has a problem. Someone please help #7

Mimiii opened this issue Feb 10, 2015 · 18 comments

Comments

@Mimiii
Copy link

Mimiii commented Feb 10, 2015

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

@tamarazuk
Copy link
Member

Hi @Mimiii, if you're not in the United States can you make sure that you have the "Use Non-US JavaScript" setting selected:

@ideawebservices
Copy link

@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.

@tamarazuk
Copy link
Member

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

@Mimiii
Copy link
Author

Mimiii commented Feb 10, 2015

@tamarazuk ,
I'm in the US.

@ideawebservices
Copy link

@tamarazuk I'm not sure what you mean by API url?

@tamarazuk
Copy link
Member

@ideawebservices Google Trusted Stores provides you with some sample code to integrate into your website. As far as I know, www.googlecommerce.com/trustedstores/gtmp_compiled.js is provided to US stores and www.googlecommerce.com/trustedstores/api/js is provided to non-US stores.

@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

@tamarazuk
Copy link
Member

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

@Mimiii
Copy link
Author

Mimiii commented Feb 10, 2015

@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
How to Fix: Provide the Google Shopping Item ID in the “google_base_offer_id” field of the Google Trusted Stores JavaScript code.
This is a recommended but optional field. This field does not affect core functionality, and leaving this warning unresolved will not prevent you from entering the monitoring period. However, merchants using Google Shopping should correct these errors to ensure proper integration. This integration will allow Google to more easily correlate specific products to data that you have provided in connection with Google Trusted Stores. If you see this error on a non-product page or if you have chosen to leave out this field, you may disregard this warning.
Learn more
▲!
Optional: Google Shopping Account ID is missing
How to Fix: Provide the Google Shopping Account ID in the “google_base_subaccount_id” field of the Google Trusted Stores JavaScript code.
This is a recommended but optional field. This field does not affect core functionality, and leaving this warning unresolved will not prevent you from entering the monitoring period. However, merchants using Google Shopping should correct these errors to ensure proper integration. This integration will allow Google to more easily correlate specific products to data that you have provided in connection with Google Trusted Stores. If you see this error on a non-product page or if you have chosen to leave out this field, you may disregard this warning.
Learn more
▲!
Optional: Google Shopping Account ID is missing: “gts-i-prodsearch-store-id”
How to Fix: Provide the Google Shopping Account ID associated with the product in the “gts-i-prodsearch-store-id” field of the Google Trusted Stores Order Confirmation JavaScript code.
This is a recommended but optional field. This field does not affect core functionality, and leaving this warning unresolved will not prevent you from entering the monitoring period. However, merchants using Google Shopping should correct these errors to ensure proper integration. This integration will allow Google to more easily correlate specific products to data that you have provided in connection with Google Trusted Stores. If you have chosen to leave out this field, you may disregard this warning.
Learn more
▲!
Optional: Google Shopping Country ID is missing: “gts-i-prodsearch-country”
How to Fix: Provide the country information associated with the account used to submit product data feeds to Google Shopping, in the ”gts-i-prodsearch-country” field.
This is a recommended but optional field. This field does not affect core functionality, and leaving this warning unresolved will not prevent you from entering the monitoring period. However, merchants using Google Shopping should correct these errors to ensure proper integration. This integration will allow Google to more easily correlate specific products to data that you have provided in connection with Google Trusted Stores. If you have chosen to leave out this field, you may disregard this warning.
Learn more
▲!
Optional: Google Shopping Language ID is missing: “gts-i-prodsearch-language”
How to Fix: Provide the language associated with the account used to submit product data feeds to Google Shopping, in the ”gts-i-prodsearch-language” field.
This is a recommended but optional field. This field does not affect core functionality, and leaving this warning unresolved will not prevent you from entering the monitoring period. However, merchants using Google Shopping should correct these errors to ensure proper integration. This integration will allow Google to more easily correlate specific products to data that you have provided in connection with Google Trusted Stores. If you have chosen to leave out this field, you may disregard this warning.
Learn more
▲!
Order confirmation page is not in HTTPS
How to Fix: Implement the order confirmation page in HTTPS.
You must provide a secure way for customers to purchase products online. Thus, you must use https when transmitting customer information or financial data, including the order confirmation, order history and order status pages.
Learn more

@ideawebservices
Copy link

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';

@ideawebservices
Copy link

@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.

@ideawebservices
Copy link

@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.

@tamarazuk
Copy link
Member

@ideawebservices I just looked over my correspondence with a user from Australia who was having errors using the original URL in the extension: www.googlecommerce.com/trustedstores/gtmp_compiled.js. it looks like I did some research at that point which made me believe that the www.googlecommerce.com/trustedstores/api/js API url was for non-US stores as it worked for the Australian store.

However, now I am starting to think that geography may have nothing to do with it as the documentation is now using the api/js URL. Potentially this has something to do with when the account was setup. Either way, I think I'll make the default URL www.googlecommerce.com/trustedstores/api/js and add a text box to the settings to allow users to override it if needed. This may lead to less confusion.

@Mimiii
Copy link
Author

Mimiii commented Feb 10, 2015

@tamarazuk Ok, i'm going to purchase an ssl certificate for my site. I will keep you updated

@tamarazuk
Copy link
Member

@Mimiii that's great! thanks for keeping me updated.

@Mimiii
Copy link
Author

Mimiii commented Feb 10, 2015

@tamarazuk do you know which ssl i need for google trusted stores?

@tamarazuk
Copy link
Member

@Mimiii i think any SSL will do fine, but you can check the Google Trusted Stores help documentation for any recommendations

@Mimiii
Copy link
Author

Mimiii commented Feb 10, 2015

@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

@tamarazuk
Copy link
Member

@Mimiii I've released version 1.0.0 of the extension. You can download it here. Please let me know how it works for you 😄 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants