24.2 Release
The B2C Commerce 24.2 release occurs January 30 , 2023 through February 29, 2024.
Information about customer-reported issues and notifications about bug fixes is now published in Salesforce Known Issues. Itβs the place for information about customer-reported issues across Salesforce products. You can view the status of an issue and subscribe to notifications. The B2C Commerce Release Notes continue to provide information about new features and major feature enhancements.
-
Get a Higher Level of Time Stamp Accuracy with ProductInventoryRecord.AllocationResetDate
ProductInventoryRecord.AllocationResetDate now supports a higher level of accuracy in the database. The change is backward-compatible.
See Also:
-
Specify a Date Format for Locales
You can now modify the date settings format in Business Manager so that the script API method dw.util.Calendar.getFirstDayOfWeek() returns the first day of the week in the date format used by your site locale. Previously, you couldnβt modify the date format to match the local or regional context.
How: You configure the date setting format in Business Manager | Administration | Global Preferences | Locales. For your locale, select the Regional Settings and modify the Date Settings. The date setting format affects Business Manager related Date Picker interfaces. The setting also sets the date format of the returned date value for the Script API method
dw.util.Calendar.getFirstDayOfWeek()
.See Also:
-
Replace eCDN Firewall Rules with new eCDN Custom Rules
Commerce Cloud B2C Commerce has migrated all existing firewall rules to a new custom rules CDN-API endpoint. All customers are directed to transition to using custom rules in place of firewall rules.
When: Complete the transition to eCDN custom rules in place of firewall rules before February 1, 2024. Firewall rules will be deprecated on February 6, 2024.
Why: Custom rules allow you to control incoming traffic by setting up firewall policies based on various request parameters. These API endpoints expand on the existing functionality of firewall rules. With custom rules, you have complete control over the rule expression. Weβve also extended the list of allowed request field types and rule actions, which offer increased flexibility and allow you to create expressions that match your specific traffic needs.
The deprecated endpoints include:
See Also:
-
Prepare for Third-Party Cookie Restrictions
To prepare for third-party cookie restrictions introduced by Google in 2024, Salesforce B2C Commerce is introducing a new feature toggle that enables partitioned cookies. The partitioned cookie toggle is available in Business Manager with the default value set to disabled.
Why: Beginning in early 2024, Google Chrome is phasing out support for third-party cookies. With this change, Chrome disables third-party cookies that originate from a separate hostname and arenβt partitioned. The loss of support for third-party cookies can affect B2C Commerce capabilities such as the Storefront Toolkit and some Page Designer preview functionality.
How: You can enable the partitioned cookie toggle in Business Manager. Select Administration | Global Preferences | Feature Swithces. When the Partitioned Cookies toggle is enabled, a partitioned attribute is added to cookies created from the B2C Commerce servers. The attribute is added to cookies created through controllers, pipelines, or platform code. Google continues to accept cookies created from B2C Commerce servers and assigned the partitioned attribute.
Note: Enabling the partitioned cookies toggle can result in some issues within SFRA or PWA-kit as well as custom code. Before you enable the partitioned cookies toggle on a production instance, Salesforce recommends that you test your storefronts on staging or development instances. If the Storefront Toolkit or Page Designer preview stops working and enabling the feature on Chrome isnβt an option, we recommend you use a different browser such as Firefox as a workaround. -
Update Social Selling Cartridges
Extend your social selling business functionality with the following updates. The updates cover common updates across all channels as well as channel-specific functionality.
Tik Tok
- Customers who have operations in the UK can now sell on TikTok. To send order status updates to TikTok, UK customers must use the processOrderUpdatesHook. The order status job to sync order statuses is for US operations only.
- Event tracking for TikTok includes Salesforce as the partner name in the conversion API requests to TikTok.
- The create order controller supports shipping price adjustments. The create order controller now maps price adjustments to the shipping charges resulting from seller-funded or TikTok-funded discounts.
- Reason code canceled_by_tiktok is now supported. When TikTok cancels an order because of fraud and uses the reason code cancelled_by_tiktok, the Salesforce Commerce Cloud order status is set as canceled, even if the order is shipped.
- The scalability of TikTok server-side activity tracking is improved. You can now store multiple events in one custom object.
- To improve output file order, the feed generation is enhanced. The notification for the deleted file is sent first so that the products are deleted on TikTok first, and then the full feed is consumed.
-
Write Custom Script Code with SCAPI Custom APIs
SCAPI Custom APIs are now generally available. SCAPI Custom APIs provide a framework enabling developers to write custom script code and expose this functionality as a custom REST API under the SCAPI framework.
What: Feature updates for GA include the following. Some require special attention as they can break existing implementations.
- Introduction and enforcement of custom scopes to address security compliance. This can potentially a break an implementation. See Authentication and Authorization.
- Both supported security schemes (ShopperToken and AmOauth2) use custom scopes.
- Configure each endpoint with exactly one scope. The scope must be included in the corresponding auth token.
- Storefront quota limits are now checked. This could break existing implementations.
- The Script API has been enhanced with methods that allow developers to create success and error responses conveniently.
- The API contract (OAS schema file) supports local references of shared objects that can be reused at different places in the schema.
- Circuit breaker mechanism: This protective measure blocks API requests when the error rate is too high.
To learn more about Custom APIs see Custom APIs.
- Introduction and enforcement of custom scopes to address security compliance. This can potentially a break an implementation. See Authentication and Authorization.
Infocenter Retirement: On June 30, 2023, the Infocenter was retired, and documentation currently hosted on the Infocenter will be published to Salesforce Help, Commerce Cloud Developer Center, and Salesforce B2C Commerce Developer Documentation Resources. For more information, see the release note.