Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Question (regarding links in osCommerce)


Kenan

Recommended Posts

Hello,

 

I have been trying to add a

<a href="' .tep_href_link(FILENAME_CNTACT_US) . '" target="_blank">Email</a>

to my Condition of use page. It seems to work but I can't get the Email to look like a link: Email.

 

Please help

Link to comment
Share on other sites

I might not be an expert but I did try to change the CSS and created a new CSS Class. It effects nicely anything but has no effect on the actual link it stays always black as if its influnced by some other class!

 

The only tags that has effect on the link is <b>. <i> and <tt>

Link to comment
Share on other sites

Try this.

 

Your link

 

<a href="' .tep_href_link(FILENAME_CNTACT_US) . '" target="_blank">Email</a>

 

My suggestion

 

<a href="' .tep_href_link(FILENAME_CNTACT_US) . '" target="_blank"><font color="blue"><u>Email</u></font></a>

 

I know, I know, this is the old fashioned way but it works. Change the word "blue" to the web color number for the color you want.

Steve

-------------------------

Link to comment
Share on other sites

I'm trying to add a link to another PHP file in Admin.

 

I'm working in the CUSTOMER.PHP file line 23ish.

 

***************

if ($selected_box == 'customers') {

$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_UPDATE_ORDER, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');

}

*****************

 

I've added this last line trying to add a link to a file named UPDATE_ORDER.PHP. I don't understand how this works:( I'm not sure if this is an array thing or an "if" statement deal? I'm not a very good programmer. This is the closest topic I can find to my problem.

Thanks,

 

Mike & Joyce

www.joy-bay.com

Link to comment
Share on other sites

This happens every time I ask for help. I search and try and give up too quickly. As soon as I ask for help, BOOM I solve it myself:)

 

But incase anybody is having the same problem, you have to edit the definations in the application_top.php to define the linking file name

 

and then you have to edit the language.php files to set the link up.

 

This is not the easiest way to do this, but I think it sticks with the standard of the rest of the code.

Thanks,

 

Mike & Joyce

www.joy-bay.com

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...