Magento – Model View View detailed in Article

If you want to leave the item number of the article in the einzeigen Artikeldetailansicht, This is done with one line of code.

In the file simple.phtml (for simple products) in the folder app / design / frontend /[base or default]/[IhrTemplate]/template/catalog/product/view/type or in the file view.phtml in the folder above the line

<?php echo $this->__(‘SKU’) ?>: <?php echo nl2br($_product->getSku()) ?>

insert. Bei der simple.phtml ca. in line 40. Bei view.phtml ca. in line 53 after <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), ‘name’) ?></h1> Dies aber natürlich nur Vorschläge >productAttribute($_product, $_product->getName(), &#8216;name&#8217;) ?></h1>
But this of course only suggestions 😉

Ready.

Used in Magento Version 1.4.1.1 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *