Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need help changing text to link


checkpoint702

Recommended Posts

<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

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

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

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

Archived

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

×
×
  • Create New...