checkpoint702 Posted May 29, 2005 Share Posted May 29, 2005 I would like to change the text "login for price" to an actual link that allows the user to log in or creat an account. How can I change it? Here's the site: http://www.checkpointracing.com Link to comment Share on other sites More sharing options...
Wendy James Posted May 29, 2005 Share Posted May 29, 2005 <a href="<?php echo tep_href_link('create_account.php')?>">Log in for price.</a> Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
checkpoint702 Posted May 29, 2005 Author Share Posted May 29, 2005 When I put this in the code... it says unexpected ? I am changing this } function display_price($products_price, $products_tax, $quantity = 1) { if (!tep_session_is_registered('customer_id')) { return "Login For Price"; } else { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } } } ?> to } function display_price($products_price, $products_tax, $quantity = 1) { if (!tep_session_is_registered('customer_id')) { return "<a href="<php echo tep_href_link('create_account.php')?>">login for price.</a>"; } else { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } } } ?> Where am I going wrong???!?! Thanks:) Link to comment Share on other sites More sharing options...
peppecol Posted May 29, 2005 Share Posted May 29, 2005 I would like to change the text "login for price" to an actual link that allows the user to log in or creat an account. How can I change it? Hello, I have the same problem as it is resolved? Link to comment Share on other sites More sharing options...
Wendy James Posted May 29, 2005 Share Posted May 29, 2005 not sure if this will work or not but try changing return "<a href="<php echo tep_href_link('create_account.php')?>">login for price.</a>"; to return tep_href_link('create_account.php') . 'login for price'; or echo tep_href_link('create_account.php') . 'login for price'; Just guessing here so be sure you have a backup of a working file. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.