Additional options to format price to the need

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?:
  • Login to WHMCS Admin Area
  • Go to Setups > Products/Services > Products/Services
  • Navigate to 'Links' tab
  • The '&pid=' at the end of Direct Shopping Cart Link is the Product ID
nwi-prod-cycle The recurring price of the product to be shown.

 

Supported values: (in small letters)
  • monthly
  • quarterly
  • semiannually
  • annually
  • biennially
  • triennially

 

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:
  • annually / 12
  • monthly * 12
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:
  • GBP
  • USD
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:
  • 10% - Deducts 10% from the product price
  • 10 - Deducts flat 10 from the product price
nwi-show-zeros This is applicable for decimals. Show or hide zero decimals.

 

Default: false

 

Supported values: true or false

 

Example:
  • $30.00 - When set to true
  • $30 - When set to false
nwi-show-prefix Show or hide currency symbol as prefix.

 

Default: true

 

Supported values: true or false

 

Example:
  • $30 - When set to true
  • 30 - When set to false
nwi-show-suffix Show or hide currency code as suffix.

 

Default: false

 

Supported values: true or false

 

Example:
  • $30 USD - When set to true
  • $30 - When set to false
  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

Installing / uninstalling

How to install? Using FTP copy "modules" folder to the root of your WHMCS installation How to...

How to download this add-on?

Go to My Products > My Products & Services Click on Nifty WHMCS Integrator - will show...

How to configure?

Configuration Description Activate Apart from WHMCS addon activation, this is...

Upgrade to latest version

How to Upgrade?   WARNING! Even though nothing might go wrong during the update process...

How to connect my website with WHMCS?

Go to Addons > Nifty WHMCS Integrator. The implementation instruction is available in the...