63 $this->_helperPool = $helperPool;
76 $collection->setInStockFilter(
true)->setOrder(
'added_at',
'ASC');
87 parent::_prepareLayout();
88 $this->pageConfig->getTitle()->set(
__(
'My Wish List'));
98 return $this->
getUrl(
'customer/account/');
109 $this->_optionsCfg = $optionCfg;
133 $this->_optionsCfg[$productType] = [
'helper' => $helperName,
'template' =>
$template];
145 if (isset($this->_optionsCfg[$productType])) {
146 return $this->_optionsCfg[$productType];
147 }
elseif (isset($this->_optionsCfg[
'default'])) {
148 return $this->_optionsCfg[
'default'];
172 if ($cfg[
'template']) {
183 $block->setOptionList($this->_helperPool->get($cfg[
'helper'])->getOptions(
$item));
195 $qty = $this->
getQty($item);
196 return $qty ? $qty : 1;
205 return $this->postDataHelper->getPostData(
206 $this->
getUrl(
'wishlist/index/allcart'),
216 if ($this->currentCustomer->getCustomerId()) {
217 return parent::_toHtml();
elseif(isset( $params[ 'redirect_parent']))
_prepareCollection($collection)
getUrl($route='', $params=[])
getAddToCartQty(\Magento\Wishlist\Model\Item $item)
getOptionsRenderCfg($productType)
__construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Helper\Product\ConfigurationPool $helperPool, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, \Magento\Framework\Data\Helper\PostHelper $postDataHelper, array $data=[])
getDetailsHtml(\Magento\Wishlist\Model\Item $item)
setOptionsRenderCfgs($optionCfg)
addOptionsRenderCfg($productType, $helperName, $template=null)