Displays price of a WHMCS Service (Hosting Plan) in lot of customization options. Service id is the only required parameters, will return “Invlid id”  if service id does not exist. If no other parameter is given yearly service price is returned.

[whmpress_price id = ""]

Parameters

  • id: Id of the service (Hosting Plan), You can find the IDs of all your services in WHMpress > Services/Products section. Click products/services link under WHMpress to see WHMCS services IDs.
  • 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.
  • billingcycle: Billing cycle of service, one from one-time, monthly, quarterly, semi-annually, annually, biennially, triennially. If skipped yearly price is returned.
  • 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.
  • configureable_options: weather to calculate configureable options in price or not.
    • yes = show minimum possible price with configureable options
    • no = show price with out configureable options
  • config_option_string: String to show with price while calculating configureable options, for example “starting from”
  • price_tax: Weather to include tax in prices or not.
    • default = show as returned by WHMCS
    • inclusive = show price after including the tax
    • exclusive = show price without tax
    • tax = show only tax
  • nowrapper: prices is return in HTML wrapter like <div> or <span>. If you want to exclude that wrapper for some reason, set it to no.

Leave A Comment

*
*