It wasn't long ago that I'd developed some code for my own WP based STEEM projects and implemented it with great satisfaction. However as sweet as this code was I'd written it really wasn't "ready" to be shared or implemented on other sites excluding my own... Until now!
Functionality & Usage
( Screencap taken from streemit.online/price which is currently being developed by @KLYE )
What this does is grabs the current prices from the popular crypto exchange poloniex.com for STEEM / SBD and Bitcoin and allows you to easily display them on your WP website!
One other really cool feature of this plugin is that now instead of having to hack STEEM or SBD into your site's functions.php all you have to do is activate the plugin, go to your Woocommerce setting page and select STEEM or SBD as your primary currency.
The plugin has been tested with the latest version of Wordpress (4.7.2). This plugin offering comes "as is" and while it is functional I would highly suggest you look into the code yourself and see how I've done it and modify the plugin to suit your exact needs. Some classes have been set to help web developers style the output of the shortcodes a bit nicer but I'll leave that mostly up to the developers implementing the plugin to figure out.
This is only version 0.0.1 of this plugin. It may be buggy so please keep that in mind before putting it onto your production sites untested. I will release more plugins and an updated version of this plugin if the STEEM community shows interest in this sort of thing.
Where to Download This Plugin?
steem-sbd-woocommerce.zip
Once you have it downloaded it installs just like any other WP plugin and you'll have the shortcode functionality as well as the woocommerce STEEM / SBD currencies available to you as soon as you activate the plugin! Have a good day and happy website building everyone!
How Do I Make The Shortcodes Refresh?!
I use Scripts n Styles WP plugin to pass the following jquery to the classes linked to the shortcodes forcing them to refresh every 15 seconds, place this code in the "head" element:
jQuery(document).ready(function() {
if (jQuery('#steempricediv').length){
setInterval(function() {
jQuery('#steempricediv').fadeOut();
jQuery('#steempricediv').load(' #steempricediv');
jQuery('#steempricediv').fadeIn();
console.log( 'Fetching STEEM Price...' );
}, 15000); //Delay here = 15 seconds
}
});
jQuery(document).ready(function(){
if (jQuery('#btcpricediv').length){
setInterval(function() {
jQuery('#btcpricediv').fadeOut();
jQuery('#btcpricediv').load(' #btcpricediv');
jQuery('#btcpricediv').fadeIn();
console.log( 'Fetching BTC Price...' );
}, 15000); //Delay here = 15 seconds
}
});
jQuery(document).ready(function(){
if (jQuery('#sbdpricediv').length){
setInterval(function() {
jQuery('#sbdpricediv').fadeOut();
jQuery('#sbdpricediv').load(" #sbdpricediv");
jQuery(' #sbdpricediv').fadeIn();
console.log( 'Fetching SBD Price...' );
}, 15000); //Delay here = 15 seconds
}
});
Will You Ever Charge For These Plugins?
Short answer: Never!! Long answer: I don't develop these tools with the thought of riches and fame in mind. These are tools I've written for my own web based STEEM projects that I am sharing with the community to help strengthen it as a whole. If you feel inclined to pay for using anything I create and share go ahead and send a donation to
If you want to help me continue developing STEEM stuff please consider giving me a witness vote. It only takes a few moments to vote as witness and it means the world to me. :)
Big thanks to for their donation! It's not the amount but the though. Thank you!
Vote
for Witness!
https://steemit.com/~witnesses
A Proud STEEMbassador of Canada