제품 URL 및 이미지를 얻는 효율적인 방법
Magento 웹숍에 추가를 구축하는 동안 몇 가지 문제가 발생했습니다. 가능한 빠른 코드를 만들려고 노력하면서 두 가지를 알아낼 수 없었습니다. 내 (관련) 코드는 다음과 같습니다. $rc = Mage::getResourceSingleton('catalog/product'); $productName = $rc->getAttributeRawValue($productId, 'name', Mage::app()->getStore()); $productPrice = $rc->getAttributeRawValue($productId, 'price', Mage::app()->getStore()); $productImage = $rc->getAttributeRawValue($productId, 'image', Mage::app()->getStore()); $productUrl = $rc->getAttributeRawValue($productId, 'url_key', Mage::app()->getStore()); 내가 알아낼 수없는 …