Zen Cart Logo

Donation available

Views: 1,481

Results 1 to 8 of 8
5 Jun 2011, 11:02 AM
#1
gilcnx avatar

gilcnx

New Zenner

Join Date:
Jun 2011
Location:
chiangmai
Posts:
3
Plugin Contributions:
0

Donation available

Hi everybody I Gil new to this forum.
On my customer site https://www.berlem.net we would like to include an option donate from 2 to 10% of the amount , to social welfare ( goes to Africa) only if the custumer select the option from a scrolldown menu in the shopping cart and this percentage to be added on the checkout invoice. I don't know if it is possible to do it and how ? any advice will be much appreciated.

We use windows XP sp3
ZC 1.3.9 b in both language EN/FR .
A long search in this forum let me decided to contact you guys.
Thanks to you for any kind of help provided
Gil

5 Jun 2011, 11:32 AM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Donation available

The only way that I have found to do something similar is to add a 'donation' product to the cart. In that case the amount 'rounded up' the total to the nearest dollar. Creating a variable price product is kind of interesting. I'll pm you the address of that site.

Another way of doing what you want might be to write an order total module that added the percentage. The user's selection would need to be stored in a session variable probably with the dropdown setting that session variable.

Basically, it is going to take a bit of coding and might be beyond the scope of a forum post :-) but should be possible.

Maybe someone else has a better solution.

5 Jun 2011, 11:45 AM
#3
malc avatar

malc

New Zenner

Join Date:
May 2011
Location:
Northumberland
Posts:
50
Plugin Contributions:
0

Re: Donation available

niccol:

The only way that I have found to do something similar is to add a 'donation' product to the cart. In that case the amount 'rounded up' the total to the nearest dollar. Creating a variable price product is kind of interesting. I'll pm you the address of that site.

Maybe someone else has a better solution.

I like this idea of people being able to get to the checkout and see there order is 28.75 and being able to add just the 1.25 to make a round 30, can this be done when at the checkout screen?

Malc

5 Jun 2011, 1:15 PM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Donation available

Not really - as that site stands it is a demonstration of it being added as a variable price product rather than an order total. So it happens at cart level rather than checkout level.

If you wanted it to happen at checkout rather than shopping cart stage, it would probably need to be an order total nodule that worked on a session variable. There'd need to be a bit of thought about that because you'd need to refresh the page if someone chose to donate and ensure that all the information was passed to the refreshed page.

It would however, be a better system because you could accommodate shipping and taxes. And because the other version is a bit of a hack rather than a beautiful module to be honest.

It's do-able but would involve entirely new coding. So, it probably depends on whether you can do that coding yourself or if you are happy to pay someone to do it for you.

5 Jun 2011, 1:17 PM
#5
malc avatar

malc

New Zenner

Join Date:
May 2011
Location:
Northumberland
Posts:
50
Plugin Contributions:
0

Re: Donation available

Way beyond my league, thanks for info though
malc

5 Jun 2011, 11:45 PM
#6
pdxdoug avatar

pdxdoug

Zen Follower

Join Date:
Jan 2008
Location:
Portland, Oregon USA
Posts:
356
Plugin Contributions:
0

Re: Donation available

You might take a look at That Software Guy's site - he has a round-up for charity checkout module that won't do exactly what you want, but it might be a start.

Cheers

6 Jun 2011, 6:10 AM
#7
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Donation available

Ha ha! There you go. That would have helped two years ago when I coded my solution :-)

6 Jun 2011, 6:25 AM
#8
gilcnx avatar

gilcnx

New Zenner

Join Date:
Jun 2011
Location:
chiangmai
Posts:
3
Plugin Contributions:
0

Re: Donation available

Well thanks for this link it may be similar of what I want to do I will check it seriously to see if suitable for my client. As i'm not specialist in programmation php, mysql.