Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tell A Friend


obinet

Recommended Posts

Posted

Tell a friend doesn't seem to be working. I have it turned on on the "My Store" section (Allow a guest to tell a friend). When I enter an email address and click "Tell a Friend", it just adds the item to the shopping cart. Any ideas?

Posted

I'm having the same issue. Can you tell me where to locate the form tag for the tell a friend script?

  • 5 years later...
Posted

I ran into this problem recently, and since Google brought this thread up prominently in spite of its age, I thought I'd post some info on possible solutions from my research.

 

1. If you are using STS, try this thread: http://www.oscommerce.com/forums/index.php?sho...mp;#entry278831

 

NOTE: It should be fixed via STS v1.9

 

 

2. If you're like me and this did not solve the problem, do this:

- Goto any product page on your site. What you want is the product_info.php file. However, this is easier said than done if you use any kind of SEO URLs mod.

- View source in your browser

- Copy and paste the code into a text editor

- Look for all instances of <form and </form

 

Count. You should have equal pairs. If you do not (like what happened to me), you're most likely missing a </form> tag. This causes a "form" from part of product_info.php to remain open until something else closes it, such as the Tell A Friend code from any of the product pages.

 

 

 

In my particular case, I had installed the Dynamic Force Attribute Selection v1.7, which appears to be the culprit in my store. I added the </form> at the end of one line of code in product_info.php and now it works like a champ. :)

 

I hope this is helpful to someone else!

 

Regards,

David

Posted

Aaarghhh.... I spoke too soon and cannot edit my last post.

 

Regarding Dynamic Force Attribute Selection 1.7, the /form tag needs to be added at the end of the product_info.php html stream, like this for example:

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td></form>

 

RC

Archived

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

×
×
  • Create New...