Skip to content
On this page

stage.ref.product.cart

物販カートに関する操作です。

INFO

Hedgehog はユーザーログイン不要なモデルになっているため、バックエンドカートに相当する機能がありません。 また、決済は credit-dialog というコンポーネントを利用して行う事を想定しています。
ProductCartOperator 及び ProductCartReference はフロントエンドカートの作成を支援し、同時に当該コンポーネントに渡すデータの作成を行います。

メソッド

delete()

引数必須内容
uuidstring物販カートの UUID
type
null

物販カートを削除します。

使用方法

ts
const cart = Hedgehog.stage
  .ref("ステージのUUID")
  .product.cart.delete("物販カートのUUID");

ref()

引数必須内容
uuidstring物販カートの UUID
type
null

UUID から物販カートの参照を取得します。

使用方法

ts
const cart = await Hedgehog.stage
  .ref("ステージのUUID")
  .product.cart.ref("物販カートのUUID");