dimports Posted January 15, 2004 Share Posted January 15, 2004 I'm trying to add the button to tell a friend in a specific place on my site but can't figure out the php code to use as the link. I'm actually replacing the "Review" button with tell a friend in my shopping cart. Heres a what I mean: http://www.designimportsinc.com/catalog/pr...roducts_id=4926 So far I was able to figure out how to put the image button there but the link is non-functional. Someone pls help with this. Heres what my code looks like: <?php echo tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id() . tep_image_submit('button_tell_a_friend.gif', IMAGE_BUTTON_IN_CART); ?> This will add the product to cart (just took the code). What change would I need to use the tell_a_friend mod Link to comment Share on other sites More sharing options...
dimports Posted January 15, 2004 Author Share Posted January 15, 2004 anybody know? Link to comment Share on other sites More sharing options...
1quicksi Posted January 15, 2004 Share Posted January 15, 2004 Your tell a friend button is your add to cart button? Your add to cart button though at least does what it says. knowledge base | Contributions | Search Link to comment Share on other sites More sharing options...
dimports Posted January 15, 2004 Author Share Posted January 15, 2004 Yea, I just managed to put the Tell a Friend button there by coping the shopping cart button link and just change the image. Now the next step I have to do is change the link to the tell_a_friend.php mod. I tried everything and ca't get any link to work without an error. So I left it for now until someone can help me with the link. Link to comment Share on other sites More sharing options...
dimports Posted January 18, 2004 Author Share Posted January 18, 2004 anybody know how to do this? why won't my code take me the tell a friend mod? <?php echo tep_draw_hidden_field('products_id', $HTTP_GET_VARS['products_id']) . tep_hide_session_id() . tep_image_submit('button_tell_a_friend.gif', IMAGE_BUTTON_IN_CART); ?> Link to comment Share on other sites More sharing options...
dimports Posted January 18, 2004 Author Share Posted January 18, 2004 <a href="tell_a_friend.php>Button</a> isn't working cuz I'd need the product # for it to work properly. anyone got any ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.