Order fee sync
Limitations
1) Tax, ShippingCost and Discount synchronization works in Magento-to-Salesforce synchronization only.
2) If you don't use the "Order Fee Products" feature, Shipping cost will not be synchronized by default mapping.
To make Magento Order Total and Salesforce Order/Opportunity TotalAmount the same we use one of the following options:
- Include tax/discounts to the Salesforce ItemPrice (used by default)
- Synchronize fee/discount prices as different Salesforce Items
See more detailed description below about every case
1) Include all additional fee/discounts to the Salesforce ItemPrice
In this case Salesforce ItemPrice calculated by the following formula:
Price - Discount + Tax
2) Synchronize fee/discount prices as different Salesforce Items
On the Sales configuration page of our module in Magento you can activate Order Fee synchronization as separated Order/Opportunity Items:
If you choose the "Generate new product" option - Fee product will be created in Salesforce automatically.
As result appropriated Items will be created through Order synchronization: