Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Merging product notifications and tell a friend


mintpeel

Recommended Posts

Posted

I am trying to merge the product notifications box and the tell a friend box into a single "notifications box"

 

The result would be a simple text link to the tell a friend page in the product notifications box.

 

Although i have suceeded in doing this when you click on tell a friend it does not pick up the product info and just returns a page of product not found.

 

Here is the code that i have inserted into the product notifications box just before the last "new infoBox($info_box_contents);"

 

The code

$info_box_contents[] = array('text' => tep_submit('<a href="' . tep_href_link(FILENAME_TELL_A_FRIEND) . '">' . BOX_TELL_A_FRIEND_TEXT . '</a><br>') . tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id());

 

If somone could point out the error i would be most grateful

 

Thanks in advance.

Posted

Ok here is my code, that is working, but i want to change the submit button to a regular text link, so instead of having to click a go button or email icon i want the text "tell a friend about this product" to be the link to tell a friend, however since it is a submit function the text appears in a little white box and has none of the rollever functions of normal text. Which is what i want.

 

 $info_box_contents[] = array('form' => tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get'),

						   'text' => BOX_TELL_A_FRIEND_TEXT . '  ' . tep_image_submit('<a href="', BOX_HEADING_GO_FRIEND) . '</a></font>' . tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id()  );

 

so the BOX_HEADING_GO_FRIEND is the submit button at the moment.

 

any help would be appreciated!!!

 

Why all the phaffing around? for optimum user friendlyness changing the way you move around the site is annoying so it needs to be either always text links or always image button links. you see :blink:

Archived

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

×
×
  • Create New...