Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Bug Reports / [Fixed v1.5.1] can I have more than one onetime fee on a product?

[Fixed v1.5.1] can I have more than one onetime fee on a product?

Locked

Started by delia on 6 Jun 2012, 2:06 PM · Views: 1,518

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
6 Jun 2012, 2:06 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

[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?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

25 Jun 2012, 7:21 PM
#2
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [Fixed v1.5.1] 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?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

25 Jun 2012, 11:19 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Fixed v1.5.1] can I have more than one onetime fee on a product?

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:

            // attributes_price_onetime
            if ($attribute_price->fields['attributes_price_onetime'] > 0) {
              $totalOnetimeCharge += $attribute_price->fields['attributes_price_onetime'];
            }

Be sure to test this well ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Jun 2012, 1:22 PM
#4
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: [Fixed v1.5.1] 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!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

26 Jun 2012, 1:35 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Fixed v1.5.1] 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:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Sep 2012, 2:49 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Fixed v1.5.1] can I have more than one onetime fee on a product?

Fix included in v1.5.1

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.