Skip to content

Commit

Permalink
Woo-Product feed: Use shorthand for login and plugins, remove kitchen…
Browse files Browse the repository at this point in the history
…sink. (#108)

Fixes #103
  • Loading branch information
bph authored Feb 4, 2025
1 parent 51cef2d commit f9abc28
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions blueprints/woocommerce-product-feed/blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,12 @@
"php": "latest",
"wp": "latest"
},
"phpExtensionBundles": ["kitchen-sink"],
"features": {
"networking": true
},
"login":true,
"plugins":["woocommerce", "webtoffee-product-feed"],
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "woocommerce"
},
"options": {
"activate": true
}
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "webtoffee-product-feed"
},
"options": {
"activate": true
}
},
{
"step": "runPHP",
"code": "<?php include 'wordpress/wp-load.php'; delete_transient( '_wc_activation_redirect' ); wp_insert_post(array( 'import_id' => 5, 'post_title' => 'Sample Product', 'post_content' => '<!-- wp:paragraph --><p>Sample product description</p><!-- /wp:paragraph -->','post_status' => 'publish','post_type' => 'product','post_author' => 1, 'meta_input' => array('_sku' => 'WEBTOFFEE-FEED-ITEM', '_regular_price' => 25.00, '_sale_price' => 22.00, '_price' => 22.00, '_wt_feed_brand' => 'WebToffee', '_wt_feed_gtin' => 'WEBTOFFEE123', '_wt_feed_mpn' => 'WebToffee123', '_wt_feed_color' => 'Red', '_wt_feed_gender' => 'Male' ) ) );"
Expand Down

0 comments on commit f9abc28

Please sign in to comment.