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

fix(salesforce): handle woocommerce inactive #3521

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Conversation

adekbadek
Copy link
Member

All Submissions:

Changes proposed in this Pull Request:

If WC is inactive, the wc_* functions will be interpreted as namespaced (Newspack\wc_*). This plugin avoids that.

How to test the changes in this Pull Request:

Smoke test!

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@adekbadek adekbadek added the [Status] Needs Review The issue or pull request needs to be reviewed label Nov 5, 2024
@adekbadek adekbadek requested a review from a team as a code owner November 5, 2024 09:20
@leogermani
Copy link
Contributor

If WC is inactive, the wc_* functions will be interpreted as namespaced (Newspack\wc_*).

and does it Fatal error? Do we need a check to see if function exists?

@adekbadek
Copy link
Member Author

Good idea, added in 47dab4a

@adekbadek adekbadek requested a review from leogermani November 8, 2024 08:43
@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels Nov 8, 2024
@adekbadek adekbadek merged commit bf868a4 into trunk Nov 11, 2024
8 checks passed
@adekbadek adekbadek deleted the fix/salesforce-ns branch November 11, 2024 10:22
Copy link

Hey @, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to it to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

matticbot pushed a commit that referenced this pull request Nov 15, 2024
# [5.8.0-alpha.1](v5.7.0...v5.8.0-alpha.1) (2024-11-15)

### Bug Fixes

* **reader-registration-block:** fix styles of newsletter lists ([1e1d7a4](1e1d7a4))
* **salesforce:** handle woocommerce inactive ([#3521](#3521)) ([bf868a4](bf868a4))
* use user email for esp sync purposes ([#3520](#3520)) ([d6925ff](d6925ff))
* **wc-memberships:** WC for Teams join-team link; team in my-account ([#3540](#3540)) ([489ce0f](489ce0f))

### Features

* also trigger subscription change events on switch ([#3514](#3514)) ([5a84949](5a84949))
* **pwa:** enable SW file caching ([82af7d4](82af7d4))
* **starter-content:** e2e improvements; removal CLI command ([35431ac](35431ac))
* update Stripe Settings dashboard UI ([#3488](#3488)) ([7974fac](7974fac))
* **wc-memberships:** support team data in import ([63c78b2](63c78b2))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 5.8.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Nov 25, 2024
# [5.8.0](v5.7.0...v5.8.0) (2024-11-25)

### Bug Fixes

* **reader-registration-block:** fix styles of newsletter lists ([1e1d7a4](1e1d7a4))
* **salesforce:** handle woocommerce inactive ([#3521](#3521)) ([bf868a4](bf868a4))
* use user email for esp sync purposes ([#3520](#3520)) ([d6925ff](d6925ff))
* **wc-memberships:** WC for Teams join-team link; team in my-account ([#3540](#3540)) ([489ce0f](489ce0f))

### Features

* also trigger subscription change events on switch ([#3514](#3514)) ([5a84949](5a84949))
* **pwa:** enable SW file caching ([82af7d4](82af7d4))
* **starter-content:** e2e improvements; removal CLI command ([35431ac](35431ac))
* update Stripe Settings dashboard UI ([#3488](#3488)) ([7974fac](7974fac))
* **wc-memberships:** support team data in import ([63c78b2](63c78b2))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 5.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @alpha released [Status] Approved The pull request has been reviewed and is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants