addToCurrentCart( )


Adds catalog line items to the current site visitor's cart.

について addToCurrentCart() function returns a Promise that resolves to the updated current cart when the specified items have been added.

注: When adding catalog items, options.lineItems.catalogReference is required.

Permissions
Manage Stores - all permissions
Manage eCommerce - all permissions
Learn more about app permissions.
メソッド宣言
コピー
メソッド・パラメータ
optionsAddToCurrentCartOptions

Items to be added to the current cart.

リターン
Return Type:Promise<AddToCartResponse>
役に立ちましたか?
はい
いいえ