rlfreshwater:
.... Sounds easy enough, but this is what is in my code:
<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>">
<img id="header_my_account" src="<?php echo DIR_WS_TEMPLATE_IMAGES?>header_my_account.gif" width="66" height="18" alt="" /></a></td>
```
>
> Only the first half is there, so do I just replace it and not worry about the second half???
> Website: <http://www.queerrepublictees.com/>
Hello! Your site is using an image to display the My Account link instead of just using text, thats why the code looks a little different. Here is the correct code for your site, based on the code you gave above:
Find:
<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><img id="header_my_account" src="<?php echo DIR_WS_TEMPLATE_IMAGES?>header_my_account.gif" width="66" height="18" alt="" /></a>
And replace with:
<?php if (!($_SESSION['COWOA'])) { ?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><img id="header_my_account" src="<?php echo DIR_WS_TEMPLATE_IMAGES?>header_my_account.gif" width="66" height="18" alt="" /></a><?php } ?>
All we did here is add
<?php if (!($_SESSION['COWOA'])) { ?>
to the beginning
and then
<?php } ?>
to the end.
This tells Zen Cart that if a customers is using COWOA, then it should not display the My Account link in your header.
This is not mandatory and will not cause any problems with COWOA should you choose not to do it. Although, your customers might get confused.
:smile:
Nice site by the way!