0
위시리스트에있는 상품의 총계를받는 간단한 방법/기능이 있습니까?Magento Wishlish 상품 총액을 받으실 수 있습니다
위시리스트에있는 상품의 총계를받는 간단한 방법/기능이 있습니까?Magento Wishlish 상품 총액을 받으실 수 있습니다
이런 식으로 뭔가이 등 세금없이 위시리스트에있는 항목의 가격 총
, 배송public function getWishListTotal($customer) {
$wishList = Mage::getSingleton('wishlist/wishlist')->loadByCustomer($customer);
$wishListItemCollection = $wishList->getItemCollection();
$wishListTotal=0;
foreach ($wishListItemCollection as $_item) {
$_product = $_item->getProduct();
$wishListTotal = $wishListTotal + $_product->getPrice()
}
return $wishListTotal;
}
일할 수