Support » Plugin: Front End Users » Discount appear during payment without discount code

  • Hello,
    There is a bug in your plugin (one more).
    When there is no discount code for payment, the discount code form is visible.

    I cannot wait your answer so I took a look.

    File concerned : Insert_Account_Payment.php
    Line concerned : 529
    What happened : when there is no discount, the var $Discount_Codes_Array is a string (not an array) so sizeof(string) return 1 anyway.

    I changed for the moment by :
    if (is_array($Discount_Codes_Array) && sizeof($Discount_Codes_Array) > 0) {

Viewing 1 replies (of 1 total)
  • Plugin Contributor EtoileWebDesign

    (@etoilewebdesign)

    Hi Johan,

    This isn’t really a bug, but more of a feature request. You’re just saying that you’d like for the discount code field to not show if you haven’t created any discount codes, right? You can hide this area with the following custom CSS:

    
    .ewd-feup-discount-div {
    display: none;
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Discount appear during payment without discount code’ is closed to new replies.