[Fixed v1.5.1] can I have more than one onetime fee on a product?
I tested the scenario on a test cart and it does work so there is some setting in the cart I'm working on that is preventing the one time fee from being included in the cart subtotal. It is listed up in the unit and totals but is not added to the subtotal. It does show up during checkout and is charged properly. What could be preventing from it being included in the shopping cart subtotal?
can I have more than one onetime fee on a product?
Well, the answer is actually yes. But the reason why I'm posting this is that a previous post got no attention to the problem created by having 2 onetime fees.
The only problem is that though both fees are shown in the shopping cart up underneath the product costs, only one of the one-time fees shows up in the subtotal. Later in checkout, both fees do show up and get charged.
So do you suppose this is a bug?
Re: can I have more than one onetime fee on a product?
Quote:
Originally Posted by
delia
Well, the answer is actually yes. But the reason why I'm posting this is that a previous post got no attention to the problem created by having 2 onetime fees.
The only problem is that though both fees are shown in the shopping cart up underneath the product costs, only one of the one-time fees shows up in the subtotal. Later in checkout, both fees do show up and get charged.
So do you suppose this is a bug?
See if this works for you ...
Edit the file:
/includes/classes/shopping_cart.php
and around line 778 change the = to a += for:
Code:
// attributes_price_onetime
if ($attribute_price->fields['attributes_price_onetime'] > 0) {
$totalOnetimeCharge += $attribute_price->fields['attributes_price_onetime'];
}
Be sure to test this well ...
Re: can I have more than one onetime fee on a product?
First look seems to work well. We'll keep playing with it and make sure. Thanks!
Re: can I have more than one onetime fee on a product?
Thanks for the update that this is working for you ... let us know if you run into further issues ... :smile:
Re: can I have more than one onetime fee on a product?