Closed (fixed)
Project:
Commerce Invoice Receipt
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2013 at 19:51 UTC
Updated:
3 Apr 2016 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rbrownell+1 on that...
I would almost suggest creating an area on the invoice receipt where other modules can fill in whatever they need to fill in, say after the order total and before the remarks/terms and conditions text area at the bottom.
At Commerce Moneris we are discussing about how we would grant access to transaction data to display mandatory response codes by the Moneris payment processor. It was suggested that a hook with your module might do the trick. #1941334: Retrieving and saving data from Moneris response
Comment #2
Scott Robertson commentedA patch is attached that will add a drupal_alter call right before the invoice info is returned, allowing other modules to add other data to it.
Comment #3
spheresh commentedPatch was updated for 7.x-1.1 version of module
Comment #4
3cwebdev commentedAwesome. Can we get this committed to the module?
Comment #5
spheresh commentedA small fix. Order was added to the alter function. It is more useful because, there was hard to add something in template without an information about the order
Comment #6
spheresh commentedIt is same patch for version 1.1 of module (sorry but I need it for my project)
Comment #7
JulienF commentedQuite Helpful,
Thanks!
Comment #8
karlsheaAlso added the $build parameter from the original function. This contains the rendered fields from the Invoice/Receipt display settings on the Order so you can add fields to the $info array the same as _commerce_invoice_receipt_get_invoice_info() does.
Comment #10
aramboyajyan commentedI'm a bit late to the party, and I should have checked this issue before #2665680: Implements hook system for _commerce_invoice_receipt_get_invoice_info, but I'm here to fix things :D
Thanks everyone! This has been committed to v2 over the patch provided in the newer issue.