cancel
Showing results for 
Search instead for 
Did you mean: 

M2 show simple product sku in shopping card of configurable product

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Re: M2 show simple product sku in shopping card of configurable product

Hi @Damian Culotta,

 

and the sku is displayed by the normal magento function here:

 

vendor\magento\module-checkout\view\frontend\templates\cart\item\default.phtml

 

I would be also helpful, to know how to get the simple product sku from the configuration product without the is_visible_checkout option, so I can insert it manually in a copy of default.phtml

 

Re: M2 show simple product sku in shopping card of configurable product

Right!

Without checking the code I could assume that, if you are using a complex type of product, to get the child SKU you need to apply some validation.

In this case, probably, the extension is just getting the attribute for a given product without checking if the product has childs or parent.

My guess is that the issue you reported could be related with that.