Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2007
    Posts
    6
    Plugin Contributions
    0

    Default Creating a custom order total module.

    I have a client that needs to modify order totals (discounts and free gifts, etc) based on the type of credit card a user is using. I looked at the order total modules provided with zen cart and on the order confirmation page the totals "look" right. I just want to make sure that I am approaching this correctly do I just modify the totals directly in the process function
    by modifying the values in:

    $order->info['total'] and $order->info['tax'] or will this only modify what's displayed (and not actually modify what gets charged to the buyer's CC)? I've run through the process once and it seems ok on the display, however the receipt that is sent to me doesn't display any changes in the totals and my order history does not show any changes in the totals as well. Is there somewhere else that I need to be making a module to affect the receipts and order history?

    I don't have immediate access to the merchant account to check if the total charged was correct (that info is coming) but I just wanted to ask here if I was approaching this problem correctly.


    Thanks,
    -b

  2. #2
    Join Date
    Jan 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Creating a custom order total module.

    Sorry also forgot to mention this is on Ver 1.3.0.1 (I know this isn't the latest one, is an upgrade necessary to have order total modules working correctly)?

  3. #3
    Join Date
    Apr 2007
    Location
    WA
    Posts
    14
    Plugin Contributions
    0

    Default Re: Creating a custom order total module.

    Hi bcyde,

    Sorry no one replied to your request...

    Did you figure this out? I don't know the answer as I am new to zc, but I am curious what your solution was. I will be heavily modding my store in the next year or two...and this idea is intriguing.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: Creating a custom order total module.

    For the most part, what was suggested in the original post is *not* a wise practice. There may be a legitimate business need for it, but the approach sounds like it's a bit "off" from what would be considered typically acceptable practice.

    If you're trying to add surcharges for customers using certain credit cards or planning to charge customers an amount different from what you're showing on your store and their receipts, you'll end up with chargebacks, a bad reputation, lost or dissatisfied customers, and probably get your merchant account frozen or canceled.

    If you want to add surcharges, make them visible as another line item on your order and make sure the customer understands clearly why they're present and how to avoid them if they wish to not incur those charges.

    Or build the fees into your product prices if that's possible.
    .

    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.

  5. #5
    Join Date
    Jan 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Creating a custom order total module.

    Quote Originally Posted by DrByte View Post
    For the most part, what was suggested in the original post is *not* a wise practice. There may be a legitimate business need for it, but the approach sounds like it's a bit "off" from what would be considered typically acceptable practice.

    If you're trying to add surcharges for customers using certain credit cards or planning to charge customers an amount different from what you're showing on your store and their receipts, you'll end up with chargebacks, a bad reputation, lost or dissatisfied customers, and probably get your merchant account frozen or canceled.

    If you want to add surcharges, make them visible as another line item on your order and make sure the customer understands clearly why they're present and how to avoid them if they wish to not incur those charges.

    Or build the fees into your product prices if that's possible.
    There was a legitimate need for it in that the retailer we worked with partnered with a certain bank chain and offered a discount when using cards issued from that bank. They were not trying to add additional surcharges, what we did was create line items for the order that were clearly visible (as was the special discount offer throughout the site) via a custom order total module.

    Regards,

  6. #6
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: Creating a custom order total module.

    Quote Originally Posted by bcyde View Post
    There was a legitimate need for it in that the retailer we worked with partnered with a certain bank chain and offered a discount when using cards issued from that bank. They were not trying to add additional surcharges, what we did was create line items for the order that were clearly visible (as was the special discount offer throughout the site) via a custom order total module.
    Excellent. Giving clear disclosure to the customer all the way through is smart business practice. Thanks for the clarifying update.
    .

    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.

 

 

Similar Threads

  1. v153 Creating a custom module
    By joecooper in forum General Questions
    Replies: 7
    Last Post: 7 Nov 2015, 03:21 AM
  2. custom tax order total little help please
    By balihr in forum General Questions
    Replies: 3
    Last Post: 21 Jul 2011, 05:15 AM
  3. I want an order-total module to display total w/o tax
    By ivanc in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 31 Oct 2009, 12:11 PM
  4. Add obligatory clause to conclude order - Module Total Order
    By zildjian in forum Managing Customers and Orders
    Replies: 2
    Last Post: 7 Jun 2009, 06:41 PM
  5. Creating Custom Shipping Module
    By beasleybub in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Nov 2006, 01:50 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