Needs work
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Order
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Jan 2013 at 04:28 UTC
Updated:
22 Jan 2019 at 17:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
waveer commentedI find a clerical error at commerce_order.tokens.inc at line 118
case 'revision_id':shoule be:
case 'revision-id':Because of this the token [revision-id] dont work at rules.
Comment #2
waveer commentedAs i said at the issue "Support order revision for token and rules", I need the order revision log token to use at rules.
Several days past, nobody give me a patch for me, so I write it for myself, a little hard to me.
I add a revision load function at "commerce_order.module", because I dont find a function for revision load with revision id. I just use the db_select, maybe there is a better way. Hope someone can tell me.
I add the revision-log token at "commerce_order.tokens.inc".
You can see these at the patch.
I am not a professional developer, the code i write maybe not very well. But it works. If you also need the revision log token, you can use it temporarily.
I hope some core developer of commerce module can add revision log token and other revision token to core of commerce module.
Comment #3
waveer commentedForget the patch...
Comment #4
rszrama commentedComment #5
chris matthews commentedThe 6 year old patch in #3 does not apply to the latest commerce 7.x-1.x-dev and (if still relevant) needs to be rerolled.