Returns the basket of the current user. Based on the selected basket persistence, the pipelet can restore the basket of a previous user session. If the current storefront user is not identical with the user associated with the restored basket, all personal data, such as addresses, payment settings or redeemed coupons, are removed from the basket.
The configuration parameter 'Create' can be set to 'true' to create a new basket if no existing basket is found. If no basket is found or created, the pipelet returns on the ERROR exit.
See detailed description of basket persistence options in the Business Manager preferences section.
The storefront session's currency will be compared with the basket's currency. If they do not match: The basket's currency will be changed to that of the session, all payment instruments and shipping methods in the basket will be removed (since they are currency-specific). In the typical scenario, the scripts in the pipeline after the GetBasket pipelet will do all the recalculations so the prices and basket totals will be correct in the newly changed currency.
Represents the basket instance that was stored for the registered user during a previous session, but not restored by 'GetBasket' since a new basket was carried over in the current session.
© Copyright 2000-2022, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.