Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter amityweb

    (@amityweb)

    Its because in your code you have this:

    $feetitle='';
    if($this->get_prop('append_fee'))
    {
        $fee_amount = $this->get_add_fee();
        $feetitle="- ".wc_price($fee_amount);
    }

    But append_fee is a yes/no choice in the database, so $this->get_prop(‘append_fee’) returns true even if you choose no.

    I have changed it to the following and its working now. Please can you fix it for next update.

    $feetitle='';
    if($this->get_prop('append_fee') != 'no')
    {
        $fee_amount = $this->get_add_fee();
        $feetitle="- ".wc_price($fee_amount);
    }
    Plugin Author Amin Y

    (@oscomsupport)

    Thankyou for pointing this out. I’ ve updated the code, will update a new version in couple days, so existing users gets auto-update.
    Amin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The price gets appended to the label when “Append Fee Value to Label” is off’ is closed to new replies.