-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WooCommerce demo blueprint with custom flat rate shipping and pro… (
#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
1 parent
420dbea
commit a8ede36
Showing
3 changed files
with
4,974 additions
and
0 deletions.
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.