Title: Cost of Shipping for WooCommerce
Author: The Rite Sites
Published: <strong>جون 25, 2018</strong>
Last modified: اگست 27, 2026

---

پلگ ان ڳولو

![](https://ps.w.org/woo-cost-of-shipping/assets/icon-256x256.png?rev=1898876)

# Cost of Shipping for WooCommerce

 [The Rite Sites](https://profiles.wordpress.org/theritesites/) کنوں

[ڈاؤن لوڈ](https://downloads.wordpress.org/plugin/woo-cost-of-shipping.zip)

 * [تفصیلاں](https://skr.wordpress.org/plugins/woo-cost-of-shipping/#description)
 * [ریویو](https://skr.wordpress.org/plugins/woo-cost-of-shipping/#reviews)
 * [ڈیویلپمنٹ ](https://skr.wordpress.org/plugins/woo-cost-of-shipping/#developers)

 [معاونت](https://wordpress.org/support/plugin/woo-cost-of-shipping/)

## تفصیل

Tracking and analyzing the true profitability of your WooCommerce orders is not 
possible if you’re not including the cost of shipping. Most sites use a “Cost of
Goods” plugin to analyze profit (sales less cost of goods), but this is not a true
measure of profitability. The cost of shipping orders is significant, and in many
businesses, it can be even more expensive than the cost of goods, so including the
cost of shipping in your analysis is critical to running a successful eCommerce 
business.

**NEW!** Using WooCommerce Services to buy your shipping labels? Well we have just
made new functionality that allows amount spent on shipping to be imported directly
into the order! The plugin will automatically do this if the labels have been purchased
before the order is marked complete, or there is a manual import button found neatly
on the right sidebar while editing orders. Whether you purchase one, multipls labels,
or refund labels, we report the Cost of Shipping directly to you!

After installing this plugin you’ll be able to manually add or adjust the cost of
shipping for each order on the WooCommerce Edit Order page. **Better yet**, if you
use ShipStation then the cost of shipping for each order will be automatically imported
as your orders are shipped. If you ship multi-package orders, the total cost of 
all packages will be imported. If you void a ShipStation shipment and then reship(
change shipping method, address, etc.), the new cost of shipping will be imported.
It’s all automated and you’re going to love it!

Once you start tracking the cost of shipping, you’ll want to use our [WooCommerce Net Profit](https://www.theritesites.com/plugins/woocommerce-net-profit)
plugin that will give you beautiful, functional reports to fully analyze your profitability.

**Do you use your income statement to track the cost of shipping?**
 Most eCommerce
businesses do, but this just gives you a high level view of the overall profitability
of your business. What’s missing is the ability to determine true profitability 
at the individual order level.

For example:
 * If you ship out of California, how does your profit on an order 
shipped to a customer in California compared to the same order shipped to a customer
in New York? * How does your profit on an order that weighs 2 pounds compare to 
orders that weigh 5, 10 or 20 pounds? * If you offer free shipping on orders over
a certain dollar amount ($50, $75, etc.), how does the profit on those orders compare
to the profit on orders that you are charging a shipping fee? * How does your profit
on a $25 order compare to your profit on a $50, $100 or $200 order?

Only after you have the cost of shipping data at the order level can you make these
comparisons (and more), and then make smart adjustments to the way you offer your
products to maximize profitability.

### Manual Installation

 1. Upload the entire `/woo-cost-of-shipping` directory to the `/wp-content/plugins/`
    directory.
 2. Activate Cost of Shipping for WooCommerce through the ‘Plugins’ menu in WordPress.
 3. Enjoy the easy editting of the cost of shipping in the edit order screen, below
    the order total.

## سکرین شاٹاں

[⌊A new field is added underneath the order items block, underneath the "Total" 
row, along with an edit button.⌉⌊A new field is added underneath the order items
block, underneath the "Total" row, along with an edit button.⌉[

A new field is added underneath the order items block, underneath the “Total” row,
along with an edit button.

[⌊Shows the JavaScript popup that allows you to manually edit the cost of shipping
for this order.⌉⌊Shows the JavaScript popup that allows you to manually edit the
cost of shipping for this order.⌉[

Shows the JavaScript popup that allows you to manually edit the cost of shipping
for this order.

[⌊Shows the meta box on the right to import Cost of Shipping, the order note put
in, and the Cost of Shipping⌉⌊Shows the meta box on the right to import Cost of 
Shipping, the order note put in, and the Cost of Shipping⌉[

Shows the meta box on the right to import Cost of Shipping, the order note put in,
and the Cost of Shipping

[⌊Shows expanded meta box and pro tip about using the plugin to its potential⌉⌊Shows
expanded meta box and pro tip about using the plugin to its potential⌉[

Shows expanded meta box and pro tip about using the plugin to its potential

[⌊Shows the new interface if WooCommerce Services plugin is activated⌉⌊Shows the
new interface if WooCommerce Services plugin is activated⌉[

Shows the new interface if WooCommerce Services plugin is activated

## ہرہک دے سوال

### Cost of Shipping from ShipStation is not being saved or imported

There is a common issue we have found in the ShipStation Marketplace Configuration.
Ensure your store does not have a redirect from http:// to https:// and also that
the Marketplace on ShipStation matches the exact url and protocol. [Read more here](https://www.theritesites.com/docs/shipstation-not-importing-cost/)

### The “Import shipping cost” button is not importing the data!

If you are seeing the “Import shipping cost” or “Re-import shipping cost” button,
that means you have the WooCommerce Services or WooCommerce Shipping plugin active.
The only shipping costs that will be imported are from those plugins, no other integrations
will import shipping costs using this button. (e.g. shipstation)

### Are there any integrations?

Currently, we support the [ShipStation platform](https://woocommerce.com/products/shipstation-integration/),
[WooCommerce Services](https://wordpress.org/plugins/woocommerce-services/), and
[WooCommerce Shipping](https://wordpress.org/plugins/woocommerce-shipping/), and
are looking to extend that.

### Is there any reporting tools to go along with this data?

We currently offer a [reporting plugin](https://www.theritesites.com/plugins/woocommerce-net-profit)
that reports on your true cost of shipping and more at our website!

### Does uninstalling this plugin delete my cost of shipping data?

No, not by default. Every order’s cost of shipping, method, carrier, and history
is left in place if you remove the plugin, so reinstalling it does not lose your
data. If you want a full uninstall to also delete that data, add `add_filter( 'wc_cos_delete_data_on_uninstall','
__return_true' );` to your site (for example in a small must-use plugin) before 
deleting Cost of Shipping.

## ریویو

![](https://secure.gravatar.com/avatar/6298187388e27ac231efbc0a22386d8b6518eda6f8f709feda926bf3f2170a31?
s=60&d=retro&r=g)

### 󠀁[Love This Plugin!](https://wordpress.org/support/topic/love-this-plugin-748/)󠁿

 [cranksports](https://profiles.wordpress.org/cranksports/) فروری 15, 2019

My company (crankports.com) has been doing e-commerce for 17 years, shipping our
products direct to consumers. The first 16 years we operated on an in-house developed
platform that managed every aspect of our business, but for a variety of reasons
we decided to migrate to WooCommerce and went live in February 2018. One of my biggest
complaints with WooCommerce was the complete lack of ability to tack and analyze
true profitability. While you can track cost of goods with 3rd party plugins, it's
not complete if you're unable to capture the cost of shipping data as well. In our
case, the cost of shipping a package ranges from $7 to $50, but we only charge our
customers a small portion (starting at $2.95 flat rate). We have to do this because
people would never pay the actual cost of shipping. That results in us incurring
very large shipping expenses that come directly out of profit. While I can see our
total monthly shipping expenses in our accounting system, I have no way of knowing
how profitable a particular order is, or particular type of order (weight, shipping
zone, etc.). When we got this plugin it was truly a game charger as far as being
able to manage our business. It works flawlessly and imports the actual cost of 
shipping for each order from ShipStation as soon as the order ships. We also use
their "Woocommerce Net Profit" companion plugin that gives us all of the tools to
roll this data up into reports that allows us to analyze the information and make
educated changes to our business. We looked long and hard and there was no other
plugin that did what this plugin along with the Net Profit plugin were able to do.
If you ship products form a WooCommerce site, you honestly should consider this 
plugin as mandatory.

 [ سارے 1 ریویو پڑھو ](https://wordpress.org/support/plugin/woo-cost-of-shipping/reviews/)

## Contributors & Developers

“Cost of Shipping for WooCommerce” is open source software. The following people
have contributed to this plugin.

حصہ پاوݨ آلے

 *   [ The Rite Sites ](https://profiles.wordpress.org/theritesites/)

[ “Cost of Shipping for WooCommerce&#8221 دا آپݨی زبان وچ ترجمہ کرو۔](https://translate.wordpress.org/projects/wp-plugins/woo-cost-of-shipping)

### ڈیویلپمنٹ وچ دلچسپی ہے؟

[Browse the code](https://plugins.trac.wordpress.org/browser/woo-cost-of-shipping/),
check out the [SVN repository](https://plugins.svn.wordpress.org/woo-cost-of-shipping/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/woo-cost-of-shipping/)
by [RSS](https://plugins.trac.wordpress.org/log/woo-cost-of-shipping/?limit=100&mode=stop_on_copy&format=rss).

## تبدیلی لاگ

#### 1.6.0

 * New: cost of shipping now also records the carrier (UPS, FedEx, USPS, etc.) alongside
   the cost, including in the change history.
 * Fixed: cost of shipping now imports correctly from the WooCommerce Shipping plugin,
   not just WooCommerce Services & Tax.
 * New: `wp wc-cos cleanup-stray-method-meta` (WP-CLI) removes leftover database
   rows from a bug fixed in 1.5.5.
 * New: uninstalling now keeps your data by default; see the FAQ to opt into deleting
   it.
 * Tested up to WordPress 7.1 and WooCommerce 11.0.

#### 1.5.5

 * Changed: display name to “Cost of Shipping for WooCommerce” (was “WooCommerce
   Cost of Shipping”). Slug and installed directory are unchanged; this is a display-
   name-only change.
 * Changed: Plugin URI and Donate link now point at the plugin’s real slug instead
   of the old trademarked path.
 * Fixed: text domain now matches the plugin slug.
 * Fixed: PHP 8.1+ deprecation notice on the safe XML parser’s method return types.
 * Fixed: escaped order-ID attribute output and sanitized page-parameter reads flagged
   by wordpress.org’s Plugin Check.
 * Security: hardened the admin AJAX handlers, the ShipStation import and the XML
   parser. No vulnerability was found; this is defense in depth. Updating is recommended.
 * Fixed: the cost of shipping method and change history were not being saved on
   orders. Existing order data is left as-is; new saves are correct.
 * Fixed: a possible fatal error when importing WooCommerce Services labels on some
   stores.
 * Fixed: a WooCommerce Services import that resolved to exactly 0.00 was reported
   as a failure.
 * Fixed: the order screen could show a cost of shipping as saved when the save 
   had not succeeded.
 * Changed: order-screen strings are now translatable.

#### 1.5.4

 * Fixed: WooCommerce Services incompatibility caused crash in some stores on the
   order and analytics page.

#### 1.5.3

 * Fixed: Changed how conditional was checked to prevent debug potentially crashing
   administrative screen.

#### 1.5.2

 * Fixed: Changed how conditional was checked to prevent warning output in debug
   log.

#### 1.5.1

 * Fixed: WooCommerce admin page changes prevented javascript enqueueing.

#### 1.5.0

 * WooCommerce High Performance Order Storage (HPOS) update

#### 1.4.2

 * Security update
 * Tested on recent WordPress and WooCommerce

#### 1.4.1

 * Security update

#### 1.4.0

 * Tweak: New function to work with the new more dynamic version of WooCommerce 
   Net Profit.
 * Tweak: Changed some casting to float, to floatval() calls.
 * Tweak: Changed debug location to a more universal file for debugging TRS plugins.

#### 1.3.1

 * Fixed: links mispelled WooCommerce and are corrected to have the correct links.

#### 1.3.0

 * New: Order meta to store history of Cost of Shipping after the first store (no
   redundant data).
 * Tweak: Changed how Re-Import works when labels either previously existed or not
   when interacting with WooCommerce Services and Stamps labels.
 * Tweak: Disabled buttons while waiting on manual Cost of Shipping change.
 * Fixed: Matched WooCommerce Order table spacing for Total Cost of Shipping Width.

#### 1.2.0

 * New: Added automated imports of WooCommerce Services Shipping Labels Cost of 
   Shipping!
 * Tweak: Changed how tooltip chooses to appear on different browsers to match Cost
   of Goods for WooCommerce’s approach (CSS)
 * Fixed: Bug where previous cost of shipping would not appear in manual entry tooltip

#### 1.1.0

 * New: Added Order Note when Cost of Shipping is changed
 * Tweak: Isolated JavaScript into its own file rather than enqueued into the footer

#### 1.0.1

 * Tweak: Changed how WooCommerce active check is handled to correctly show error
   message and deactivate plugin when WooCommerce not found

#### 1.0.0

 * First release
 * Reads in manual entries for cost of shipping
 * Automatically reads in the cost of shipping on an order if you currently use 
   the ShipStation plugin and platform

## میٹا

 *  Version **1.6.0**
 *  Last updated **3 مہینے پہلے**
 *  Active installations **50+**
 *  WordPress version ** 5.2 یا ودھ **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.0 یا ودھ **
 *  Language
 * [English (US)](https://wordpress.org/plugins/woo-cost-of-shipping/)
 * Tags
 * [net profit](https://skr.wordpress.org/plugins/tags/net-profit/)[shipping cost](https://skr.wordpress.org/plugins/tags/shipping-cost/)
   [shipstation](https://skr.wordpress.org/plugins/tags/shipstation/)[woocommerce](https://skr.wordpress.org/plugins/tags/woocommerce/)
 *  [اعلیٰ منظر](https://skr.wordpress.org/plugins/woo-cost-of-shipping/advanced/)

## ریٹنگ

 5 ستاریاں وچوں 5

 *  [  1 5 ستارہ جائزہ     ](https://wordpress.org/support/plugin/woo-cost-of-shipping/reviews/?filter=5)
 *  [  0 4 ستارہ جائزے     ](https://wordpress.org/support/plugin/woo-cost-of-shipping/reviews/?filter=4)
 *  [  0 3 ستارہ جائزے     ](https://wordpress.org/support/plugin/woo-cost-of-shipping/reviews/?filter=3)
 *  [  0 2 ستارہ جائزے     ](https://wordpress.org/support/plugin/woo-cost-of-shipping/reviews/?filter=2)
 *  [  0 1 ستارہ جائزے     ](https://wordpress.org/support/plugin/woo-cost-of-shipping/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/woo-cost-of-shipping/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/woo-cost-of-shipping/reviews/)

## حصہ پاوݨ آلے

 *   [ The Rite Sites ](https://profiles.wordpress.org/theritesites/)

## معاونت

Got something to say? Need help?

 [معاونت فورم ݙیکھو](https://wordpress.org/support/plugin/woo-cost-of-shipping/)

## عطیہ کرو

Would you like to support the advancement of this plugin?

 [ ایں پلگ ان کوں عطیہ ݙیوو ](https://www.theritesites.com/plugins/woo-cost-of-shipping)