How Can We Help?
< Back
You are here:
Print

Applying Cost of Goods data to Orders

Whether you just migrated from another plugin, or you want to apply the new data input as Product costs to all your old WooCommerce orders, this is the Rite tool for you.

Currently, there are four different options that decide what set of orders should have their cost of goods edited:

  1. Orders that have no cost of goods set (by this plugin)
  2. All existing orders
  3. All orders except those that have been edited manually at the order level
  4. Only orders that have been edited manually at the order level

Note: If an order is selected to be edited, data defined by this plugin at both the order meta data and the order item meta data will be edited. This is the same process that is followed as if an order was placed organically. All previously existing data in these variables (set by this plugin) will be overwritten.

Option 1

“Orders that have no cost of goods set (by this plugin)”

This will select orders that currently have no Order level cost of goods set by this plugin. This does not check against Order Item level meta data. This will have data if

  • an order was created while this plugin was active
  • if a user went to an order created while this plugin was inactive, and
    • manually edited the order level
    • saved the order
    • clicked “recalculate”
    • an item is added

Option 2

All existing orders”

This will select all orders of all statuses, and update their meta data with this plugins defined data.

Option 3

“All orders except those that have been edited manually at the order level”

This deals directly with functionality within a created order. In this plugin, we allow users to edit the cost of goods of an order and ignore the Order Item cost of goods meta data. What this option does is look for that override feature existing on an order, and excludes them from the set of orders being edited.

The only way an order will be in this override state is if a user manually edits the cost of goods on an order after it was created.

Option 4

“Only orders that have been edited manually at the order level”

The opposite of option 3. This deals directly with functionality within a created order. In this plugin, we allow users to edit the cost of goods of an order and ignore the Order Item cost of goods meta data. What this option does is look for that override feature existing on an order, and only includes them in the set of orders being edited.

The only way an order will be in this override state is if a user manually edits the cost of goods on an order after it was created.

Table of Contents