Displays price of a Domain with a lot of customization options. TLD is the only required parameters.

[whmpress_domain_price tld = ""]

Parameters

  • tld: TLD of domain with dot included e.g. “.com”, TLD must be added in WHMCS.
  • Type: Domain registration, renewal or transfer
  • html_id: add a custom id to the table element for further CSS customization.
  • html_class: Add a custom class to the wrapping HTML element.
  • currency: Used with multi-currency, set the Currency in which price is displayed, if not mentioned session currency is used (which user have selected), if no session is found, currency set as default in WHMCS is used.
  • Years: No of years to return the price for
  • decimals: how many decimals to show, if skipped no decimals are displayed.
  • Hide_decimal: hide decimal if needed
  • decimals_tag: html tag to wrap decimals, e.g. strong, b, sup or sub
  • prefix: currency prefix of selected or default currency, if skipped no currency prefix is displayed. Takes following options
    • yes = displays currency prefix
    • no = do not display prefix
    • sup = show as super script
    • sub = show as subscript
  • suffix: currency suffix of selected or default currency, if skipped no currency suffix is displayed. Takes following options
    • yes = displays currency suffix
    • no = do not display suffix
    • sup = show as super script
    • sub = show as subscript
  • show_duration: yes for show duration with price
    • sub = show as subscript
    • sup = show as super script
    • no = do not display
    • yes = displays duration (billing cycle)
  • show_duration_as: format to show duration
    • long = displays complete duration e.g. year
    • short = show short duration e.g. yr
  • convert_monthly: shows calculated monthly price based on duration selected in billing cycle.

Leave A Comment

*
*