Customer Service Center Data Resources

Each customizable area shows data from its default data source. For this data source, no configuration is necessary. If a customizable area shows (or modifies) data from different resource, that resource must be configured. To show other attributes from other data resources in vies or forms, the element data has to be added as a new top-level element.

In this data section, the additional attributes have to be configured accordingly.

The attribute read path can also contain XPath expressions and functions.

An agent wants to check (and possibly modify) the customer's email address when editing the basket billing address, because an email address is required for ordering. With customization of the basket billing address and by using a different resource (BasketCustomer, which provides the customer's email address), the email address can be added to the configuration.

Because the CSC Basket Customer Info Data Provider takes care of metadata handling, the necessary type information is transferred accordingly. The attribute customeremail is available in attribute_layout or attribute_form widgets and can be edited while editing the billing address.

The following is a slightly stripped down billing address configuration:

The resulting billing address form contains now an email that is updated outside the actual billing address.

Customizable areaDefault data sourceAlternative data sources
Product DetailBasketProductBasket Address, Customer Info, Basket
Basket Shipping AddressBasket AddressCustomer Info, Basket
Basket Billing AddressBasket AddressCustomer Info, Basket
Basket Billing Address View
  • These customizable areas are also used to show a list of all basket addresses for selecting the billing or shipping address of a basket.
  • The data source is Basket Addresses.
Basket AddressCustomer Info, Basket
Basket Shipping Address ViewBasket AddressCustomer Info, Basket
Basket Payment InstrumentBasket Payment InstrumentCustomer Info, Basket
Price AdjustmentPrice AdjustmentBasket Address, Customer Info, Basket
Order Payment InstrumentOrder Payment InstrumentOrder Address, Order
Order Billing Address ViewOrder AddressOrder
Order Shipping Address ViewOrder AddressOrder

Provides data from a basket.

Name in configuration: Basket

Parameter:

NameMeaningRequired?
basket_idID of the basketyes

Provides data of an address of a basket.

Name in configuration: BasketAddress

Parameters:

NameMeaningRequired?
basket_idID of the basketyes
shipment_idID of the shipment to fetch the address fromno, the billing address is returned otherwise

Provides data about the payment instrument.

Name in configuration: BasketPaymentInstrument

Parameters:

NameMeaningRequired?
basket_idID of the basketyes
payment_method_idID of the payment method to pay withno
payment_card_typetype of the credit card to useno
payment_instrument_idID of the payment instrumentno

Provides data of a product item.

Name in configuration: BasketProduct

Parameters:

NameMeaningRequired?
basket_idID of the basketyes
item_idID of the product itemno, if a product_id is given
product_idID of a productyes, if no item_id is given

Provides data of a customer.

Name in configuration: BasketCustomer

Parameter:

NameMeaningRequired?
basket_idID of the basketyes

Provides data from an order.

Name in configuration: Order

Parameter:

NameMeaningRequired?
order_noorder numberyes

Provides data of an address of an order.

Name in configuration: OrderAddress

Parameters:

NameMeaningRequired?
order_noorder numberyes
shipment_idID of the shipment to fetch the address fromno, the billing address is returned otherwise

Provides data about the payment instrument of an order.

Name in configuration: OrderPaymentInstrument

Parameters:

NameMeaningRequired?
order_noorder numberyes
payment_method_idID of the payment method to pay withno
payment_card_typetype of the credit card to useno
payment_instrument_idID of the payment instrumentno

For a provided payment_method_id, the payment_card_type is also considered and the data returned is as complete as possible:

  • a credit card payment method returns a partially filled out credit card object
  • a bank transfer payment method returns a partially filled out bank transfer object
  • a provided payment_instrument_id returns the data of the payment instrument

Provides data of a price adjustment.

Name in configuration: BasketPriceAdjustment

Parameter:

NameMeaningRequired?
basket_idID of the basketyes
item_idID of the product itemno, if a product_id is given

Data source: site

Provides site information, the possible properties of the site object can be checked in the Site documentation from Shop API. Here is an example using name, id, and timezone properties.