# Step 8: Configure and synchronize the products

Product management consists of two aspects. First, the required product attributes must be configured for each product/SKU. Next, the products must be synced to Digital River. This section includes [product configuration](#product-configuration) and [product synchronization](#product-synchronization).

## Configure product attributes

For each product or SKU, you must configure the [product attributes](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/appendix/custom-fields-and-objects#order-product-standard-object) to send to Digital River.

Products should be configured with either the DR SKU Group field (recommended for all implementations) OR the DR TAXGROUP, DR TAXTYPE, and DR ECCN fields (for legacy use only). Once added to the page layout, you can find the Digital River product attributes in the Product tab.  &#x20;

For all new implementations, Digital River recommends that you use SKU groups. First, work with your project manager to configure SKU groups for Digital River. Once SKU groups are configured in Digital River, ensure that the[ batch job](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-9-schedule-backend-jobs) for SKU groups is scheduled and that it runs. After this job runs, you will see a list of SKU groups in the DR SKU Group picklist.  Select the appropriate SKU group for your product from the list. \
\
When using SKU groups, you must also manually populate the DR Digital Product field.  Set this to True if the product is Digital or False if the product is Physical.

{% hint style="info" %}
**Note:**  For Legacy Support Only:  Legacy implementations may continue to use the DR TAXGROUP, DR TAXTYPE, and DR ECCN fields until you have switched to using SKU groups.  The tax code object will map to the DR TAXGROUP and DR TYPE in the Digital River Tax Mappings object. The ECCN code maps to the Digital River ECCN code object. In this case, the DR Digital Product field is automatically populated from the tax code mapping the next time the Product Sync job is run.&#x20;
{% endhint %}

<figure><img src="https://872555541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3R66sN5xrbmDAJUBEoHo%2Fuploads%2FSgwfFgyR3oSmwUvKbgby%2Fimage.png?alt=media&#x26;token=03a81fa2-2cc3-4a63-ac4e-040d9f765b2e" alt=""><figcaption></figcaption></figure>

When a Digital River field is changed, it is marked for synchronization. When a product synchronization batch job runs, any products marked for synchronization should be synced.

### DR Product Country Origin (Picklist)

{% hint style="warning" %}
Within the Salesforce Lightning app installation, **Country Names** and corresponding **Country ISO codes** will come pre-populated on the custom field **DR Product Country Origin** on the **Product** object.

Any changes (additions, deletions, or modifications) to these picklists must be done manually after installation.
{% endhint %}

## Configure product synchronization

The **Product Sync** tab allows you to configure the behavior of the automated product synchronization. A batch job performs the synchronization, and you can schedule it to run periodically.

{% hint style="warning" %}
Products missing any required fields (for example, DR Product Country Origin, DR TAXGROUP, DR TAXTYPE, and DR ECCN) will not be synced to Digital River. Digital River uses this information to calculate tax.
{% endhint %}

To update the **Product Sync** settings:

1. Click the App Launcher ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/82qcAiYnCB2Ypud5wMqO/App%20launcher.png).
2. Type **Digital River App** in the **Search apps and items** field and click **Digital River App**.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/5lXr1dKR0KI7rSFlwi1G/DR%20App%20in%20Search.png)
3. Click the **Product Sync** tab.\
   ![](https://content.gitbook.com/content/3R66sN5xrbmDAJUBEoHo/blobs/GLxrTd8adF10hq2s0M69/Product%20Sync%20tab.png)
4. Complete the following fields:
   * **Batch Schedule Time**: Defines the frequency of the batch job run in minutes.
   * **Batch Size**: The number of Salesforce product records that the job will push to Digital River each time you run the job.
5. Click **Save**.
6. Click **Sync products** (to sync the products).
7. Click **Re-Sync All Products** (to resync all products).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-2.1/integrate-the-salesforce-lightning-app/step-8-configure-and-synchronize-the-products.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
