Skip to content

Growish/gButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Growish Button

Technical documentation (work in progress...)

The gButton is a pure javascript implementation of the [Growish] services. Including a remote JS library or your pages and an initialization code, the button is render into a target div you can place any where in your site.

Current Version

1.0.1 Beta, First public release

Advantages

  • Pure javascript, no jQuery or any other external libraries.
  • Lightweight
  • No need for backend development

Usage

<!--On website header:-->
<script type="text/javascript" language="javascript" src="https://b70a0da9b58b4dd5f85b-aba7ce2dbb3121f457ae706f7c576a08.ssl.cf3.rackcdn.com/gbutton.min.js"></script>
<!--On website footer:-->
    <script>
        growish.load( { 
            partnerId: "<your-partner-code>",
            productCode: "<product-code>",
            productName: "<product-title>",
            productDescription: "<product-description>",
            productImageUrl: "<product-image-url>",
            productPrice: "<product-price>",
            productUrl: "<product-page>",
            productShippingCostIncluded: true
        });
    </script>  
  • *partnerId: An alphanumeric code given to all our partner, serve to identify you site as a valid partner site.
  • *productCode: This is the code of your product, you can use up to 50 characters to identify it.
  • *productName: Title or name of your product, you can use up to 150 charaters.
  • productDescription: Description of your product, you can use up to 300 charaters.
  • *productImageUrl: The url of the main image of your product.
  • *productPrice: The product price (+ shipping!), you can use up to two decimal spaces, point separated. (XXX.XX)
  • *productUrl: The url of the product page, you can also use document.URL.
  • *productShippingCostIncluded: Boolean value to define is shipping cost is already included in productPrice.

[*] mandatory field.

<!--Any where you like the button to be-->
<div id="growishButton"></div>

About

The Growish button

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •