No replies
japerry@drupal.org's picture
Offline
Bug FinderGetting busy with the Ubercode.Not Kulvik
Joined: 08/08/2007
Juice: 248
Was this information Helpful?

We're having some issues getting the 'add to cart' to function properly within the search system of drupal. I wonder if anyone else has tried this? Most of the livesites I've seen don't allow adding to cart from a search, but it would be a nice feature to have for us.

if you do a search like the following:
http://mercedessource.com/search/node/diesel

You'll get a bunch of products. We had an add-to-cart button for each item, but when you click it, it would just refresh the search page. I've disabled the button for now (its supposed to go under the price) but would like to get it back.

Is there something odd going on with drupal search functionality? Do I have something messed up in the add-to-cart theme? The following is from our add-to-cart theme:

  $add_link = drupal_get_form('uc_product_add_to_cart_form_'. $node->nid, $node);
  print $add_link;

Thanks!