• Resolved tuomonurkkala

    (@tuomonurkkala)


    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:

                            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:

                            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 to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support sangeethasrinivasan

    (@sangeethasrinivasan)

    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

    Hope this helps.

    Thanks
    Team Flycart

Viewing 1 replies (of 1 total)
  • The topic ‘discount_table.php’ is closed to new replies.