Downloads
Thanks to this module, you can create expirable products. A new 'expiry' tab appears when you edit a product (eg: node/15/edit/expiry) and you can enter several expiry periods for a product (eg: 1 month, 3 months, 6 months...).
You can define too a reminder (triggered before product expiry) and a different price for each period.
Then, when a user view the product, there is a select box displayed in order to choose the period to purchase. The price associated to this period replaces the default product price in the cart view.
TODO: The default product price should be automatically hidden, or dymamically changed if javascript is enabled.
Note that once a user purchased an expirable product, then the expiry setting for that product can't be changed.
You can associate this module with uc_role.module in order to create expirable subsciptions to a role.
This module main goal is to provide a hook that triggers events related to product expiry:
<?php
/**
* Hook called on product expiry events.
*
* @param $op Operation
* 'new' : a new product expiry is scheduled
* 'reminder': a product expiry reminder is triggered
* 'renew': a product expiry has been renewed by a new order
* 'expiry': a product expired
* @param $full_schedule Product expiry schedule informations
*/
function hook_product_expiry($op, $full_schedule) {
...
}
?>Remember that this is beta code... not in production for now... bla bla bla bla... use it at your own risk... bla bla bla bla....
CHANGE LIST
5.x-1.0-alpha3
- Disabled quantity field.
- Added expiry infos when viewing the product.
Development
| Preview | Attachment | Size |
|---|---|---|
| uc_expiry-5.x-1.0-alpha3.tar.gz | 6.9 KB |



