Skip to content

Commit

Permalink
Add WooCommerce demo blueprint with custom flat rate shipping and pro… (
Browse files Browse the repository at this point in the history
#62)

## WooCommerce Custom Flat Rate Shipping Demo Blueprint

- Configured WordPress Playground instance to install WooCommerce.
- Added custom flat rate shipping method via plugin.
- Imported a product for demonstrating shipping on cart/checkout pages.

---------

Co-authored-by: Bero <[email protected]>
  • Loading branch information
calvinrodrigues500 and bgrgicak authored Dec 10, 2024
1 parent 420dbea commit a8ede36
Show file tree
Hide file tree
Showing 3 changed files with 4,974 additions and 0 deletions.
52 changes: 52 additions & 0 deletions blueprints/woo-shipping/blueprint.json
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"
}
]
}
Loading

0 comments on commit a8ede36

Please sign in to comment.