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.

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

2 Answers 2

2

Try this in your css file

mencom/css/styles0.css

.product-view .product-shop .product-parts span {
    padding-right: 3%;
}
0
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

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

Your Answer

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

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