[-] MO : Bug fix - Blockwishlist, Product image link in BO
This commit is contained in:
@@ -38,7 +38,7 @@ class BlockWishList extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'blockwishlist';
|
$this->name = 'blockwishlist';
|
||||||
$this->tab = 'front_office_features';
|
$this->tab = 'front_office_features';
|
||||||
$this->version = 0.3;
|
$this->version = 0.4;
|
||||||
$this->author = 'PrestaShop';
|
$this->author = 'PrestaShop';
|
||||||
$this->need_instance = 0;
|
$this->need_instance = 0;
|
||||||
|
|
||||||
@@ -258,7 +258,7 @@ class BlockWishList extends Module
|
|||||||
$this->_html .= '
|
$this->_html .= '
|
||||||
<tr>
|
<tr>
|
||||||
<td class="first_item">
|
<td class="first_item">
|
||||||
<img src="'.$this->context->link->getImageLink($product['link_rewrite'], $product['cover'], 'small').'" alt="'.htmlentities($product['name'], ENT_COMPAT, 'UTF-8').'" style="float:left;" />
|
<img src="'.$this->context->link->getImageLink($product['link_rewrite'], $product['cover'], ImageType::getFormatedName('small')).'" alt="'.htmlentities($product['name'], ENT_COMPAT, 'UTF-8').'" style="float:left;" />
|
||||||
'.$product['name'];
|
'.$product['name'];
|
||||||
if (isset($product['attributes_small']))
|
if (isset($product['attributes_small']))
|
||||||
$this->_html .= '<br /><i>'.htmlentities($product['attributes_small'], ENT_COMPAT, 'UTF-8').'</i>';
|
$this->_html .= '<br /><i>'.htmlentities($product['attributes_small'], ENT_COMPAT, 'UTF-8').'</i>';
|
||||||
@@ -409,7 +409,7 @@ class BlockWishList extends Module
|
|||||||
foreach ($products as $key => $val)
|
foreach ($products as $key => $val)
|
||||||
{
|
{
|
||||||
$image = Image::getCover($val['id_product']);
|
$image = Image::getCover($val['id_product']);
|
||||||
$products[$key]['image'] = $this->context->link->getImageLink($val['link_rewrite'], $image['id_image'], 'small');
|
$products[$key]['image'] = $this->context->link->getImageLink($val['link_rewrite'], $image['id_image'], ImageType::getFormatedName('small'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$fields_list = array(
|
$fields_list = array(
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<module>
|
<module>
|
||||||
<name>blockwishlist</name>
|
<name>blockwishlist</name>
|
||||||
<displayName><![CDATA[Wishlist block]]></displayName>
|
<displayName><![CDATA[Wishlist block]]></displayName>
|
||||||
<version><![CDATA[0.3]]></version>
|
<version><![CDATA[0.4]]></version>
|
||||||
<description><![CDATA[Adds a block containing the customer's wishlists.]]></description>
|
<description><![CDATA[Adds a block containing the customer's wishlists.]]></description>
|
||||||
<author><![CDATA[PrestaShop]]></author>
|
<author><![CDATA[PrestaShop]]></author>
|
||||||
<tab><![CDATA[front_office_features]]></tab>
|
<tab><![CDATA[front_office_features]]></tab>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<div class="product_image">
|
<div class="product_image">
|
||||||
<a href="{$link->getProductlink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html'}" title="{l s='Product detail' mod='blockwishlist'}">
|
<a href="{$link->getProductlink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html'}" title="{l s='Product detail' mod='blockwishlist'}">
|
||||||
<img src="{$link->getImageLink($product.link_rewrite, $product.cover, 'medium_default')|escape:'html'}" alt="{$product.name|escape:'html':'UTF-8'}" />
|
<img src="{$link->getImageLink($product.link_rewrite, $product.cover, ImageType::getFormatedName('medium'))|escape:'html'}" alt="{$product.name|escape:'html':'UTF-8'}" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="product_infos">
|
<div class="product_infos">
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<div class="product_image">
|
<div class="product_image">
|
||||||
<a href="{$link->getProductlink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html'}" title="{l s='Product detail' mod='blockwishlist'}">
|
<a href="{$link->getProductlink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html'}" title="{l s='Product detail' mod='blockwishlist'}">
|
||||||
<img src="{$link->getImageLink($product.link_rewrite, $product.cover, 'medium_default')|escape:'html'}" alt="{$product.name|escape:'html':'UTF-8'}" />
|
<img src="{$link->getImageLink($product.link_rewrite, $product.cover, ImageType::getFormatedName('medium'))|escape:'html'}" alt="{$product.name|escape:'html':'UTF-8'}" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="product_infos">
|
<div class="product_infos">
|
||||||
|
|||||||
Reference in New Issue
Block a user