cancel
Showing results for 
Search instead for 
Did you mean: 

Configurable Product - SKU issue

SOLVED

Configurable Product - SKU issue

Hi, I've searched a bit and didn't get the right article so I will try it:

 

I have a problem with Article Numbers (SKU) for configurable products. If I get an order of an configurable product, I will receive only the SKU from the conf. product instead of the SKU of the attached product.

For example: SKU of the conf. product is "1", the attached product is"101". If the order is placed the right number would b the "101" but I just receive the "1" in my system. How can I fix this? 

 

Thanks in advance, Markus

 

 

 

 

Bildschirmfoto 2016-08-08 um 11.23.04.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Configurable Product - SKU issue

Hi,

You can add below code intoname.phtml file

 

 <?php
if($_item->getProductType()=='configurable'){
$parent = Mage::getModel('catalog/product')->load($_item->getProductId());
echo $parent->getSku();

}?>
instead of

<?php echo implode('<br />', Mage::helper('catalog')->splitSku($this->escapeHtml($this->getSku()))); ?>

Filepath:-app/design/adminhtml/default/default/template/sales/items/column/name.phtml

 

View solution in original post

1 REPLY 1

Re: Configurable Product - SKU issue

Hi,

You can add below code intoname.phtml file

 

 <?php
if($_item->getProductType()=='configurable'){
$parent = Mage::getModel('catalog/product')->load($_item->getProductId());
echo $parent->getSku();

}?>
instead of

<?php echo implode('<br />', Mage::helper('catalog')->splitSku($this->escapeHtml($this->getSku()))); ?>

Filepath:-app/design/adminhtml/default/default/template/sales/items/column/name.phtml