Email to node owner on auction completion

Zisinos - April 14, 2009 - 20:22
Project:Ubercart Auction
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

I want to build a site that's a little bit ebay-like. I started working on it and the auction module is really fine so far. But here's my problem right now:

I want users to be able to put up their own auctions. That's easy by giving them the needed permissions, but when someone buys an article, let's say by using the buy now button and checking out, the buyer is informed per email and the store is informed, but not the user who selled the article. How can I get the seller informed about his successfull auction?
I'm into drupal just for a few months now and don't really know where to look for a solution. Is it a configuration in the store? Do I need to look at the actions function?

Thanks for every help
Zis

#1

Zisinos - April 14, 2009 - 23:15

Hi again,

I read some of the other issues and noticed that something like multiple sellers is not implemented in the current version. Sorry for posting so quick without searching.

But in my case it would be enough if the seller (author of the node) would receive an email when his auction has ended or is direct buyed. For example a copy of the email that is sent to the store, when an auction is purchased.

Is there a way to make that possible? I searched and found out that you can do auto emails with trigger and actions, but it seems that trigger is limited to a few events like 'node is created'.
Is there a way to fire actions on other criteria like 'auction expired' or 'auction won'?

Any ideas?

#2

Garrett Albright - April 15, 2009 - 21:04
Title:Multiple sellers?» Email to node owner on auction completion

You're right in that UC Auction is not written from the perspective that anyone other than the site administrators will be using it to create auctions. Ubercart in general is written this way. That being said, as you noticed, you aren't the only one trying to get it to work with multiple sellers. Unfortunately, since that's not something the client we're developing this for needs, I'm not going to give you much "official" support in that direction.

All that being said, if you have developer chops, check out UC Auction's API by looking over the code in the uc_auction_api directory, specifically hook_auc_expired().

#3

rsm08 - April 25, 2009 - 16:54

Hi Zisinos

I'm also using Ubercart and UC Auction for en ebay-like site, so maybe we can help each other with not only UC auction, but particularly Ubercart in general, which needs a lot of modification to be used for multiple sellers.

I'm going to implement the function you mention, just haven't gotten around to doing it yet. But I'm going to send you the details when I get it done.

Currently UCA doesn't complete an order, when the auction finishes, but only gives the buyer the opportunity to make the purchase. For our site, we need to automatically execute a checkout, when the auction finishes, because auctions bids are binding for the buyer. I'm probably going to use hook_auc_expired for this as Garrett suggests.

 
 

Drupal is a registered trademark of Dries Buytaert.