Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Created June 10, 2023 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalchild/fc79ccc599cb7e5c603144c183e600ea to your computer and use it in GitHub Desktop.
Save digitalchild/fc79ccc599cb7e5c603144c183e600ea to your computer and use it in GitHub Desktop.
# Setup for the Automating WordPress with no code commands
# Install npm
npm install -g npm@latest
# Install n8n with npm
npm install n8n -g
# Fix Authorization 401 for n8n and localwp WooCommerce REST API
# https://www.schakko.de/2020/09/05/fixing-http-401-unauthorized-when-calling-woocommerces-rest-api/
# Add $_SERVER['HTTPS'] = 'on'; to line 16 of the index.php file.
# This will force the REST API to use HTTPS and fix the 401 error.
# Linux
sed -i '16i\$_SERVER['\''HTTPS'\''] = '\''on'\'';' index.php
# OS X
sed -i '' '16i\
$_SERVER['\''HTTPS'\''] = '\''on'\'';' index.php
##
## Install and configure your WordPress install for the demo if you don't have one already
## Open your sites shell via the LocalWP UI this will ensure that WP CLI will work
##
# Install WooCommerce
wp plugin install woocommerce --activate
# Install storefront theme
wp theme install storefront --activate
# Install Uncanny Automator
wp plugin install uncanny-automator --activate
# Install AutomatorWP
wp plugin install automatorwp --activate
# Install WooCommerce Cart Abandonment Recovery
wp plugin install woocommerce-cart-abandonment-recovery --activate
# Install WP Mail Logging
wp plugin install wp-mail-logging --activate
# Install WP Fusion Lite
wp plugin install wp-fusion-lite --activate
# Install FluentCRM or your CRM of choice
wp plugin install fluent-crm --activate
# Install WP Webhooks
wp plugin install wp-webhooks --activate
# Install and activate WooCommerce Smooth Generator https://github.com/woocommerce/wc-smooth-generator
wp plugin install https://github.com/woocommerce/wc-smooth-generator/releases/download/1.1.0/wc-smooth-generator.zip --activate
# Generate some customers
wp wc generate customers 100
# Generate some products
wp wc generate products 100
# Generate some orders
wp wc generate orders 100
# Generate some coupons
wp wc generate coupons 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment