Jump to content

Edit History

JBW

JBW

Yes, Customer Account Link is the correct module.

I had posted the full code from the .tpl file without any changes just as a reference so you know where to look at. As you posted this in Developer forum I assumed you know how to read and change this code.

Quickest (and dirty) solution is to comment out the lines in the php code (add // in front) you don't want e.g. here for credit slips and orders - please not this is to be re-done in case they update the module.

    public function getWidgetVariables($hookName = null, array $configuration = [])
    {
        $link = $this->context->link;

        $my_account_urls = array(
            //2 => array(
            //    'title' => $this->trans('Orders', array(), 'Admin.Global'),
            //    'url' => $link->getPageLink('history', true),
            //),
            //3 => array(
            //    'title' => $this->trans('Credit slips', array(), 'Modules.Customeraccountlinks.Admin'),
            //    'url' => $link->getPageLink('order-slip', true),
            //),
            4 => array(
                'title' => $this->trans('Addresses', array(), 'Shop.Theme.Global'),
                'url' => $link->getPageLink('addresses', true),
            ),
            0 => array(
                'title' => $this->trans('Personal info', array(), 'Modules.Customeraccountlinks.Admin'),
                'url' => $link->getPageLink('identity', true),
            ),
        );
JBW

JBW

Yes, Customer Account Link is the correct module.

I had posted the full code from the .tpl file without any changes just as a reference so you know where to look at. As you posted this in Developer forum I assumed you know how to read and change this code.

Quickest (and dirty) solution is to comment out the lins in the php code (add // in front) you don't want e.g. here for credit slips and orders - please not this is to be re-done in case they update the module.

    public function getWidgetVariables($hookName = null, array $configuration = [])
    {
        $link = $this->context->link;

        $my_account_urls = array(
            //2 => array(
            //    'title' => $this->trans('Orders', array(), 'Admin.Global'),
            //    'url' => $link->getPageLink('history', true),
            //),
            //3 => array(
            //    'title' => $this->trans('Credit slips', array(), 'Modules.Customeraccountlinks.Admin'),
            //    'url' => $link->getPageLink('order-slip', true),
            //),
            4 => array(
                'title' => $this->trans('Addresses', array(), 'Shop.Theme.Global'),
                'url' => $link->getPageLink('addresses', true),
            ),
            0 => array(
                'title' => $this->trans('Personal info', array(), 'Modules.Customeraccountlinks.Admin'),
                'url' => $link->getPageLink('identity', true),
            ),
        );
×
×
  • Create New...