Question 31

A client has two B2C Commerce sites in the same instance: one for the U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in theU.S., but only three products can be wrapped in the European region.
How should a developer allow the merchant to independently adjust this number?
  • Question 32

    Assume the code below is executing:

    Business Manager has the configuration:
    * Active Log category is "root" with log level of "info."
    Given this information, what is the beginning of the filename in which the log will be written?
  • Question 33

    A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.
    Which B2C feature should the developer use to achieve the request?
  • Question 34

    Given the customer basket described below:
    * A customer has an existing basket that consists of multiple items.
    * One of the items is identified as a gift item by an attribute at the product line item.
    The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.
    Four hooks are required to make the modification, beginning with modifyGETRespone and ending with validatebasket.
    * Dw.ocapi.shop.basket.modifyGETResponse
    * -- missing hook -
    * -- missing hook --
    * dw.ocapi.shop.basket.validateBasket
    What are the two missing hooks in the middle?
  • Question 35

    A developer is working on a new site for the U.S based on an existing Canadian site. One of the requirements is a change to the address form. The current Canadian form has an <options> list with the correct two-letter abbreviation for the provinces.
    The U.S. requirements are to:
    * Have an <options> list with the correct two-letter abbreviation for the states in place of the province field.
    * Set the U.S site locale.
    * Add the options list field definition to the XML file.
    How should the developer set up the files before making the required edits?