Conflict with nodes that contain forms (shopping carts, fivestar, ...)
hobbesent - December 5, 2007 - 00:56
| Project: | Send |
| Version: | HEAD |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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!

#1
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.
#2
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
#3
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>
#4
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.
#5
Updating to a more descriptive title.
#6
subscribing. This is also the analysis for the dup issue of failing to send nodes having a fivestar widget.
#7
Any progress on this? I'm having the same issue...
#8
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.
#9
This method (sending only the teaser and displaying no forms in teaser) worked for me too! Thanks!