Lessons in Magento Today
Printing the SKU in the cart Simple or Configurable
To print the sku in the shopping cart, even for Configurable (it will print the underlying simple product sku).
Place this code somewhere in:
app/design/frontend/default/default/template/checkout/cart/item/default.phtml
if (is_object($this->getChildProduct())): echo $this->getChildProduct()->getSku(); else: echo $_item->getSku(); endif;
This will now print the sku... onto more work.
Reference:
http://www.magentocommerce.com/boards/viewthread/56728/#t214381
Comments
Post new comment