-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add WooCommerce demo blueprint with custom flat rate shipping and pro… #62
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9c31d59
Add WooCommerce demo blueprint with custom flat rate shipping and pro…
calvinrodrigues500 c930c92
Update Enable Direct Bank Transfer payment gateway
calvinrodrigues500 54b2534
Update Blueprint meta title
calvinrodrigues500 c302e5f
Update Switch to WooCommerce sample products XML for import
calvinrodrigues500 e73f18b
Update blueprint URLs to point to the raw files in the PR
calvinrodrigues500 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
"meta": { | ||
"title": "Minimal WooCommerce Setup with Sample Products, Shipping, and Payment Method", | ||
"description": "To create a WordPress Playground instance that installs WooCommerce, adds a custom flat rate shipping method via a plugin, imports WooCommerce sample products XML to demonstrate the shipping method on the cart/checkout pages, and enables the Direct Bank Transfer payment method.", | ||
"author": "calvinrodrigues500", | ||
"categories": [ | ||
"woocommerce", | ||
"shipping", | ||
"flat_rate" | ||
] | ||
}, | ||
"steps": [ | ||
{ | ||
"step": "setSiteOptions", | ||
"options": { | ||
"blogName": "Woo Shipping Method" | ||
} | ||
}, | ||
{ | ||
"step": "installPlugin", | ||
"pluginZipFile": { | ||
"resource": "wordpress.org/plugins", | ||
"slug": "woocommerce" | ||
} | ||
}, | ||
{ | ||
"step": "importWxr", | ||
"file": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/calvinrodrigues500/blueprints/woo-shipping/blueprints/woo-shipping/sample_products.xml" | ||
} | ||
}, | ||
{ | ||
"step": "mkdir", | ||
"path": "/wordpress/wp-content/plugins/woo-shipping-method" | ||
}, | ||
{ | ||
"step": "writeFile", | ||
"path": "/wordpress/wp-content/plugins/woo-shipping-method/woo-shipping-method.php", | ||
"data": { | ||
"resource": "url", | ||
"url": "https://raw.githubusercontent.com/calvinrodrigues500/blueprints/woo-shipping/blueprints/woo-shipping/woo-shipping-method/woo-shipping-method.php" | ||
} | ||
}, | ||
{ | ||
"step": "activatePlugin", | ||
"pluginName": "woo-shipping-method", | ||
"pluginPath": "woo-shipping-method/woo-shipping-method.php" | ||
} | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's include this file in this PR, the idea is to avoid referencing external resources. See https://github.com/WordPress/blueprints/blob/trunk/CONTRIBUTING.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adamziel
Sorry for the delay in responding.
I’m a bit unclear about the approach to updating the URLs. Should I point them to https://raw.githubusercontent.com/WordPress/blueprints/... now, even though this would cause errors when testing the blueprint in a playground until the PR is merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no, I only meant to have this file included in the PR, which I now see it was – perhaps I got confused when reviewing :-) Either way, it looks good now, thank you for proposing this Blueprint!