Current the Expeditor Inet export is a big blackbox. If one wants to modify the output (change a field, e.g. gender field), the best way is to use an alter hook to replace the commerce_socolissimo_export_expeditor_inet plugin with a subclass, extend the generate_rows() method to modify the result (which fortunately a 2D array!). However it is not as elegant as a yet-another-alter-hook in the Drupal way.

Patch is coming.

Comments

jcisio’s picture

Status: Active » Needs review
StatusFileSize
new576 bytes
jcisio’s picture

StatusFileSize
new3.59 KB

#1 is not tested and does not work. This one is ;) It also simplifies so that alter hook implementations don't have to take care of the length.

maciej.zgadzaj’s picture

Status: Needs review » Fixed

Thanks for this jcisio! The patch looks good (even though I am unable to test it right now) - committed to 7.x-2.x and pushed to d.o.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.