Which two aspects are applicable to Page Includes? (2 answers)
Correct Answer: A,C
Two aspects that are applicable to Page Includes are: Standard Visualforce controls such as apex:form should not be used within a page include. This is because the page include is rendered inside an existing Visualforce page that already has a form element. Using another form element inside the page include will cause conflicts and errors. Instead, the page include should use HTML elements or custom components that do not require a form element. Page Includes can be configured as Body Includes Begin. This means that the page include will be rendered at the beginning of the body section of the page, before any other content or widgets. This can be useful for adding some custom content or functionality that applies to the whole page, such as a banner, a modal, or a script. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Page Includes
Question 37
During checkout flow customizations, a developer receives an error on shipping cost calculation integrations with the error code: INSUFFICIENT_ACCESS_OR_READONLY. What is causing this error?
Correct Answer: D
The error code INSUFFICIENT_ACCESS_OR_READONLY is caused by the cart being no longer in a valid Checkout State during checkout flow customizations. A cart is an object that represents a collection of products and charges that a customer intends to purchase in the storefront. A cart has a Checkout State field that indicates the current state of the checkout process for the cart. The Checkout State can have values such as Draft, InProgress, Completed, or Cancelled. A cart can only be modified or updated when it is in Draft or InProgress state. A cart cannot be modified or updated when it is in Completed or Cancelled state. If an attempt is made to modify or update a cart that is in Completed or Cancelled state, an error with the code INSUFFICIENT_ACCESS_OR_READONLY will be thrown. This error means that the user does not have permission to edit or delete a record because it is read-only or locked. The storefront user does not have access to the Cart Delivery Method object is not a cause of this error code, as it is not related to the cart checkout state or data modification. The Cart Delivery Method object is an object that stores information about the delivery method selected for a cart in the storefront. An error has occurred during the cart shipping charge integration is not a cause of this error code either, as it is not related to the cart checkout state or data modification. The cart shipping charge integration is an integration that calculates and applies shipping charges to a cart based on various factors such as delivery method, location, weight, volume, etc. The storefront user does not have access to custom fields on the Order Delivery Method object is not a cause of this error code either, as it is not related to the cart checkout state or data modification. The Order Delivery Method object is an object that stores information about the delivery method selected for an order summary in the storefront. Salesforce References: B2B Commerce Developer Guide: Cart Object, [B2B Commerce Developer Guide: Cart Delivery Method Object], [B2B Commerce Developer Guide: Order Delivery Method Object], [Salesforce Help: Common Error Messages]
Question 38
A product is assigned to the entitlement policy but is missing from the Price Book related to the Buyer Group. The entitlement policy has View products and View prices in catalog checked. How will the product behave on the B2B Portal?
Correct Answer: C
Explanation The product will not appear on the Portal and therefore cannot be added to the cart. A product is assigned to the entitlement policy but is missing from the Price Book related to the Buyer Group. The entitlement policy has View products and View prices in catalog checked. An entitlement policy is a set of rules that determines which products and prices a buyer group can access in the storefront. A buyer group is a group of buyers that share the same business relationship with the seller. A price book is a collection of prices for products that are available for purchase in the storefront. A product is a record that represents an item that can be sold in the storefront. To make a product visible and purchasable in the storefront, it must be assigned to both an entitlement policy and a price book that are related to the buyer group. If a product is assigned to an entitlement policy but not to a price book, it will not appear on the Portal and therefore cannot be added to the cart, regardless of the entitlement policy settings. The product will appear on the Portal with Price Unavailable status and can also be added to the cart is not a correct answer, as it contradicts the behavior of a product that is not in a price book. The product will appear on the Portal with Price Unavailable status but cannot be added to the cart is not a correct answer either, as it also contradicts the behavior of a product that is not in a price book. The product will not appear on the Portal but can be searched since it is part of the entitlement policy is not a correct answer either, as it also contradicts the behavior of a product that is not in a price book. Salesforce References: [B2B Commerce Developer Guide: Entitlement Policy Object], [B2B Commerce Developer Guide: Buyer Group Object], [B2B Commerce Developer Guide: Price Book Object], [B2B Commerce Developer Guide: Product Object]
Question 39
What is a valid way of referencing the CC Cart Object whose API name is E_Cart__c in a SOQL query?
Correct Answer: C
A valid way of referencing the CC Cart Object whose API name is E_Cart__c in a SOQL query is to use ccrz__E_Cart__c. This is the transformed name of the object that is used by the Salesforce B2B Commerce framework. All custom objects and fields that are part of the cloudcraze managed package have the prefix ccrz__ in their API names. For example, SELECT Id, Name FROM ccrz__E_Cart__c will query the CC Cart Object records. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Query Transformation
Question 40
What are three ways to test the value of Page Label on any Salesforce B2B Commerce Community Page? (3 answers)
Correct Answer: B,C,D
Explanation Three ways to test the value of Page Label on any Salesforce B2B Commerce Community Page are: * Execute CCRZ.pagevars.pageLabels['PAGE_LABEL_NAME'] in the JavaScript console. This will return the value of the page label with the given name from the pagevars object, which contains all the page labels that are used on the page. * Execute CCRZ.processPageLabelMap('PAGE_LABEL_NAME') in the JavaScript console. This will return the value of the page label with the given name from the pageLabelMap object, which contains all the page labels that are defined in CCAdmin. * Enable the 'display page label names' in cc admin. This will display the name of each page label next to its value on the storefront pages, which can help identify and verify the page labels. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Page Labels