Support » Plugin: Discount Rules for WooCommerce » Discount table not showing properly

  • Resolved jerubei

    (@jerubei)


    I’ve linked one of the products. The discount table is just beneath the description, but doesn’t seem to show properly (no text at all), as of the last update.

    p.s. You fixed the badges issue, thank you!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have the same problem.
    Yesterday it was perfect of local copy of site?

    Plugin Author flycart

    (@flycart)

    Hi

    Thank you for reporting the issue.

    We just released an update with the fix for it.. Can you please update to the latest version which is 1.7.11

    That should sort out the issue. If it persists, please let me know.

    Thanks
    Ramesh
    ‚Äč

    Hi!

    After update it shows following error:

    Warning: count(): Parameter must be an array or an object that implements Countable in C:\…\woo-discount-rules\helper\general-helper.php on line 833

    bgrgroup

    (@bgrgroup)

    Hi
    After update version which is 1.7.11 last night it works fine for me
    Tank You

    Plugin Author flycart

    (@flycart)

    Hi

    Here is the fix

    Edit woo-discount-rules\helper\general-helper.php

    Around line 833, you will find

     if((is_array($data) || is_object($data)) && count($data)){
                    return true;
                }

    Change this to

    if((is_array($data) || is_object($data))){
           if(is_object($data)) $data = (array)$data;
            if(count($data)) return true;
     }

    Save.

    The issue occurs on in PHP 7.2… in other PHP versions, this does not occur.

    The fix will be included in the next update.

    Thanks
    Ramesh

    jerubei

    (@jerubei)

    The last update fixed the problem, thank you!

    I notice the following, which you may or may not want to fix – when the table headers are switched off, the column width is reduced, which forces the discount column to become so small, that the discount digit is on one line and the percentage sign is moved below, on a new line.

    https://imgur.com/a/JUWoPW2

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Discount table not showing properly’ is closed to new replies.