Title: discount_table.php
Last modified: January 16, 2023

---

# discount_table.php

 *  Resolved [tuomonurkkala](https://wordpress.org/support/users/tuomonurkkala/)
 * (@tuomonurkkala)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/discount_table-php/)
 * Hi there,
 * Is it possible you to have a permanent fix for the Minimum quantity – Maximum
   quantity place? I am having discount for one product 0,1€ and two products 0,2
   € and so on.
 * I have added this code to functions.php:
 * 165 row:
 *     ```wp-block-code
                               if (isset($range['from']) && !empty($range['from']) && isset($range['to']) && !empty($range['to'])) {
                                   if($range['from'] == $range['to']) {
                                       $discount_range = $range['from'];
                                   }else {
                                       $discount_range = $range['from'] . ' - ' . $range['to'];
                                   }
       ```
   
 * The original code is:
 *     ```wp-block-code
                               if (isset($range['from']) && !empty($range['from']) && isset($range['to']) && !empty($range['to'])) {
                                   $discount_range = $range['from'] . ' - ' . $range['to'];
       ```
   
 * After every update I have to place the same code there again and again 😀
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdiscount_table-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/discount_table-php/#post-16379871)
 * Hi,
 * Thank you for reaching out.
 * To customise our discount table, you can done by creating a simple override at
   your theme level.
 * Here are the steps you can follow:
 * Copy the file: `woo-discount-rules/v2/App/Views/Templates/discount_table.php.`
 * Paste in the following path: `/wp-content/themes/<YOUR_THEME_FOLDER>/advanced_woo_discount_rules/
   discount_table.php.`
 * Now, you can customise in the overridden file.
 * Here is a guide detailing the same: (You can refer “How to further customize 
   the discount table?” section) [https://docs.flycart.org/en/articles/4230405-all-about-discount-table-2-0](https://docs.flycart.org/en/articles/4230405-all-about-discount-table-2-0)
 * Hope this helps.
 * Thanks
   Team Flycart
    -  This reply was modified 3 years, 4 months ago by [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/).

Viewing 1 replies (of 1 total)

The topic ‘discount_table.php’ is closed to new replies.

 * ![](https://ps.w.org/woo-discount-rules/assets/icon-256x256.png?rev=1977982)
 * [Discount Rules for WooCommerce](https://wordpress.org/plugins/woo-discount-rules/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-discount-rules/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-discount-rules/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-discount-rules/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-discount-rules/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-discount-rules/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/discount_table-php/#post-16379871)
 * Status: resolved