Displays price of a WHMCS Service (Hosting Plan) in a lot of customization options. Service id is the only required parameters, will return “Invalid 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 > Products/Services section. Click products/services link under WHMpress from the menu 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
- no = do not display the prefix
- yes = display prefix with price
- – = show prefix without any tag
- b = show prefix as bold
- i = show prefix as italic
- u = show prefix as underlined
- sup = show as superscript
- sub = show as a subscript
- suffix: currency suffix of selected or default currency, if skipped no currency suffix is displayed. Takes the following options
- no = do not display the suffix
- yes = display suffix with price
- – = show suffix without any tag
- b = show suffix as bold
- i = show suffix as italic
- u = show suffix as underlined
- sup = show suffix as superscript
- sub = show suffix as a subscript
- show_duration: yes for show duration with price
- no = do not display the duration
- yes = display duration with price
- – = show duration without any tag (billing cycle)
- b = show duration as bold
- i = show duration as italic
- u = show duration as underlined
- sup = show duration as superscript
- sub = show duration as a subscript
- 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 the duration selected in the billing cycle.
- configureable_options: weather to calculate configurable options in price or not.
- yes = show minimum possible price with configurable options
- no = show price without configurable options
- config_option_string: String to show with price while calculating configurable 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
- no_wrapper: prices is return in HTML wrapper like <div> or <span>. If you want to exclude that wrapper for some reason, set it to no.