Hướng dẫn How to set a shipping cost by item in Woocommerce

Written by admin
Posted on Tue, 07/13/2021 - 05:02
30 views

Share Everywhere

Table of contents

In Woocommerce, when I add multiple products in cart, the shipping only applies to to 1 product. How should I change that to apply the cost to each item?

Like in the following image, the shipping cost for printer is applied but the LCD monitor is not.

Like in the following image, the shipping cost for printer is applied but the LCD monitor is not.
Like in the following image, the shipping cost for printer is applied but the LCD monitor is not.

The solution

In the Woocommerce Shipping Settings for "Flat rate" Shipping Method, there is many ways to get dynamic settings based on:

  • Item quantity, using [qty] argument
  • Total item cost, using [cost] argument
  • A fee, using [fee] argument with additional parameters percentmin_fee and max_fee

You can also use +-* and / operators and parenthesis.

Đây là một số cách tính

  1. [qty]*2 - Cost by item
  2. 4+([qty]*2.5) - Initial cost with an additional cost by item
  3. [fee percentage='10' min_fee='' max_fee='20'] - Percentage fee limited to a max amount
  4. [fee percentage='10' min_fee='4' max_fee=''] - Percentage fee with a minimal cost
Công thức

 

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
3 + 14 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Profile picture for user admin
Câu nói tâm đắc: “Điều tuyệt với nhất trong cuộc sống là làm được những việc mà người khác tin là không thể!”