No se han encontrado widgets en la barra lateral
0 0
Read Time:15 Second
/**
* @param int $customerId
*/
public function getWishlistByCustomerId($customerId)
{
 $wishlist = $this->wishlist->loadByCustomerId($customerId)->getItemCollection();
 return $wishlist;
}

getWishlistByCustomerId($customerId);
if(count($wishlistCollection)) {
foreach ($wishlistCollection as $_item) {
/* You can get ID, Name, Desc. ... */
echo $_item->getProduct()->getId();
}
} else {
/* Display message if no item found in wishlist */
echo __("Nothing found in your wishlist!");
}
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.