php - How can I add a Drupal Commerce Fee programmatically? -
i know how add line item programmatically, can't seem find way add custom commerce fee in php. commerce fees seem register in 2 locations in order array: once under commerce_line_items, , once under commerce_order_total (see attached image). different regular line item in don't show products, rather in order totals box @ end of order. fee shown in attachment 1 has been entered using edit form in admin section. need add 1 in code. ideas?
Comments
Post a Comment