Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

the link doesn’t work, help
Jr. Member
Total Posts:  13
Joined:  2008-04-25

I created a new phtml site for customer named subscriptions. I am trying to add a link to dashboard.phtml in customer/account/dashboard.phtml by using a function getBookklubbUrl() that I added to Mage/Customer/Block/Account/Dashboard/Address.php

public function getBookklubbUrl()
return $this->getUrl('customer/bookklubb/');

In the layout map in customer.xml I added the following block:

update handle="customer_account"/>
reference name="content">
block type="customer/account_dashboard" name="customer_account_dashboard_subscriptions" template="customer/account/dashboard/subscriptions.phtml"/>

I am trying to refer to the site by calling the function getBookklubbUrl() as following:

<a href="<?php echo $this->getBookklubbUrl() ?>"><?php echo $this->__('Dina klubbgrenar'?></a>

But it doesn’t work, the subscriptions.phtml is not found. Can someone tell me what I am missing and how should I do to get it work.

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top