Hi,

after adding a coupon code to the review page, all flexicharges show twice,

i made a little dirty fix:

add in function "flexicharge_checkoutapi"

before "while ($charge = db_fetch_object($configured_charges)) {"

      if(is_array($txn->misc)) {
        $i = 0;
        foreach ($txn->misc as $misc) {
          if ($misc->callback == 'general_sitewide_flexicharge_calculate') {
            unset($txn->misc[$i]);
          }
          $i++;
        }
      }

or see the attached file.

this is for all version of this contrib.

please review.

regards pebosi

CommentFileSizeAuthor
flexicharge.module.txt11.74 KBpebosi

Comments

sime’s picture

Can you please clarify which version you've installed? HEAD is not being developed at the moment.

pebosi’s picture

I used 4.7 2.1, but the problem is in all versions the same

sime’s picture

Version: master » 4.7.x-2.1

correcting version

sime’s picture

Status: Active » Fixed

Sorry, I cannot replicate in 4.7 or 5. Perhaps it was fixed by something else.

Anonymous’s picture

Status: Fixed » Closed (fixed)
sime’s picture