Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. The Developer Center continues to support Commerce 6.13.0 through 7.4.1.Visit new site

dependentelement

dependentelement

Determines how dependencies of the specified item type are handled. For example, a product has a set of associated attributes. During an import operation, the product being imported may have a different set of associated attributes than the product in the destination system. This setting specifies whether the existing attributes on the product are removed and replaced with the imported attributes, or if the new attributes are added to the existing set of attributes.

Note:

If the import configuration does not contain a dependentelement for a particular item type, then the default behavior for dependencies of that item type is CLEAR_COLLECTION.

Supported values are:

  • CLEAR_COLLECTION: Remove all existing dependencies of this type before adding new dependencies from the import package.
  • RETAIN_COLLECTION: Keep existing dependencies of this type and add only new dependencies from the import package, if any.
Note:

The payment_methods collection element only supports the CLEAR_COLLECTION value. If any other value is used, the Import-Export tool will return an exception.

Parent elements

dependentelements

Attributes

Name

Number of occurrences

Description

type

1

Specifies the type of dependency.

For categories (CATEGORY), possible values are:

  • CATEGORY_ATTRIBUTES

For products (PRODUCT), possible values are:

  • PRODUCT_ASSOCIATIONS
  • PRODUCT_CATEGORY_ASSIGNMENTS
  • PRODUCT_ATTRIBUTES
  • PRODUCT_CATALOG_PRICES
  • PRODUCT_PRICE_CURRENCIES
  • PRODUCT_PRICE_TIERS
  • SKU_CATALOG_PRICES
  • SKU_PRICE_CURRENCIES
  • SKU_PRICE_TIERS
  • PRODUCT_SKUS
  • PRODUCT_SKU_PRICING
  • SKU_ATTRIBUTES

For system configuration settings (SYSTEMCONFIGURATION), possible values are:

  • SETTING_VALUES
  • SETTING_METADATA

For price lists (PRICELISTDESCRIPTOR), possible values are:

  • BASE_AMOUNTS

For payment gateways (PAYMENTGATEWAY), possible values are:

  • PAYMENT_GATEWAY_PROPERTIES

For user roles (USER_ROLE), possible values are:

  • USER_PERMISSIONS

For coupon sets (COUPONSET), possible values are:

  • COUPONSET (Represents the individual coupons in the coupon set.)

For CM import jobs (CM_IMPORT_JOB), possible values are:

  • CM_IMPORT_MAPPINGS

Child elements

None.