I'm trying to add a custom tab to the Customer account page. I followed the Mageplaza guide here, however I'm having two issues.
First the menu item is added properly, but it points to routename/customer/index/ instead of the correct path (I changed it in the customer_account.xml file).
If type out the correct link, the page loads, but it bring up my second issue. On the page I'm getting an undefined error:
Exception #0 (Exception): Notice: Undefined property: Magento\Framework\View\Element\Template::$getProductCollection in D:\xampp73\htdocs\testm2\app\code\Msquared\CustPriceRange\view\frontend\templates\custpricerange.phtml on line 22
Here's a link to the module GitHub repo.
I'm running a local XAMPP copy of M2.3.4 on PHP 7.3.
Any help would be appreciated.