1

I researched and found that I can find the 'part#' in view.phtml in app/design/frontend/default/mencom/template/catalog/product. The most relevant row I could find is

<div class="product-parts">
        <span><?php echo $this->__('SKU');?></span><?php echo $_product->getSku();?></div>

But it doesn't say anything about 'Part#' in the code.click here to view the screenshot

All I want is to add a space between 'Part#' and SKU(T35-...)

Thank you for your help in advance.

  • Share ur url you want to add space after Part# – Magento 2 Aug 22 '16 at 13:17
  • Here it is. mencom.com/shop/ethernet-m12-d-coded-rj45/… – Eddie Aug 22 '16 at 13:18
  • You want a space after Part# right – Magento 2 Aug 22 '16 at 13:20
  • Yes, I want to add a space after Part# but can't find where to edit. – Eddie Aug 22 '16 at 13:21
  • Add your css file .product-view .product-shop .product-parts span { padding-right: 3%; } – Magento 2 Aug 22 '16 at 13:21
2

Try this in your css file

mencom/css/styles0.css

.product-view .product-shop .product-parts span {
    padding-right: 3%;
}
|improve this answer|||||
1

Change your code as below

<div class="product-parts">
        <span><?php echo $this->__('SKU');?></span> <?php echo $_product->getSku();?></div>

or as below

<div class="product-parts">
        <span><?php echo $this->__('SKU');?></span><?php echo ' ' . $_product->getSku();?></div>

I guess you have translated SKU to Part # using translation.
File : app/locale/en_US/Mage_Catalog.csv

|improve this answer|||||
  • Neither of them works... – Eddie Aug 22 '16 at 13:28
  • I think so but where can I the translated SKU to edit? – Eddie Aug 22 '16 at 13:30
  • File : app/locale/en_US/Mage_Catalog.csv – Anshu Mishra Aug 23 '16 at 3:50
  • No, not in there... – Eddie Aug 24 '16 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.