Displaying Pricing Tables

Pricing tables are a great way to showcase your products to visitors. Follow the steps below to create a pricing table that displays the payment plans and their features you have set up for your directory.

Displaying on the add listing page

  1. Log in to your website if you are not already logged in, and go to the WordPress administration dashboard.

  2. Click Directories in the admin sidebar.

  3. Click the Settings tab and then the Payment sub-tab.

  4. Enable the Display pricing table under the Payment Plan Settings section.

  5. Scroll further down and click Save Changes.

[drts-directory-payment-pricing] shortcode

The [drts-directory-payment-pricing] shortcode can be used to display a pricing table for your directory on any page. The following is a list of parameters available for the shortcode:

  • directory (required) – Specify the machine-readable name of the directory for which to show the pricing table.

  • layout – Specify the layout of the pricing table: group (default) or deck.

  • color – Specify the color scheme used for the pricing table. Options are primary, secondary, success, warning, danger, info, dark, or light. Defaults to primary.

  • btn_text – Specify custom text for the button labels. Defaults to Choose Plan.

  • cache – Whether to cache the output of the pricing table: 0 or 1. Defaults to 0 (no cache).

  • plans – IDs of base payment plans to display, separated by commas. All base plans will be displayed if none are given. Defaults to none.

  • add_no_payment_plan – Whether to add a "No payment plan" option to the pricing table: 0 to prepend or 1 to append. Requires the Add "No payment plan" option setting to be enabled under Directories -> Settings -> Payment -> Payment Plan Settings.

  • no_payment_plan_title – Set the payment plan title displayed for the "No payment plan" option.

  • no_payment_plan_desc – Set the payment plan description displayed for the "No payment plan" option.

Follow the steps below to use the shortcode and create a pricing table page for your directory:

  1. Select Pages -> Add New from the side menu.

  2. Enter some content about your payment plans and add the [drts-directory-payment-pricing] shortcode.

  3. Publish the page. The page should look similar to the example below on the frontend:

results matching ""

    No results matching ""