2

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

asked Nov 5, 2014 at 20:02

1 Answer 1

0

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'
answered Nov 5, 2014 at 20:12
1
  • 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. Commented Nov 6, 2014 at 21:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.