I've been running several test auctions over the past few weeks, and I'm curious if anyone has a solution for expired auctions still showing up in the site? Ideally, once the process is completed, I'd like to unpublish the item. I've checked into actions and other functions, but haven't had any luck. If anyone can offer some insight, I'd appreciate it.

As always, great system - I'm really excited to launch the site.

Comments

BenMcCloud’s picture

I had the same problem here http://drupal.org/node/362069

The solution with an own catalog-view worked fine for me so far. Maybe you can work with that

coloryan’s picture

I have my main pages pulling off of a Views filtering all auctions expired more than five seconds ago. My issue comes when I click on the taxonomy menu, which isn't running off of the filter. Maybe I can tweak the taxonomy menu and run the same filter... let me give that a try and report back.

Thanks for the suggestion!
rmh

HydroZ’s picture

Status: Active » Closed (fixed)

Hi coloryan,

I think it is very easy to unpublish an expired auctionated product by using the hook_auc_expired().

Just created your module, and implement this hook.

A basic solution would look like this (without any validations):

function mymodule_auc_expired($nid) {

  // $nid is the products node id
  db_query("UPDATE node SET status='0' WHERE node.nid = '%d'", $nid);

}

I close this issue, cause of inactivity and this feature is almost implemented by uc-auction API...