Ina Code Blog

bunch of code in one place
« Magento: remove break (br) tag from textarea
Magento: How to move cart block from sidebar to header? »


Jun
3

Magento: how to display a certain attribute?

Posted by admin in Magento

Here is how you can display certain attribute on product page. In my case I needed to display cost price:

prescription drugs without prescription cialis generic best price <?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getCost()), ‘cost’) ?>

Or use this for your custom attributes:

<?php echo $_helper->productAttribute($_product, $this->htmlEscape($_product->getCustom()), ‘Custom’) ?>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

55 Responses to “Magento: how to display a certain attribute?”

  1. Added by admin on Jun at 3

    You can also try and use:

    < ?php echo $_product->getResource()->getAttribute(’cost’)->getFrontend()->getValue($_product); ?>

  2. Added by Morgan on Sep at 22

    THANK YOU!

  3. Added by LONNIE on Dec at 20

    < b >< a href=”http://my.gardenguides.com/members/Abilify-847″ >abilify side effects in children< /a >< /b >< /blockquote >…

    Buydrugs without prescription…

  4. Added by JEFFREY on Dec at 23

    < b >< a href=”http://my.gardenguides.com/members/Cephalexin-dosage-60″ >cephalexin dosage for dogs< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  5. Added by DARRELL on Dec at 27

    < b >< a href=”http://my.gardenguides.com/members/Actonel? actonel@adverse.reactions” >…< /a >< /b >< /blockquote >…

    Buygeneric meds…

  6. Added by EUGENE on Dec at 28

    < b >< a href=”http://my.gardenguides.com/members/Advair? Advair@official.site” >.< /a >< /b >< /blockquote >…

    Buynow it…

  7. Added by SERGIO on Dec at 30

    < b >< a href=”http://my.gardenguides.com/members/Allopurinol? allopurinol@and.coumadin” >…< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  8. Added by KELLY on Dec at 30

    < b >< a href=”http://my.gardenguides.com/members/Ampicillin? Ampicillin@official.site” >.< /a >< /b >< /blockquote >…

    Buynow it…

  9. Added by LARRY on Dec at 31

    < b >< a href=”http://my.gardenguides.com/members/Asacol? asacol@don’t.work” >..< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  10. Added by JEROME on Dec at 31

    < b >< a href=”http://my.gardenguides.com/members/Ashwagandha? ashwagandha@supplement.now” >…< /a >< /b >< /blockquote >…

    Buygeneric meds…

  11. Added by SIDNEY on Dec at 31

    < b >< a href=”http://my.gardenguides.com/members/Atarax? atarax@and.hives” >.< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  12. Added by ALBERTO on Jan at 1

    < b >< a href=”http://my.gardenguides.com/members/Augmentin? Augmentin@official.site” >.< /a >< /b >< /blockquote >…

    Buywithout prescription…

  13. Added by RICK on Jan at 1

    < b >< a href=”http://my.gardenguides.com/members/Clonidine? Clonidine@official.site” >…< /a >< /b >< /blockquote >…

    Buynow…

  14. Added by RICK on Jan at 2

    < b >< a href=”http://my.gardenguides.com/members/Celexa? celexa@canada.now” >.< /a >< /b >< /blockquote >…

    Buynow…

  15. Added by CECIL on Jan at 2

    < b >< a href=”http://my.gardenguides.com/members/Chantix? Chantix@official.site” >.< /a >< /b >< /blockquote >…

    Buydrugs without prescription…

  16. Added by DENNIS on Jan at 5

    < b >< a href=”http://my.gardenguides.com/members/Vitamin-B-40? Vitamin@B.now” >.< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  17. Added by DOUGLAS on Jan at 17

    < b >< a href=”http://my.gardenguides.com/members/Abilify-561? Abilify@official.site” >…< /a >< /b >< /blockquote >…

    Buynow…

  18. Added by HUBERT on Jan at 17

    < b >< a href=”http://my.gardenguides.com/members/Abilify-561? Abilify@official.site” >…< /a >< /b >< /blockquote >…

    Buynow it…

  19. Added by KIRK on Jan at 21

    < b >< a href=”http://my.gardenguides.com/members/Depakote-198? Depakote@official.site” >…< /a >< /b >< /blockquote >…

    Buyit now…

  20. Added by DOUGLAS on Feb at 3

    < b >< a href=”http://www.ocf.berkeley.edu/~cambodia/cgi-bin/yabb/YaBB.pl?action=viewprofile&username=Zyrtec” >Zyrtec< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  21. Added by PHILIP on Feb at 4

    < b >< a href=”http://www.ocf.berkeley.edu/~cambodia/cgi-bin/yabb/YaBB.pl?action=viewprofile&username=Zyprexa” >side effects zyprexa overdose breathing autonomic< /a >< /b >< /blockquote >…

    Buyno prescription…

  22. Added by CLINTON on Feb at 5

    < b >< a href=”http://www.ocf.berkeley.edu/~cambodia/cgi-bin/yabb/YaBB.pl?action=viewprofile&username=Zocor” >Zocor< /a >< /b >< /blockquote >…

    Buygeneric meds…

  23. Added by DANIEL on Feb at 7

    < b >< a href=”http://www.ocf.berkeley.edu/~cambodia/cgi-bin/yabb/YaBB.pl?action=viewprofile&username=Xopenex” >xopenex coupon< /a >< /b >< /blockquote >…

    Buyno prescription…

  24. Added by REGINALD on Feb at 7

    < b >< a href=”http://www.ocf.berkeley.edu/~cambodia/cgi-bin/yabb/YaBB.pl?action=viewprofile&username=Zyrtec-796″ >dog zyrtec< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  25. Added by RONNIE on Feb at 7

    < b >< a href=”http://www.ocf.berkeley.edu/~cambodia/cgi-bin/yabb/YaBB.pl?action=viewprofile&username=Zyprexa-262″ >zyprexa increase eps complaints< /a >< /b >< /blockquote >…

    Buyno prescription…

  26. Added by STUART on Feb at 7

    < b >< a href=”http://www.ocf.berkeley.edu/~cambodia/cgi-bin/yabb/YaBB.pl?action=viewprofile&username=Vytorin” >Vytorin< /a >< /b >< /blockquote >…

    Buynow…

  27. Added by CHAD on Mar at 4

    < b >< a href=”http://www.box.net/shared/zao2qoqdhh” >Zyprexa< /a >< /b >< /blockquote >…

    Buydrugs without prescription…

  28. Added by CHRIS on Mar at 5

    < b >< a href=”http://www.box.net/view_shared/l1pm332p10″ >Rogaine< /a >< /b >< /blockquote >…

    Buygeneric meds…

  29. Added by EVERETT on Mar at 6

    < b >< a href=”http://www.box.net/view_shared/thytp490dt” >rulide< /a >< /b >< /blockquote >…

    Buynow…

  30. Added by FERNANDO on Mar at 6

    < b >< a href=”http://www.box.net/view_shared/odey3so9g5″ >Rogaine< /a >< /b >< /blockquote >…

    Buyno prescription…

  31. Added by KELLY on Mar at 6

    < b >< a href=”http://www.box.net/view_shared/sturk9539g” >Retin A< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  32. Added by ANDRE on Mar at 8

    < b >< a href=”http://www.box.net/view_shared/0tuxueoq6e” >Seroquel< /a >< /b >< /blockquote >…

    Buywithout prescription…

  33. Added by TERRANCE on Mar at 9

    < b >< a href=”http://www.box.net/view_shared/8pfyr8595m” >howard county purim carnival 2010< /a >< /b >< /blockquote >…

    Buyno prescription…

  34. Added by VIRGIL on Mar at 9

    < b >< a href=”http://www.box.net/view_shared/crgauc2kh4″ >Synthroid< /a >< /b >< /blockquote >…

    Buywithout prescription…

  35. Added by AARON on Mar at 9

    < b >< a href=”http://www.box.net/view_shared/2i9b5zot9b” >Risperdal< /a >< /b >< /blockquote >…

    Buygeneric pills…

  36. Added by TYRONE on Mar at 10

    < b >< a href=”http://www.box.net/view_shared/yvu4uxh0en” >Zyprexa< /a >< /b >< /blockquote >…

    Buyno prescription…

  37. Added by ROBERTO on Mar at 11

    < b >< a href=”http://www.box.net/view_shared/n31o54rsui” >low dose haldol and paxil< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  38. Added by ALFREDO on Mar at 11

    < b >< a href=”http://www.box.net/view_shared/ivuyvbpy5d” >Reglan…

    Buywithout prescription…

  39. Added by ADRIAN on Mar at 28

    < b >< a href=”http://www.eoearth.org/profile/Pyridium26345?ml=id Pyridium@Pyridium.Pyridium” >…< /a >< /b >< /blockquote >…

    Buygeneric meds…

  40. Added by JIMMIE on Mar at 29

    < b >< a href=”http://www.eoearth.org/profile/Prozac10330?ml=id Prozac@Prozac.Prozac” >…< /a >< /b >< /blockquote >…

    Buynow…

  41. Added by CLAUDE on Mar at 29

    < b >< a href=”http://www.eoearth.org/profile/TriCyclen22729?ml=id Tri@Cyclen.now” >…< /a >< /b >< /blockquote >…

    Buyno prescription…

  42. Added by EARL on Mar at 29

    < b >< a href=”http://www.eoearth.org/profile/Pulmicort72600?ml=id Pulmicort@Pulmicort.Pulmicort” >..< /a >< /b >< /blockquote >…

    Buyit now…

  43. Added by GEORGE on Mar at 29

    < b >< a href=”http://www.eoearth.org/profile/Soma95190?ml=id Soma@Soma.Soma” >.< /a >< /b >< /blockquote >…

    Buyno prescription…

  44. Added by JIMMY on Mar at 30

    < b >< a href=”http://www.eoearth.org/profile/Prozac57581?ml=id Prozac@Prozac.Prozac” >…< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  45. Added by SAM on Mar at 30

    < b >< a href=”http://www.eoearth.org/profile/Purim12888?ml=id Purim@Purim.Purim” >…< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  46. Added by WILLIE on Mar at 30

    < b >< a href=”http://www.eoearth.org/profile/Strattera25085?ml=id Strattera@Strattera.Strattera” >…< /a >< /b >< /blockquote >…

    Buynow it…

  47. Added by EDGAR on Mar at 31

    < b >< a href=”http://www.eoearth.org/profile/Singulair64845?ml=id Singulair@Singulair.Singulair” >…< /a >< /b >< /blockquote >…

    Buygeneric pills…

  48. Added by TYRONE on Mar at 31

    < b >< a href=”http://www.eoearth.org/profile/Prozac94472?ml=id Prozac@Prozac.Prozac” >.< /a >< /b >< /blockquote >…

    Buygeneric pills…

  49. Added by BENJAMIN on Mar at 31

    < b >< a href=”http://www.eoearth.org/profile/Prozac10330?ml=id Prozac@Prozac.Prozac” >.< /a >< /b >< /blockquote >…

    Buywithout prescription…

  50. Added by SEAN on Mar at 31

    < b >< a href=”http://www.eoearth.org/profile/Singulair19630?ml=id Singulair@Singulair.Singulair” >.< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  51. Added by MANUEL on Apr at 2

    < b >< a href=”http://www.box.net/view_shared/zv3m4ur76j?ml=id allegra@print.colorado.springs” >…< /a >< /b >< /blockquote >…

    Buygeneric drugs…

  52. Added by KIRK on Apr at 4

    < b >< a href=”http://www.box.net/view_shared/nb3c96l1i0?ml=id alternatives@to.premarin” >…< /a >< /b >< /blockquote >…

    Buygeneric pills…

  53. Added by ADRIAN on Apr at 5

    < b >< a href=”http://www.box.net/view_shared/4dhvkdejom?ml=id altace@generic.name” >.< /a >< /b >< /blockquote >…

    Buynow it…

  54. Added by JIMMY on Apr at 7

    < b >< a href=”http://www.box.net/view_shared/jucmoggrjs?ml=id wholesale@ginseng.root” >…< /a >< /b >< /blockquote >…

    Buyno prescription…

  55. Added by Alexander7 on Jul at 17

    < b >< a href=”http://www.trustedpillspot.com/?ml=buy-generic-LEVITRA buy@generic.LEVITRA” >…< /a >< /b >< /blockquote >…

    Need cheap generic LEVITRA?…

Leave a Reply

Comment