Get Started
How to create a product price that includes shipping costs - AdTribes
  1. Home
  2. Knowledge Base
  3. Fields & Mapping
  4. How to create a product price that includes shipping costs

How to create a product price that includes shipping costs

A few sales channels want the price you send them to already include shipping. WooCommerce has no attribute that holds such a price, so you build one yourself. Product data manipulation adds the shipping cost to the product price, writes the result into an attribute you create, and you map that attribute to the price field in your feed.

Before you start

  • Product data manipulation is a Product Feed Elite feature. You need Elite active on top of Product Feed Pro.
  • Your shipping must be set up with the standard WooCommerce shipping zones and methods, so a shipping cost is available for your products.
  • You need a feed already created, because the rule is added per feed.

Check your channel wants this first

Most channels, Google and Facebook among them, expect price and shipping as two separate attributes. They calculate the total themselves. Sending a price with shipping folded in can put you outside their policy and can make your listing look more expensive than it is.

Use the method below only where the channel’s own specification asks for an inclusive price. If you are not sure, check the channel’s feed documentation before you change anything.

Create an attribute to hold the new price

The combined value needs somewhere to live, so create a product attribute for it. There is no need to add terms, you can leave those empty.

  1. Go to Products → Attributes.
  2. Add an attribute named Price including shipping, with the slug price_including_shipping.
  3. Save it.
A new product attribute named price including shipping

Turn on product data manipulation

  1. Go to Product Feed → Settings.
  2. Switch on Enable Product data manipulation feature.
  3. Save your settings.

Map the attribute to the price field

Open your feed and go to the Field Mapping step. Map Price including shipping to the channel’s price field, in place of the standard product price.

The new attribute mapped to the price field in field mapping

Add the rule that combines the values

Open the Data Manipulation step of the same feed and add a rule that writes the product price plus the shipping cost into your new attribute. Save the feed, then refresh it.

A data manipulation rule adding the shipping cost to the product price

The price field in your feed now carries the product price plus shipping.

Troubleshooting

Shipping depends on the destination, so which figure is sent? A feed carries one price per product, so a destination-dependent rate has no single correct value. Pick the rate for the market this feed targets, and build a separate feed per market if your rates differ a lot.

The price did not change after refreshing. Check that product data manipulation is switched on in the plugin settings, that the rule is saved on this feed rather than another one, and that the field mapping points at your new attribute.

The channel rejected the feed. Confirm the channel actually wants an inclusive price. Most do not.

Need more help?

Elite customers get priority support. If you’re on Product Feed Elite, open a support ticket, and our team will help you set up the rule.

If you’re on the free Product Feed Pro plugin, post your question on the WordPress.org support forum, and we’ll point you in the right direction.

Was this article helpful?

Related Articles

Complete Your Purchase
AdTribes WooCommerce Product Feed

The best WooCommerce product feed plugin

  • AdTribes Pty Ltd
    ABN: 40 675 636 816
Product
Resources & Info
Partner Sites
Rymera