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

Review the contents of the google-product.xml file that gets sent to TurnTo #27

Closed
erikhansen opened this issue Jan 12, 2018 · 1 comment

Comments

@erikhansen
Copy link
Contributor

As a merchant, I'd like to be able to see the contents of the google-product.xml file that gets sent to TurnTo via the Catalog Feed Export to TurnTo feature.

@erikhansen
Copy link
Contributor Author

erikhansen commented Jan 12, 2018

The only current way to accomplish this is by editing code, so this will need to be handled by a developer:

  1. Open the Model/Export/Catalog.php file (this will be in vendor/turnto/social-commerce/ or app/code/TurnTo/SocialCommerce, depending on how you installed this extension).
  2. Add this line of code to line 129:
\file_put_contents(BP . "/var/google-product_storecode_{$store->getCode()}.xml", $feed->asXML());
  1. Ensure n98-magerun2 is installed on the server
  2. Manually run the CRON job (it normally only runs at night):
n98-magerun2 sys:cron:run socialcommerce_exportcatalog

The file should now be in the var directory that's in the root of your Magento installation. Once you've reviewed the file, make sure to revert the code change and delete the XML file.

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

1 participant