How can I add this part ( it is a variant of parent product which customer bought)

enter image description here

Into a transation email. Right now I have only The basic name and the sku enter image description here

  • Same question as magento.stackexchange.com/questions/269899/… but differnet user? Please consider my comment in that question and check your customizations – HelgeB Apr 15 '19 at 10:45
  • I paste this code into items.phtml and still got nothing in the email. Can You tell me where is the mistake: – DLH Apr 16 '19 at 11:18
  • <?php if ($this->getItemOptions()): ?> <dl style="margin:0; padding:0;"> <?php foreach ($this->getItemOptions() as $option): ?> <dt><strong><em><?php echo $option['label'] ?></em></strong></dt> <dd style="margin:0; padding:0 0 0 9px;"> <?php echo nl2br($option['value']) ?> </dd> <?php endforeach ?> </dl> <?php endif ?> – DLH Apr 16 '19 at 11:19

Your Answer

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

Browse other questions tagged or ask your own question.