canuckhost Posted July 26, 2012 Share Posted July 26, 2012 Hello, My issue is that the "My Details" navigation does not include the "Change Credit Card Details" link in a new template I have created for the client area. When I switch the template back to "classic" The "change credit card details" link appears. When looking at the code for my custom template it looks like its trying to pull in that link but it isn't appearing on the page. Any ideas? <div class="contentbox"> <a href="{$smarty.server.PHP_SELF}?action=details">{$LANG.clientareanavdetails}</a> | <a href="{$smarty.server.PHP_SELF}?action=contacts">{$LANG.clientareanavcontacts}</a> | <strong>{$LANG.clientareanavaddcontact}</strong>{if $ccenabled} | <a href="{$smarty.server.PHP_SELF}?action=creditcard">{$LANG.clientareanavchangecc}</a>{/if} | <a href="{$smarty.server.PHP_SELF}?action=changepw">{$LANG.clientareanavchangepw}</a> | <a href="{$smarty.server.PHP_SELF}?action=changesq">{$LANG.clientareanavsecurityquestions}</a> </div> Thanks in advance for any help. canuckhost 0 Quote Link to comment Share on other sites More sharing options...
gbrennae Posted July 26, 2012 Share Posted July 26, 2012 do a smarty debug dump and check to see if $ccenabled is defined. 0 Quote Link to comment Share on other sites More sharing options...
canuckhost Posted July 26, 2012 Author Share Posted July 26, 2012 Thanks for the reply but... any chance someone can point me to step-by-step instructions on how to do a "smarty debug dump"? Cheers canuckhost 0 Quote Link to comment Share on other sites More sharing options...
gbrennae Posted July 26, 2012 Share Posted July 26, 2012 See here: http://www.smarty.net/docs/en/language.function.debug.tpl Just include the {debug} tag anywhere in the .tpl file you want to get all the defined variables for. Then visit the page in question in your browser. Make sure you don't have a popup blocker active in your browser when you go to the page otherwise you wont see the debug window. 0 Quote Link to comment Share on other sites More sharing options...
canuckhost Posted July 31, 2012 Author Share Posted July 31, 2012 I have run the {debug} on a few of the suspect pages where the navigation is located... (clientareaaddcontacts.tpl, clientareadetails.tpl, clientareacreditcard.tpl) When I searched each of the debug pop up windows for the above pages....I don't see any instances of "$ccenabled" anywhere. What does this mean? What’s the next step? Thanks in advance canuckhost 0 Quote Link to comment Share on other sites More sharing options...
corrupterd Posted August 14, 2012 Share Posted August 14, 2012 Can anyone help with this? 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted August 14, 2012 Share Posted August 14, 2012 You could always just remove the if statement and it will always show the link to change a credit card, all that variables does is not show the link if you have credit card storage disabled system wide. So just change this: {if $ccenabled} | <a href="{$smarty.server.PHP_SELF}?action=creditcard" >{$LANG.clientareanavchangecc}</a>{/if} to this: | <a href="{$smarty.server.PHP_SELF}?action=creditcard" >{$LANG.clientareanavchangecc}</a> 0 Quote Link to comment Share on other sites More sharing options...
corrupterd Posted September 14, 2012 Share Posted September 14, 2012 I was able to fix my issue. What was happening is our template was older and was using outdated variables. So we just replaced "$ccenabled" in our template with "$condlinks.updatecc" and it works fine now. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.