Results 1 to 7 of 7
  1. #1

    Default Donate percentage to cause

    I want to give a forum I belong to a group discount on purchases made in my store. I have already set up the appropriate coupon codes for this to work. Now, I would like to be able to designate a % of every sale made by those customers to be a donation to the maintenance of the forum. Is there a mod or a way in Zen cart to set this up?

    Thanks,

    jason
    Last edited by brimsjewelry; 25 Sep 2007 at 12:33 AM.

  2. #2

    Default Re: Donate percentage to cause

    I'm not asking for a way to automatically debit or otherwise move the donated funds to a designated account. I'm simply asking for a way for Zen cart to calculate the donated amount and say something to the effect "Congratulations! You have just donated $X.XX to the XXXX forum!" to save me the hassle of having to calculate contributions manually. I can handle setting the cash aside manually.

    Thanks

    Jason

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Donate percentage to cause

    Where do you want to see this amount?

    Just only in the email, or on checkout_success, or on the account or account_history_info?
    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: v1.5.5]
    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!

  4. #4

    Default Re: Donate percentage to cause

    Hi Linda,

    I'd like the customer to see it in checkout success and I would like to see it also in the email I receive from the sale.

    Thanks

    Jason

  5. #5

    Default Re: Donate percentage to cause

    On second thought, even if it just appeared in the email would be ok. But in checkout success would be a plus.

    Jason

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Donate percentage to cause

    On tpl_checkout_success_default.php the total of the order can be obtained with:
    $orders->fields['order_total']

    For the email you'd be looking at the orders class you can use:
    $zf_insert_id

    To look up the order in the orders table and pull the order_total field ... then, add this to the text of the email both TEXT and HTML areas for it to show ...
    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: v1.5.5]
    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!

  7. #7

    Default Re: Donate percentage to cause

    Quote Originally Posted by Ajeh View Post
    On tpl_checkout_success_default.php the total of the order can be obtained with:
    $orders->fields['order_total']

    For the email you'd be looking at the orders class you can use:
    $zf_insert_id

    To look up the order in the orders table and pull the order_total field ... then, add this to the text of the email both TEXT and HTML areas for it to show ...
    I appreciate your taking the time to reply but this is beyond my skill level. Maybe I should contract someone out to do this for me.

    Thanks

    jason

 

 

Similar Threads

  1. v139h Donate for cart contents?
    By Zariera in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 12 Jan 2012, 05:32 PM
  2. Donate Button?
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Jul 2011, 07:34 PM
  3. Percentage Discount Not showing Text or Percentage off
    By milobloom in forum General Questions
    Replies: 13
    Last Post: 28 Jun 2010, 07:06 AM
  4. Any UK zenners want to help me and i'll donate £20
    By gmrm in forum General Questions
    Replies: 2
    Last Post: 24 Apr 2009, 11:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR