Skip to content

Commit a8ede36

Browse files
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 <berislav.grgicak@gmail.com>
1 parent 420dbea commit a8ede36

File tree

3 files changed

+4974
-0
lines changed

3 files changed

+4974
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
3+
"meta": {
4+
"title": "Minimal WooCommerce Setup with Sample Products, Shipping, and Payment Method",
5+
"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.",
6+
"author": "calvinrodrigues500",
7+
"categories": [
8+
"woocommerce",
9+
"shipping",
10+
"flat_rate"
11+
]
12+
},
13+
"steps": [
14+
{
15+
"step": "setSiteOptions",
16+
"options": {
17+
"blogName": "Woo Shipping Method"
18+
}
19+
},
20+
{
21+
"step": "installPlugin",
22+
"pluginZipFile": {
23+
"resource": "wordpress.org/plugins",
24+
"slug": "woocommerce"
25+
}
26+
},
27+
{
28+
"step": "importWxr",
29+
"file": {
30+
"resource": "url",
31+
"url": "https://raw.githubusercontent.com/calvinrodrigues500/blueprints/woo-shipping/blueprints/woo-shipping/sample_products.xml"
32+
}
33+
},
34+
{
35+
"step": "mkdir",
36+
"path": "/wordpress/wp-content/plugins/woo-shipping-method"
37+
},
38+
{
39+
"step": "writeFile",
40+
"path": "/wordpress/wp-content/plugins/woo-shipping-method/woo-shipping-method.php",
41+
"data": {
42+
"resource": "url",
43+
"url": "https://raw.githubusercontent.com/calvinrodrigues500/blueprints/woo-shipping/blueprints/woo-shipping/woo-shipping-method/woo-shipping-method.php"
44+
}
45+
},
46+
{
47+
"step": "activatePlugin",
48+
"pluginName": "woo-shipping-method",
49+
"pluginPath": "woo-shipping-method/woo-shipping-method.php"
50+
}
51+
]
52+
}

0 commit comments

Comments
 (0)