1. Home
  2. Docs
  3. WHMPress
  4. Shortcode List
  5. Price Matrix

Price Matrix

List all the services you offer along with prices and billing cycles in default currency. Used to show price matrix.

[whmpress_price_matrix]

Parameters

  • html_template: Different templates are available in this shortcode. Here is the choice to choose different HTML templates.
  • html_id: add a custom id to the HTML element for further CSS customization.
  • html_class: Add a custom class to apply to the table.
  • table_id: add a custom id to the table element for further CSS customization.
  • 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.
  • type: comma-separated values of your service groups names or ids. No spaces in comma-separated values.
  • name: comma-separated values of your package names.
  • groups: comma-separated values of your service groups names or ids. No spaces in comma-separated values.
  • billingcycles: Billing cycle of service, one from one-time, monthly, quarterly, semi-annually, annually, biennially, triennially. If skipped all billing cycles are returned.
  • hide_columns: comma-separated column names to hide.
  • decimals: how many decimals to show, if skipped no decimals are displayed.
  • show_hidden: weather to show plans set to hidden in whmcs, yes or no.
  • replace_empty: Text to replace empty values, the default value is “x”
  • replace_zero: Text to replace if the package value is zero (free). The default value is “-“
  • hide_search: Yes or No to hide or show search.
  • search_label: This overrides the label for a search field.
  • search_placeholder: This overrides the default value for the search field.
  • data_table: Yes or No to apply data tables or not. To apply data tables you need to enable data table library from WHMpress > settings > styles > Include data tables.
  • hide_columns: accepts comma-separated column names to hide them from price matrix. Column names that could be hidden are given below:
    • sr: It will hide the serial number column of the price matrix.
    • id: It will hide the product ID column of the price matrix.
    • name: It will hide the product name In the current shortcode.
    • groupn: It will hide the product group name by which the product is attached.
    • monthly: It will hide the monthly price of the product.
    • quarterly: It will hide the quarterly price of the product.
    • annually: It will hide the annual price of the product.
    • biennially: It will hide the 2 Year price of the product.
    • triennially: It will hide the 3 Years price of the product.
  • titles: accepts comma separated title names, if you want to override default titles of price matrix. In this field first title overrides sr, the second title overrides ID, and so on.
Was this article helpful to you? Yes 1 No 2