Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add this logoff code to info box


rabbitseffort

Recommended Posts

I want the if statement for logoff from the header file added to my info box--but I tried lots of different ways to add it and it is always wrong--I am sure it is a matter of an apostrophe in the wrong place or similar--here is the line I want to add:

<?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>

 

and I would like it added in here before this first shipping link:

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

 

Thanks in advance! :thumbsup:

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Link to comment
Share on other sites

$info_box_contents[] = array('text' => ( tep_session_is_registered('customer_id') ? '<a href="'.tep_href_link(FILENAME_LOGOFF, '', 'SSL').'" class="headerNavigation">'.HEADER_TITLE_LOGOFF.'</a>' : '' ).'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

Thanks--I knew it was something easy--I tried all I could think of except leave out the <?php if part

 

Thanks a lot--it is appreciated!

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...