JSPM

slidertimeou

1.0.4
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q20072F
    • License ISC

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

    Package Exports

    • slidertimeou

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (slidertimeou) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    #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:

    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