本文整理汇总了PHP中Magento\Checkout\Model\Session::getShipperhqData方法的典型用法代码示例。如果您正苦于以下问题:PHP Session::getShipperhqData方法的具体用法?PHP Session::getShipperhqData怎么用?PHP Session::getShipperhqData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Checkout\Model\Session
的用法示例。
在下文中一共展示了Session::getShipperhqData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cleanDownSelectedData
public function cleanDownSelectedData()
{
$requestData = $this->checkoutSession->getShipperhqData();
// $key = $this->getKey($data);
unset($requestData['checkout_selections']);
$this->checkoutSession->setShipperhqData($requestData);
}
示例2: setSessionStuffOnRequest
public function setSessionStuffOnRequest($request)
{
//TODO this should happen before this is passed to shippermapper.
$requestData = $this->checkoutSession->getShipperhqData();
//need a map so the request always uses the data in known structure
$data = $requestData['checkout_selections'];
if (!isset($data)) {
return;
}
if ($data->getSelectedDate()) {
$request->setDeliveryDateSelected($data->getSelectedDate());
}
if ($data->getCarrierGroupId()) {
$request->setCarriergroupId($data->getCarrierGroupId());
}
if ($data->getCarrierId()) {
$request->setCarrierId($data->getCarrierId());
}
}