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? enter image description here


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -