Hi,

we're using drupal 5.1 and ecommerce 5.x-3.x-dev on php 5.2.0. the flexicharge does not show up on the checkout process due to the bug in the array_intersect function used while eliminating role based flexicharges.

here's the attached patch.

$ diff modules/ecommerce/contrib/flexicharge/flexicharge_new.module modules/ecommerce/contrib/flexicharge/flexicharge_old.module
155c155
< if (is_array($charge->roles) && !count(array_intersect_key($user->roles, $charge->roles))) {
---
> if (is_array($charge->roles) && !count(array_intersect($user->roles, $charge->roles))) {

thanks.

yashesh bhatia

CommentFileSizeAuthor
flexicharge_0.patch678 bytesyasheshb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brmassa’s picture

Status: Needs review » Closed (duplicate)

Yashesh,

The real problem comes when you edit the flexichage and choose no product types. despite the "No selection indicates all products." on description, the current code doesnt use flexichage without product types asigned.

see http://drupal.org/node/131653

regards,

massa