Rather than sending an email, the send module is adding the product in question to the user's cart. I have mime mail working properly so I'm not sure what's up. Any ideas? Thanks!

Comments

allie micka’s picture

Um, WTF?

I haven't got an ecommerce installation handy, and I don't have enough information on version, configuration, etc. to track this down.

Further insight and/or patches are quite welcome.

ryank76’s picture

Hi, I'm running Ubercart and it does this too. You fill in the email addresses, click Send and the next screen you see is the Shopping Cart with your item in it.

Drupal 5.8
Send 5.x-1.x-dev
Ubercart 5.x-1.0-beta1

moonray’s picture

Category: support » bug

Same problem.
The problem is that there is a form within a form, which probably gets the system confused.

<form action="/send/send/1073"  accept-charset="UTF-8" method="post" id="-send-form">
  ...
  <input type="submit" name="op" id="edit-submit" value="Send"  class="form-submit" />
  ...
  <form action="/send/send/1073"  accept-charset="UTF-8" method="post" id="uc-product-add-to-cart-form-1073">
    ...
  </form>
</form>
allie micka’s picture

Hey moonray,

Thanks for that! As I understand it, this "feature" is causing drama elsewhere. The solution will be to strip out the form, form id, etc. tags from the preview output.

Unless someone gets to it first I'll try and tackle this.

allie micka’s picture

Title: Send module adds to cart » Conflict with nodes that contain forms (shopping carts, fivestar, ...)

Updating to a more descriptive title.

ekrispin’s picture

subscribing. This is also the analysis for the dup issue of failing to send nodes having a fivestar widget.

coloryan’s picture

Any progress on this? I'm having the same issue...

spiritguard’s picture

I found a work around, that I set the Send panel in the product content type to only send teasers and I set the products in the Store Admin (using uc) to not have the "add to Cart" link in the teasers, and the send form now works for me.

aboros’s picture

This method (sending only the teaser and displaying no forms in teaser) worked for me too! Thanks!