Skip to main content
All CollectionsQuoting & paymentsCRM Pricing Mapping
HubSpot CRM. Mapping products to pricing tables and pricing table sections
HubSpot CRM. Mapping products to pricing tables and pricing table sections
M
Written by Marya Maksimchuk
Updated over a week ago

Availability: Business and Enterprise plans

Merge rules allow you to easily pull products from your HubSpot deal to specific pricing table sections and/or specific pricing tables in your documents.

Skip to:

Enable product merging rules

Merge rules must be set up on a template level. Here's how to enable merging rules:

  1. Open the template you’re using for your HubSpot integration, or create a new one.

  2. Add a pricing table or find an existing one, then select the pricing table properties on the floating panel.

  3. On the right, select Set up data merge. Alternatively, select +Products under the pricing table, then select Set up data merge. You can also right-click on any section header and select Set up data merge from CRM/API.

  4. Finally, click Enable.

mceclip0.png
mceclip1.png

Product merging rules overview

A few important notes on merging rules:

  1. A product can be added to a pricing table only once. If the product fits more than one merge rule in your pricing table, it will follow only the first rule. However, the same product can be added to more than one pricing table in the document.

  2. If a pricing table doesn’t have any rules set, but data merge is turned on, all products listed in your deal will be added to this pricing table.

  3. If a pricing table has at least one rule set, only the products that fit this rule will be added to this pricing table.

Rules details and naming conventions

Merging rules are based on if/then logic.

In the If section, you must specify a field name based on the product that will be added to the pricing table or pricing table section.

mceclip2.png

The field name can be one of the default deal product field names — Name, Description, Price, QTY, Discount — and it’s crucial that you spell the name exactly as it’s spelled here.

Next, you can specify how PandaDoc should parse the field value and the field value itself.

mceclip3.png

Important notes:

  1. When you choose Discount as a field name in the If section, only “Contains” and “Doesn’t contain” can be selected as its value. With “Equals” and ”Doesn’t equal” values, products won’t be passed to the pricing table.

    mceclip4.png
  2. If you choose QTY as a field name in the If section, and the quantity of your product in HubSpot is blank, the value should be set as “0” under Merge rules so the products will be pulled.

    mceclip5.png

You can add as many field value conditions as you like.

In the Then section, specify whether or not the product should go to a specific section. You can also simply leave it as "Pricing table, no section" if you want to filter only the products so they're added to this specific pricing table.

mceclip6.png

Merge products into specific sections

In your pricing table, add sections you’ll need to merge products into. To add a section click +Section under the pricing table; if necessary, you can rename your section. In this example, we’ll add a Subscription section and a Services section.

mceclip0.png

Next, click the blue Data Merge header to access Merge rules. Alternately, select +Products > Set up data merge from CRM/API, or select pricing table properties on the floating panel > Set up data merge on the right-hand side.

mceclip1.png

Next, select Merge rules, then click Add rule. Specify the conditions for which the products will be filtered, then select the section of the pricing table where you’d like them placed. In this example, we’ve filtered based on the Name field — the Name field must contain “Plan.” Lastly, save the rule.

mceclip2.png

We’ve done the same for the other section (Services), setting it to filter products based on the Name field. The value should contain “Services.”

mceclip3.png

When you create a document from HubSpot using this template, products will be filtered into their respective pricing table sections, based on the merge rules.

Merge products into specific pricing tables

On your template, add a pricing table and access the merge rules by clicking Products > Set up data merge from CRM/API, or by selecting Pricing Table Properties > Set up data merge on the right.

mceclip4.png

Select Merge rules > Add rule. Specify the conditions for which the products will be filtered. In the Then section, select “Pricing table, no section,” then save the rule. If the pricing table is empty, products will be added to the top of the pricing table; if you have certain products pre-set in the template, new products will be added after the existing ones.

Finally, close the pop-up.

mceclip5.png

Repeat these steps for each pricing table in the template if you have more than one and want to set rules for each of them. When you create a document from a HubSpot deal using this template, products will be filtered into their respective pricing tables based on the merge rules.

Did this answer your question?