bamoore91 Posted September 4, 2016 Share Posted September 4, 2016 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 More sharing options...
vekia Posted September 4, 2016 Share Posted September 4, 2016 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 More sharing options...
mediaportal Posted June 14, 2019 Share Posted June 14, 2019 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 More sharing options...
mediaportal Posted June 27, 2019 Share Posted June 27, 2019 Is there anyone to help me ??? 😞 Link to comment Share on other sites More sharing options...
Coloranti Posted February 11, 2020 Share Posted February 11, 2020 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"></i> {l s='Vouchers' d='Shop.Theme.CustomerAccount'} </span> </a> {/if} Link to comment Share on other sites More sharing options...
Inform-All Posted January 25, 2021 Share Posted January 25, 2021 A nasty fix for a nasty shortcoming of PS Insert this in your custom CSS file, and change the word "Waardebonnen" for the language you want to hide the link in My Account. [title~="Waardebonnen"] { display: none!important; } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now