Closed ecgan closed 5 months ago
Putting this PR on-hold (don't merge it). This PR should be merged after we confirm that the version 1.4.0 with Pinterest v5 API changes are all stable.
Reference: p1712579162171969/1712578878.033089-slack-CK365S85V
As per https://github.com/woocommerce/pinterest-for-woocommerce/pull/986#issuecomment-2051890156, I have removed the status: on hold
label, and I'll proceed to merge this PR.
Changes proposed in this Pull Request:
Closes https://github.com/woocommerce/pinterest-for-woocommerce/issues/983.
In this PR, we edited the pinit.js script import code so that it matches the code provide in Pinterest documentation: https://developers.pinterest.com/docs/add-ons/save-button/.
There should be no change in functionality. Shoppers should still be able to see the Pinterest Save button in product images, and clicking on the button should open a popup window to save the product image on Pinterest.
The script import code would become like this:
The only thing that is different from Pinterest documentation is the
?ver=1.4.0
at the end of thesrc
attribute. We are keeping it as a cache busting technique.Note: this PR is using the
develop
branch as the base branch, with plugin version 1.4.0 which contains the Pinterest v5 API.Detailed test instructions: