関数
Cart::saveGroupAndItemLabelsInGroupItemsCart( string $serial )
説明 説明
We need to save the labels in case a group or item is deleted or its label is changed during checkout, otherwise it will disappear from the combo-set cart HTML
We can’t save these values directly in the group items cart because it may cause identical cart items to be duplicated if the buyer adds the same combo-set after a label has been changed from the admin console
- $serial
(文字列) (必須)
ファイル: src/API/Cart.php
public function saveGroupAndItemLabelsInGroupItemsCart($serial) { $maps = self::getGroupAndItemLabelsFromSerial($serial); if (empty($maps)) { return; } $_SESSION['usces_cart'][$serial]['grouplabelmap'] = $maps['grouplabelmap']; $_SESSION['usces_cart'][$serial]['itemlabelmap'] = $maps['itemlabelmap']; }