Repository
https://github.com/DunnCreativeSS/smokeIOWordPressWooCommerceAutoPoster
Sites
https://tradeitforweed.club
https://smoke.io
Bug Fixes
- What was the issue(s)?
- Along the way of development for initial commit, WooCommerce .get('products') returned 1 page or 10 items
- What was the solution?
- I had a look at Woo API's docs and found you have to pass params (like page=2) through the .get('products?page=2') in order to get additional products. It now receives all 27 products we have published.
New Features
- What feature(s) did you add?
- Posts on Smoke.IO will be added as a WP post
- Posts on WP added with the tag 'smokeio' (which I used to create a posts widget that shows only this tag)
- Posts on WP added with a tag that has the permlink from Smoke.IO, so that the same posts aren't re-posted
- Products on WP will be added as a Smoke.io post
- Posts on Smoke.io added with a permlink of the last split('/') of the url of the WP item, as well as random string, we don't post more than once
- Posts on Smoke.io have images from a loop of images on WP
- Posts on Smoke.io have a link back to the WP item
- Posts on Smoke.io have an application metadata
- How did you implement it/them?
1, 2 and 3
4:
5:
6:
7:
8:
New Projects
- What is the project about?
This project automates our existing WP site https://tradeitforweed.club and https://smoke.io. See: https://smoke.io/@tradeitforweed
- Technology Stack
- Ubuntu
- Node
- Npm
- git clone repo
- npm i
- add these exports to your ~/.bashrc:
a. your smoke posting WIF in steemPostPw
b. your author name as author
c. your wordpass password as wpsecret
d. wookey, woosec to your WooCommerce REST Api credentials
- edit the code so that the wordpress site and user are correct
- Roadmap
- Escrow services with Smoke
- Figure out legality of crypto barter for marijuana in Canada first
- How to contribute?
Contact me here SteemIt @hodlorbust, or Smoke @tradeitforweed, or GitHub dunncreativess.