Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tell a Friend


frenchflies

Recommended Posts

I want to move the "Tell a Friend" form to each an every product info page, underneath the product discription and picture.

 

This is stated in the manual, but I don't quite understand the "valid product ID" part. what is that?

 

................................................

The following code block can be copied to a different location on the product information

page, or on any other page if the $products_id value is replaced with a valid product ID.

 

<?php echo tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL',

false), 'get') . tep_draw_input_field('to_email_address', '', 'size="10"') . ' ' .

tep_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) .

tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id() .

'</form>'; ?>

 

It is important to use the project tep_* functions to build the form, to make sure the

customers session is kept intact when cookies have been disabled.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...