The case is
When user place an order, shipping price must be manually calculated before the final invoice is sent to user.
What I do
I create Price custom field on Order named shippingfee.
Problem is
How to make shippingfee field affect the Order price?
Another thing that I tried is creating custom line item type. I'm thinking that by creating this custom line item type would update the value.But following this tutorial, the custom line item type did not appear when I check on admin/commerce/config/line-items
.
Code added to custom module:
/**
* Implements hook_commerce_line_item_type_info().
*/
function owemji_commerce_line_item_type_info() {
return array(
'owemji' => array(
'name' => t('Shipping Fee'),
'product' => false,
'description' => t('Price of shipping.'),
'base' => 'owemji',
),
);
}
/**
* Implements hook_enable().
*/
function owemji_enable() {
commerce_line_item_configure_line_item_fields(array('owemji'));
}
I did try clear cache and disable -> enable the owemji module, but it's still not there.