Postponed
Project:
e-Commerce
Version:
master
Component:
flexicharge
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2007 at 15:51 UTC
Updated:
18 Oct 2008 at 21:58 UTC
In addition to the...
FLEXICHARGE_CHARGE +/-
FLEXICHARGE_CHARGE_PCT_SUBTOTAL % of current total
FLEXICHARGE_CHARGE_PCT_ITEMTOTAL % of item total
...operators, I propose that a FLEXICHARGE_CHARGE_PER_ITEM operator be introduced to Flexicharge.
This would allow administrators to easily configure ecommerce to calculate shipping surcharges at a flat rate per item, rather than as a percentage of item total or subtotal.
For instance, in my case, I sell CDs online, and need to configure ecommerce to charge customers as follows:
CD 1 = $16
CD 2 = $16
CD 3 = $16
SUBTOTAL = $48
Handling charge = $3
$0.50 postage per item = $1.50
TOTAL = $52.50
I'll followup to this issue with an example of how I hacked custom.inc to perform this calculation.
Comments
Comment #1
bjornarneson commentedIn order to achieve the PER_UNIT charge as requested above. I hacked the FLEXICHARGE_CHARGE_PCT_ITEMTOTAL operator in custom.inc. See below.
Comment #2
simeThis will be possible in v4
Also http://drupal.org/node/161099 marked a duplicate of this.
Comment #3
gordon commented