Jump to content

Wishlist product show differently on home page products


Recommended Posts

Hi to all,

 

i here again with a problem, i want show wishlist product(s) differently home page showcase, if it is wishlist product then wishlist button should cling red color.

 

for clear aspect go here http://baalintech.com/overseas/fandn/ the bottom right button for wishlist i need to show this on red (background image, rollover bg) if it is added to wishlist.

 

i think it can be done with favorite product..


favoriteproducts.php
[code]
$this->smarty->assign(array(
  'isCustomerFavoriteProduct' => (FavoriteProduct::isCustomerFavoriteProduct($this->context->customer->id, Tools::getValue('id_product')) ? 1 : 0),
  'isLogged' => (int)$this->context->customer->logged,
 ));

 

favoriteproducts.php

<button style="{if $isCustomerFavoriteProduct AND $isLogged}background-color:red;{/if}">Add to Fav product</button>

 

but i want to do it for wishlist on home page new products list

 

FYI i have added jpeg...

 

thanx in adv :)

post-487502-0-93180100-1373111328_thumb.jpg

Link to comment
Share on other sites

×
×
  • Create New...