Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Now that we have a hook for removing an item from the cart (hook_cart_item() $op = 'remove') it would be nice if this was fired when the cart is expired due to timeout when hook_cron is called in uc_cart module.
Comment | File | Size | Author |
---|---|---|---|
#3 | ubercart_cart_expire_2.patch | 1.4 KB | mikey_p |
ubercart_cart_expire.patch | 1.36 KB | mikey_p | |
Comments
Comment #1
mikey_p CreditAttribution: mikey_p commentedOr maybe we could make the old 'fast way' an option as well be checking a variable.
Wouldn't have to be in the interface anywhere, could just be something that another module or a site builder could set.
Comment #2
willvincent CreditAttribution: willvincent commentedBig +1 on this, this should definitely be rolled into core.
Comment #3
mikey_p CreditAttribution: mikey_p commentedHere's an update from Ryan, no need to run more than once per cart_id ;)
Comment #4
Island Usurper CreditAttribution: Island Usurper commentedOK, finally got around to looking at this patch. Looks like it does the job, so it's committed.