117 return (
bool)$this->scopeConfig->getValue(
118 'rss/wishlist/active',
135 foreach (
$wishlist->getItemCollection() as $wishlistItem) {
137 $product = $wishlistItem->getProduct();
138 $productUrl = $this->wishlistBlock->getProductUrl(
$product, [
'_rss' =>
true]);
140 $product->setAllowedPriceInRss(
true);
141 $product->setProductUrl($productUrl);
144 $this->eventManager->dispatch(
'rss_wishlist_xml_callback', $args);
150 $description =
'<table><tr><td><a href="' . $productUrl .
'"><img src="' 151 . $this->imageHelper->init(
$product,
'rss_thumbnail')->getUrl()
152 .
'" border="0" align="left" height="75" width="75"></a></td>' 153 .
'<td style="text-decoration:none;">' 154 . $this->outputHelper->productAttribute(
160 if (
$product->getAllowedPriceInRss()) {
165 if (trim(
$product->getDescription()) !=
'') {
167 . $this->outputHelper->productAttribute(
175 $data[
'entries'][] = ([
177 'link' => $productUrl,
183 'title' =>
__(
'We cannot retrieve the Wish List.'),
184 'description' =>
__(
'We cannot retrieve the Wish List.'),
185 'link' => $this->urlBuilder->getUrl(),
186 'charset' =>
'UTF-8',
198 return 'rss_wishlist_data';
219 $newUrl = $this->urlBuilder->getUrl(
220 'wishlist/shared/index',
224 return [
'title' =>
$title,
'description' =>
$title,
'link' => $newUrl,
'charset' =>
'UTF-8'];
234 $wishlist = $this->wishlistHelper->getWishlist();
248 $priceRender = $this->layout->getBlock(
'product.price.render.default');
250 $priceRender = $this->layout->createBlock(
251 \
Magento\Framework\Pricing\Render::class,
252 'product.price.render.default',
253 [
'data' => [
'price_render_handle' =>
'catalog_product_prices']]
257 $price = $priceRender->render(
258 'wishlist_configured_price',
260 [
'zone' => \
Magento\Framework\Pricing\Render::ZONE_ITEM_LIST]
279 if ($this->request->getParam(
'sharing_code') == $this->
getWishlist()->getSharingCode()) {