Title: options quantity is counting wrong
Last modified: July 12, 2022

---

# options quantity is counting wrong

 *  Resolved [ohmynervs](https://wordpress.org/support/users/ohmynervs/)
 * (@ohmynervs)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/options-quantity-is-counting-wrong/)
 * Hello,
    I am trying to add the additional options field. The quantity is counting
   wrong. I want to have for example a quantity of 3 on my regular product, but 
   only 1 quantity for the option.
 * The final price calculates my additional option then 3 times automatically. Anyone
   any idea?
 * Right now I am using the free plugin. Not sure if it might work with the paid
   version. Just don’t want to purchase a plugin, which does not calculate right.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foptions-quantity-is-counting-wrong%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [katn401](https://wordpress.org/support/users/katn401/)
 * (@katn401)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/options-quantity-is-counting-wrong/#post-15819857)
 * I’m not the plugin developer. But, maybe you could use a “number” option for 
   quantity instead of using the Woocommerce built-in quantity field. I think you
   might have to use the full version to get the formula to work correctly though.
   So, make a number option, then set price type to formula, then use the quantity
   times the base price.
 * Then your other options could just be a fixed price that gets added to the total.
 * I think you would also have to disable the built-in Woocommerce quantity field
   to avoid confusion.
 * I do not have the full version to test if this will work correctly but it seems
   like it should work.
 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/options-quantity-is-counting-wrong/#post-15822191)
 * Oh sorry, currently the plugin is not able to display dynamic prices in that 
   area, it just display whatever you put in the “Price” setting of each option.
   I will add this to the todo list. As a kind-of-workaround for now, instead of
   showing the price of each option you can show the total price of the field (by
   unchecking the hide price setting), this will display the price correctly.
 * Regards!
 *  Thread Starter [ohmynervs](https://wordpress.org/support/users/ohmynervs/)
 * (@ohmynervs)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/options-quantity-is-counting-wrong/#post-15822276)
 * Thank you very much for the reply. I think I explained not clear enough, what
   it does.
 * In my case: If I check the option, it adds the price to the additional services
   correctly and it counts that position correctly. But when I add for example quantity
   of 2 or 3 for the main product, it automatically doubles or triples the position
   for the option too.
    If it would leave the price for the options without changin
   with the quantity of the main price, it would be all fine.
 * Thank you
 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/options-quantity-is-counting-wrong/#post-15822310)
 * Ups sorry please disregard by previous reply (that was the reply for another 
   topic).
 * Sorry that is actually the expected behavior, if you have an option with a price
   of x that price will also be multiplied by the quantity. But it looks like you
   want to add like a global price that is not affected by the quantity?
 * If so there is only one option (soon there will be another).
 * First option:
    As katn401 said you can’t use the built in quantity field, that
   field will always multiply the product quantity by the product price and it does
   this calculation in many areas like when you add a product to the cart or when
   you update the cart quantity (in the cart page) so it is not feasible to use 
   it (or at least not without adding php code to modify this calculation).
 * It would be better to use a number field so the user specify the quantity and
   then add your options as normal with the price configuration that you want. This
   way the calculations will work as you want. The downside is that the Quantity
   column in the cart and checkout will show 1 instead of the quantity defined in
   the product options. But you could also hide this column and show the quantity
   bellow the product name (just like the plugin does with any option). Something
   like this:
 *     ```
       Product Name         Price
       Your_product          20
       Quantity: 3
   
       Total: 20
       ```
   
 * Second option:
    This option is not available yet but it will be soon, you will
   be able to configure fees in a similar way that you configure show/hide conditions.
   These fees are like additional costs that are added when a condition is met. 
   In your case you could use this feature to add a fee (which would be the price
   of all your options).
 * Your fee would be shown in another line in your cart and checkout page, something
   like this:
 *     ```
       Product Name    Quantity      Price
       Your_product       3           10
       You_additional_fee 1           10
   
       Total:   20
       ```
   
 * Regards!
    -  This reply was modified 3 years, 11 months ago by [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/).

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

The topic ‘options quantity is counting wrong’ is closed to new replies.

 * ![](https://ps.w.org/additional-product-fields-for-woocommerce/assets/icon-256x256.
   png?rev=3288566)
 * [Extra Product Options Builder for WooCommerce](https://wordpress.org/plugins/additional-product-fields-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/additional-product-fields-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/additional-product-fields-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/additional-product-fields-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/additional-product-fields-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/additional-product-fields-for-woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/options-quantity-is-counting-wrong/#post-15822310)
 * Status: resolved