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
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

Allie Micka - February 19, 2008 - 01:30

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

ryank76 - February 23, 2008 - 01:37

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

moonray - May 14, 2008 - 15:34
Category:support request» bug report

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

Allie Micka - May 14, 2008 - 17:08

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

Allie Micka - August 3, 2008 - 01:57
Title:Send module adds to cart» Conflict with nodes that contain forms (shopping carts, fivestar, ...)

Updating to a more descriptive title.

#6

ekrispin - August 17, 2008 - 14:01

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

#7

coloryan - October 25, 2008 - 15:55

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

#8

spiritguard - December 14, 2008 - 07:24

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

aboros - January 7, 2009 - 12:40

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

 
 

Drupal is a registered trademark of Dries Buytaert.