성공한 주문 후 success.phtml 파일에서 구매 한 제품 구매자의 다운로드 가능한 URL을 직접 제안하고 싶습니다.성공적인 주문 후 다운로드 가능한 제품 링크를 얻는 방법
// Get the latest Order ID
$order = Mage::getModel('sales/order')->load(Mage::getSingleton('checkout/session')->getLastOrderId());
// Get every products on the latest order
$items = $order->getAllItems();
// Loop the products
foreach ($items as $item){
$product = Mage::getModel('catalog/product')->setStoreId($order->getStoreId())->load($item->getProductId());
// HERE I NEED FUNCTION TO GET DOWNLOADABLE URL LINK
}
먼저 감사 :
나는 원래 다운로드 파일에 있던 URL을 변경 왜 이러는거야? 둘째 - 이미 사용자 계정 페이지에있는이 기능에 대처할 수 없다면 다운로드 가능한 제품 링크가 표시된 코드를 살펴본 후 코드 모델링을 시도 했습니까? – Prattski