I need to write some code in checkout/order review section. file--- app\design\frontend\base\default\template\checkout\onepage\review/item.phtml
Now the problem in details:
I have a drop down custom attribute PURCHASE_TYPE. And one of its value MARGIN
Now, I need to show (*) after the product name in the checkout/order review which products custom attribute PURCHASE_TYPE. is MARGIN.
enter image description here
1 Answer 1
Step1: goto app\design\frontend\yourpackgae\default\template\checkout\onepage\review\item.phtml
Step2: load product by $item->getProductId();
$ProductObject=Mage:getModel('catalog/product')->load($item->getProductId())
Get product value from $ProductObject->getAttributeText('purchase_type');
and the code
$this->escapeHtml($this->getProductName()) .''. $ProductObject->getAttributeText('purchase_type'
-
hi, Amit Bera, Thanks for your answer. but my problem is, i dont to add attribute text with product name. I just want to add () symbol.which products Purchase_type attributes value is "Margin". () is not products attribute or value.e-Biz Village– e-Biz Village2014年11月06日 21:17:54 +00:00Commented Nov 6, 2014 at 21:17