Socket
Socket
Sign inDemoInstall

slidertimeout

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    slidertimeout

simple slider of latest products of a woocommerce shop using wc json-api


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
18.4 kB
Created
Weekly downloads
 

Readme

Source

#Simple Product Slider for Woocommerce

this script adds simple slider which demonstrates latest products of a given category from WC json api, using a setinterval function, in a given div.

in order to begin, please :

  1. Enable Woocommerce Rest API findout how

  2. Once you included this script in your theme in any way you desire, use the following example to get it to work:

    var mysecret = "put your wc api secret here";

    var myconsumerkey = "put your consumer key ";

    var mySST = new SST(mysecret,myconsumerkey);

then you're all set.

To put it in an nutshell, this class my ask for following variables as inputs:

host : string, null by default. simply the url of your WC rest-API installation . - optional

elem: string, null by default. The ID of element which you want this script to show in. - optional

secret: string, the secret which WC -API console gives to you. - Required.

category: string, the "slug" of a category of your products. - Required

consumer:string, the consumer key provided by wc json-api console. - Required

Yours,

~ Kaveh

Keywords

FAQs

Last updated on 21 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc