Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add live help


asusman103

Recommended Posts

Posted

I need to add this:

<!-- Boldchat Chat Button HTML v2.20 (My Chat)-->

<table cellpadding="0" cellspacing="0" border="0">

<tr><td align="center"><a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=1059867966" target="_blank" onClick="this.newWindow = window.open('http://chat.boldchat.com/chat/visitor.jsp?cdid=1059867966&url=' + document.location, 'Chat', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=64

0,height=480'); this.newWindow.focus(); this.newWindow.opener = window;return false;"><img alt="Live chat by Boldchat" src="http://www.boldchat.com/bh.ci/1059867966" width="133" height="34" border="0"></a></td></tr>

<tr><td align="center"><font size="1" face="Arial"><a href="http://www.boldchat.com" style="text-decoration: none"><font color="black">Live chat by </font><b><font color="#E27500">Bold</font><font color="#4F004F">chat</font></b></a></font></td></tr>

</table>

<!-- /Boldchat Chat Button HTML v2.20 -->

 

Into either the information box on the right or near the credit card logos on the top left. I keep getting errors because I know very little about php, can anyone help??

Posted

I have a suggestion, but your live help image will land on top of your column left...

Not sure if this is what you want.

 

open

/shop/catalog/includes/column_left.php

 

 

 

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'information.php');

 

?>

PASTE YOUR CODE UNDER HERE

 

 

<!-- Boldchat Chat Button HTML v2.20 (My Chat)-->

<table cellpadding="0" cellspacing="0" border="0">

<tr><td align="center"><a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=1059867966" target="_blank" onClick="this.newWindow = window.open('http://chat.boldchat.com/chat/visitor.jsp?cdid=1059867966&url=' + document.location, 'Chat', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=64

0,height=480'); this.newWindow.focus(); this.newWindow.opener = window;return false;"><img alt="Live chat by Boldchat" src="http://www.boldchat.com/bh.ci/1059867966" width="133" height="34" border="0"></a></td></tr>

<tr><td align="center"><font size="1" face="Arial"><a href="http://www.boldchat.com" style="text-decoration: none"><font color="black">Live chat by </font><b><font color="#E27500">Bold</font><font color="#4F004F">chat</font></b></a></font></td></tr>

</table>

<!-- /Boldchat Chat Button HTML v2.20 -->

Posted

That JS line doesn't look right to me so you'll have to figure that bit out but with the proper quotes and such but here you go ...

 

Open /catalog/includes/boxes/information.php and add under one of the PHP start tags:

 

$chatbutton = '<table cellpadding="0" cellspacing="0" border="0"><tr><td align="center">' . <a href="http://chat.boldchat.com/chat/visitor.jsp?cdid=1059867966" target="_blank" onClick="this.newWindow = window.open('http://chat.boldchat.com/chat/visitor.jsp?cdid=1059867966&url=' + document.location, 'Chat', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=64
0,height=480'); this.newWindow.focus(); this.newWindow.opener = window;return false;"><img alt="Live chat by Boldchat" src="http://www.boldchat.com/bh.ci/1059867966" width="133" height="34" border="0"> . '</a></td></tr>
<tr><td align="center"><font size="1" face="Arial"><a href="http://www.boldchat.com" style="text-decoration: none"><font color="black">Live chat by </font><b><font color="#E27500">Bold</font><font color="#4F004F">chat</font></b></a></font></td></tr>
</table>';

 

Then change the infobox contents array ... (mine looks like the one below, yours will be a bit different but you should get the idea):

 

  $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">?' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">?' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">?' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">?' . BOX_INFORMATION_CONTACT . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_SITEMAP) . '">?' . BOX_INFORMATION_SITEMAP . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_LINKS) . '">?' . BOX_INFORMATION_LINKS . '</a><br><br>' .
                                        BOX_INFORMATION_SECURE);

 

For me, BOX_INFORMATION_SECURE displays my SSL logo. In your case, you would use $chatbutton which was defined above.

Archived

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

×
×
  • Create New...