cancel
Showing results for 
Search instead for 
Did you mean: 

wishlist email share customization

wishlist email share customization

Hi,

using 2.2.2. The customer asks me to have SKUs in the email template coming from the wishlist sharing. So I overridden block this way:

\app\code\Hoop\Util\Block\Share\Email\Items.php:

<?php
namespace Hoop\Util\Block\Share\Email;

class Items extends \Magento\Wishlist\Block\Share\Email\Items
{
    public function getProductSku($product) {
        die('test');
    }
}

and obviously di.xml:

<preference for="Magento\Wishlist\Block\Share\Email\Items" type="Hoop\Util\Block\Share\Email\Items" />

now when I try to share wishlist I get:

Invalid template file: 'email/items.phtml' in module: 'Hoop_Util' block's name: 'wishlist.email.items'

what shoud be complete path for the template file?

Thanks a lot