Title: Quantity based flat rate
Last modified: April 29, 2020

---

# Quantity based flat rate

 *  Resolved [Anam Hossain](https://wordpress.org/support/users/anam_themexpert/)
 * (@anam_themexpert)
 * [6 years ago](https://wordpress.org/support/topic/quantity-based-flat-rate/)
 * Hello,
    In flat rate shipping method, I can set cost per product like 10 + ( 
   2 * [qty] ) – A base shipping cost of $10 plus $2 for each item in the cart. 
   But if I want $10 for 1-10 quantity $20 for 11-20 quantity $30 for 21-30 quantity
   Then how can I set this price with flat rate shipping placeholder method. I appreciate
   fast reply and help. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [6 years ago](https://wordpress.org/support/topic/quantity-based-flat-rate/#post-12754897)
 * Flat rate formulae are evaluated by class-wc-eval-math.php, and looking at that
   we can see that operators are limited to + – / x and ^ (power) and that there
   no functions or if/then conditionals. So I don’t think what you want can be done
   with the core WooCommerce plugin.
 * I’ve had a look at three popular wordpress.org shipping plugins and they don’t
   offer formulae based on product quantity, you would need to get the pro versions
   for that. There are also several commercial shipping plugins at woocommerce.com
   and codecanyon.net. I am not able to recommend a particular one.
 *  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * (@luminus)
 * Automattic Happiness Engineer
 * [6 years ago](https://wordpress.org/support/topic/quantity-based-flat-rate/#post-12755491)
 * Hi [@anam_themexpert](https://wordpress.org/support/users/anam_themexpert/),
 * You can’t achieve this with the flat rate shipping method.
 * You’ll want to look at the [Table Rate Shipping](https://woocommerce.com/products/table-rate-shipping/?aff=10486&cid=1131038)
   extension for the sort of tiered pricing that you’re looking to set up here.
 *  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * (@luminus)
 * Automattic Happiness Engineer
 * [6 years ago](https://wordpress.org/support/topic/quantity-based-flat-rate/#post-12784450)
 * Hi [@anam_themexpert](https://wordpress.org/support/users/anam_themexpert/),
 * We haven’t heard from you in a while now so I’ll go ahead and mark this thread
   as resolved.
 * If you have any further questions, I recommend creating a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Quantity based flat rate’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/quantity-based-flat-rate/#post-12784450)
 * Status: resolved