Jump to content

Remove "My Vouchers" from Account Page


bamoore91

Recommended Posts

Hello All,

What I'm looking to do is remove the "My Vouchers" link from the front end site. I would still like the ability to give out vouchers to people I know or run promos on FaceBook or other sites, I just don't want anyone to be able to view them, but i want them able to be used by anyone if given the voucher number. 

Anyone know the easiest way to go about removing the link from the front end site but still have vouchers be fully operational?

Thanks-

Brandon

Link to comment
Share on other sites

you have to alter theme file: my-account.tpl

there is a code like:
 

<li><a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" title="{l s='Vouchers'}"><i class="icon-barcode"></i><span>{l s='My vouchers'}</span></a></li>

just remove it.

Link to comment
Share on other sites

  • 2 years later...
On 9/5/2016 at 4:05 AM, vekia said:

you have to alter theme file: my-account.tpl

there is a code like:
 


<li><a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" title="{l s='Vouchers'}"><i class="icon-barcode"></i><span>{l s='My vouchers'}</span></a></li>

just remove it.

Hi

I have the same issue but it seams that i can't find the line code which you mentioned. i attached my theme (My-account.tpl) Here, So could you please check it out and tell me how should i get the job done?

my-account.tpl

Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...
On 6/27/2019 at 7:12 PM, mediaportal said:

Is there anyone to help me ??? 😞

Hi,

In case you didn't solve this yet:

Delete or comment out these lines:

{if $configuration.voucher_enabled && !$configuration.is_catalog}
        <a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="discounts-link" href="{$urls.pages.discount}">
          <span class="link-item">
            <i class="material-icons">&#xE54E;</i>
            {l s='Vouchers' d='Shop.Theme.CustomerAccount'}
          </span>
        </a>
      {/if}

Link to comment
Share on other sites

  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...