How to Display Product Thumbnails in Ecshop User Center Wishlist

1)
Modify the includes/lib_clips.php file

Find the following code

$sql = 'SELECT g.goods_id, g.goods_name, g.market_price, g.shop_price AS org_price, '.

Change it to

$sql = 'SELECT g.goods_id, g.goods_name,g.goods_thumb, g.market_price, g.shop_price AS org_price, '.

Then find the following code

$goods_list[$row['goods_id']]['rec_id']        = $row['rec_id'];

Add a new line below it

$goods_list[$row['goods_id']]['goods_thumb']        = get_image_path($row['goods_id'], $row['goods_thumb'], true);

2)

Next, modify the template file. Here we use the official default template as an example.
This modification tutorial is provided by www.ecshop120.com. Please credit the source if you reprint it. Thank you!

Open the /themes/default/user_clips.dwt file

Find

<th width="35%" bgcolor="#ffffff">{$lang.goods_name}</th>

Add the following line above it

 <th  bgcolor="#ffffff">Thumbnail</th>

 Continue to find

 <td bgcolor="#ffffff"><a href="{$goods.url}" class="f6">{$goods.goods_name|escape:html}</a></td>

 Add the following line above it

 <td bgcolor="#ffffff"><a href="{$goods.url}" ><img src="{$goods.goods_thumb}" width="100" height="100"></a></td>

3) You are all set!

Leave a Comment

Your email address will not be published.