v1.2.5: How to fix issue asking to fill email address for logged-in customer?

Created by Jane D, Modified on Fri, 11 Jun 2021 at 10:09 AM by Jane D

QUESTION:


I use module v1.2.5 for my Magento 2.3.6 so far.

Everything is working fine except it asks logged-in customers to enter the email address in the Notify Me box.


Any idea how to fix it?


ANSWER:


To fix this error, in the file app/code/Bss/ProductStockAlert/view/frontend/templates/product/view.phtml, please find the line 51 and add the code below in the value part:


<?php echo $block->escapeHtml($block->getCustomerEmail()) ?>


If you need any further assistance, please feel free to contact us. We'd be happy to support!  



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us how can we improve this article!

Select atleast one of the reasons

Feedback sent

We apprciate your effort and will try to fix the article