View Categories

Fix Pricing Table Not Rendering in Custom Templates

Problem Description #

When inserting the plugin’s shortcode or using the block on a custom page template or a page builder, the pricing table does not appear or behaves incorrectly.

Common symptoms:

  • Shortcode prints nothing or only raw text.

  • Table appears but scripts/styles don’t load, so it’s unstyled or non-interactive.

Cause:
Some themes and builders render content in ways that don’t execute plugin initialization code (e.g., content rendered by AJAX after page load, or template areas that bypass the_content filter).

Solution – step-by-step #

  1. Verify correct shortcode usage

Use the exact shortcode documented by WPFactory (see plugin docs). Example:

[wpfactory_price_by_quantity product_id=”123″]

  1.  (Replace with the actual shortcode from docs.) WPFactory

  1. Test in regular page content

    1. Create a plain WordPress page (no builder) and place the shortcode in the editor. If it renders, the issue is with the builder/template.

  2. Ensure scripts/styles are enqueued

    1. Page builders or custom templates sometimes skip wp_footer() or wp_head() ensure your theme template calls wp_head() in <head> and wp_footer() before </body>. Missing these prevents plugin assets from loading.

  3. Use the plugin’s PHP template call if required (developer)

If the shortcode cannot be used in a specific template, include plugin output directly:

if ( function_exists( ‘wpfactory_price_by_quantity_render’ ) ) {

    echo wpfactory_price_by_quantity_render( $product_id );

}

  1.  (Ask WPFactory for the correct function name if different.)

  1. For AJAX-loaded content, re-initialize plugin after content loads

    1. If builder loads content via AJAX, use JS to re-run the plugin’s init function after content injection (developer required).

  2. Contact WPFactory with builder details

    1. Provide builder name, version, and reproduction steps; the author may provide compatibility guidance.

Prerequisites #

  • Plugin docs for shortcode and template functions. WPFactory

Additional notes / prevention tips #

Keep a single canonical method to insert pricing tables (shortcode vs template) and document it in your theme/plugin guide.