Needs work
Project:
e-Commerce
Version:
5.x-3.5
Component:
ec_recurring
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Dec 2008 at 04:11 UTC
Updated:
1 Feb 2009 at 03:51 UTC
Jump to comment: Most recent file
This was requested in #249205. I've implemented the new feature and attached a patch. Testing would be wonderful.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 342495_200901291401+1100.patch | 3.35 KB | sammys |
| #3 | 342495_200901291352+1100.patch | 0 bytes | sammys |
| ec_recurring.process.expiry.every_.cron_.200812041444.patch | 3.62 KB | sammys |
Comments
Comment #1
kshahan commentedI guess i'm late to implementing this code and testing. Will this patch work for the current version 3.6., I'm assuming it hasn't been implemented into the latest release yet.
I'm receiving this error when I put the patch in manually:
Parse error: syntax error, unexpected T_STRING in /home/content/52/3712252/html/sites/all/modules/ecommerce/contrib/ec_recurring/ec_recurring.module on line 1667
line 1667 in my code is:
drupal_map_assoc(range(0, 23), 'ec_recurring_int_to_hour');
*******************************************************
In addition: when I make code like this:
$hours = array(ECRECURRING_PROCESS_ALL_CRON => t('Every cron run'))
+
drupal_map_assoc(range(0, 23), 'ec_recurring_int_to_hour');
I don't get the error..but not sure if this is correct coding or not..? by adding the + sign it functions..Please advise.
Thank You,
Kerry,
Comment #2
sammys commentedHi Kerry,
Thanks for testing it out.
The patch correctly patches the file using the patch command. If you are using the patch command and getting the result above it might be wise to update patch. :)
As you have noticed (and successfully fixed) it is missing the + symbol at the end of the following line:
So that section is meant to be:
Since the patch works i'll commit it to the repository. Woohoo! Setting to RTBC for the moment.
Comment #3
sammys commentedPatch failed because of the other one I committed before. Rerolled.
Comment #4
sammys commentedGrrr... patch I posted was empty! Posted the correct patch.
It's now committed to the repository and will be available in the next dev tarball and Ecommerce 3.7.
Comment #5
kshahan commentedI'm still testing the expiry schedule on the recurring product. I'm concerned that the expiration of the node access on a recurring schedule lasts longer than an actual day from the time it was purchased.
Here is an example using a test user on a node access product:
Users who have purchased this Node Access Product:
dana on 2009-01-28 23:24:32 (expires: 2009-01-29 03:00:00)
so..Dana's (my test user name) purchased node expires the next day at 3 am., which is longer than 24 hours or 1 day of access time.
Also it would be cool to allow hourly access or 12, 24 or 36 hour access..for shorter time periods.
Thanks,
Kerry
Comment #6
sammys commentedAh yeah of course... the expiration records need to be adjusted as well. Not fixed yet haha.
Comment #7
kshahan commentedif it's not one thing it's another :)