Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tell a friend help please...


Graveyard666

Recommended Posts

I saw a thread earlier today in this forum on tips & tricks for the tell-a-friend contrib, I was wondering if someone could steer me in the direction of getting the tell-a-friend contrib to work on the product_info.php page.

 

I want a link on that page to take the person to catalog/tell_a_friend.php instead of an infobox in the right column

 

any ideas or am I missing a pre-existing contrib or thread that shows this already?

 

 

 

jeff

Link to comment
Share on other sites

Can you share with me how you figured out the solution to your problem. I have the same situation and what I have been doing is going in to each product individually and adding a html to the description of the product. The html is only for tell a friend. I would just like to have it done inside my admin so that way I don't have to manually add it to each product. I can't use any of my infoboxes.

 

If you have a chance, please share.

 

Thanks

 

I saw a thread earlier today in this forum on tips & tricks for the tell-a-friend contrib, I was wondering if someone could steer me in the direction of getting the tell-a-friend contrib to work on the product_info.php page.

 

I want a link on that page to take the person to catalog/tell_a_friend.php instead of an infobox in the right column

 

any ideas or am I missing a pre-existing contrib or thread that shows this already?

jeff

Link to comment
Share on other sites

Can you share with me how you figured out the solution to your problem. I have the same situation and what I have been doing is going in to each product individually and adding a html to the description of the product. The html is only for tell a friend. I would just like to have it done inside my admin so that way I don't have to manually add it to each product. I can't use any of my infoboxes.

 

If you have a chance, please share.

 

Thanks

 

 

here is the text link of tell a friend:

 

<?php echo '<a href="' . tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $HTTP_GET_VARS['products_id'], 'NONSSL') . '">' . BOX_TELL_A_FRIEND_TEXT . '</a>'; ?>

Link to comment
Share on other sites

here is the text link of tell a friend:

 

<?php echo '<a href="' . tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $HTTP_GET_VARS['products_id'], 'NONSSL') . '">' . BOX_TELL_A_FRIEND_TEXT . '</a>'; ?>

 

 

Where (file) would you put this? And would that work for Ask_a_question contribution on each product page?

Link to comment
Share on other sites

  • 1 year later...
I don't know about ask_a_question contribution.

put code in the product_info.php

Tryed this but when clicking the link I get this:

 

Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /hsphere/local/home/webtask/eterya.com/tell_a_friend.php on line 123

 

Here´s the code around line 123 in my tell_a_friend.php:

<!--  Start code -->
		<tr><td valign="top">
		 <table border="0" cellspacing="0" cellpadding="0">
		  <tr><td width="2"></td>
			  <td width="220" valign="top"><?php require(DIR_WS_INCLUDES . 'column_left.php'); ?></td>
			  <td width="2"></td>
			  <td width="505" valign="top">
			   	   <?php require(DIR_WS_INCLUDES . 'menu.php'); ?>
				   <table border="0" cellspacing="0" cellpadding="0">
					<tr><td><?=tep_image(DIR_WS_IMAGES.'m27.gif')?></td>
						<td class="bg6 ab" width="496" height="26">    <?=tep_image(DIR_WS_IMAGES.'m29.gif')?>  <span class="tx2"><?=echo sprintf(HEADING_TITLE, $product_info['products_name'])?></span></td>
						<td><?=tep_image(DIR_WS_IMAGES.'m30.gif')?></td></tr>
					<tr><td height="15" colspan="3"></td></tr>
				   </table>
<!-- body //-->

May life be good to you...

Sincerely, Ronny

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...