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

Craft Commerce support #16

Closed
oddnavy opened this issue Feb 25, 2020 · 5 comments
Closed

Craft Commerce support #16

oddnavy opened this issue Feb 25, 2020 · 5 comments
Assignees

Comments

@oddnavy
Copy link

oddnavy commented Feb 25, 2020

It would be amazing if this plugin supported Craft Commerce products 😄

@mattstein
Copy link
Contributor

Hmm, or maybe any Element with its own URL. 🤔

Thanks for the suggestion, @oddnavy!

@mattstein mattstein self-assigned this Mar 7, 2020
@mattstein
Copy link
Contributor

FWIW I’ve added a feature branch for this and it’s working nicely! Just need a real migration and a bit more testing.

automatic-purge

@oddnavy
Copy link
Author

oddnavy commented Mar 10, 2020

@mattstein nice work! This will be a great addition.

I'm using the element-api for a headless site. Is there a way to configure a rule for clearing an element-api endpoint at the same time as the frontend endpoint?

For example: on save of product id 2, purge cms.site.dev/api/products/2 + site.dev/product/2

@mattstein
Copy link
Contributor

There isn’t currently a way to do that @oddnavy—but you’re limited to one interesting idea per issue! 😄

mattstein added a commit that referenced this issue Apr 5, 2020
- Expanded automatic element URL purge options to include categories, tags, and Commerce variants and products. ([#16](#16))
- Improved zone selection for API tokens that can’t list zones. ([#17](#17))
- Moved documentation to its own site.
@mattstein
Copy link
Contributor

Finally added in 0.5.0.

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

No branches or pull requests

2 participants