Include a label or span or div tag with 'nwi-prod-id' attribute anywhere inside your HTML to display the price. You can place any number of tags in a single page.
Sample tag
Following is a sample tag to show monthly price of product '37' and show the decimal digits even it's zero.
<label nwi-prod-id="37" nwi-prod-cycle="monthly" nwi-show-zeros="true"></label>
This would output
$9.99
* where price and currency ($) symbol may be the default currency or the visitor's currency.
Available options / attributes
| nwi-prod-id | The WHMCS Product ID.
How to get the Product ID?:
|
| nwi-prod-cycle | The recurring price of the product to be shown.
Supported values: (in small letters)
What if the product cycle is Annually but, I would like to display monthly price?: Refer 'nwi-price-calc' option / attribute below. |
| nwi-price-calc | A simple formula to calculate the product price.
This attribute will be useful in cases where a product cycle supports only Annually but, you wish to show monthly price Supported operators: +, -, *, / Example:
|
| nwi-price-currency | Force the product currency to be shown. Available only on Pro version.
This attribute will be useful in cases where you want to show in a particular product in different currency or override the default currency configured. Supported currencies: The currencies configured in your WHMCS Example:
|
| nwi-prod-discount | Discount in percentage or a flat amount to be reduced from the product's price.
Supported values: Number or a Number suffixed with % symbol Example:
|
| nwi-show-zeros | This is applicable for decimals. Show or hide zero decimals.
Default: false Supported values: true or false Example:
|
| nwi-show-prefix | Show or hide currency symbol as prefix.
Default: true Supported values: true or false Example:
|
| nwi-show-suffix | Show or hide currency code as suffix.
Default: false Supported values: true or false Example:
|
