Jump to content

"Change Credit Card Details" Link


canuckhost

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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>

Link to comment
Share on other sites

  • 5 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated