Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: add fee for using paypal payment option

    I would love to add a discount for a particular payment method. Anybody have any ideas about how to do such a thing?

    Audra

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: add fee for using paypal payment option

    look in the old downloads, there is a module to do just that
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: add fee for using paypal payment option

    Thank you Merlin! I found it here:

    http://www.zen-cart.com/archived_con...e_discount.zip

    Best,
    Audra

  4. #4
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: add fee for using paypal payment option

    I have installed this mod and received this error when trying to checkout:

    Call to a member function get_products() on a non-object in /home/naturew/public_html/tip_top/includes/modules/order_total/ot_payment.php on line 80

    Here is the code surrounding line 80:
    Code:
    // Check if gift voucher is in cart and adjust total
        $products = $cart->get_products();
        for ($i=0; $i<sizeof($products); $i++) {
          $t_prid = zen_get_prid($products[$i]['id']);
          $gv_result = $db->Execute("select products_price, products_tax_class_id, products_model from " . TABLE_PRODUCTS . " where products_id = '" . $t_prid . "'");
    Guessing this has something to do w/ updated Zen code.

    Any guesses?

    Oh, I guess I should add that the error occurs during step two of the checkout process, Payment, under the heading Your Total.

    Thanks!
    Audra

  5. #5
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: add fee for using paypal payment option

    Oh, I don't care about Paypal. That was someone else who started this thread a while back.

    I want to use this mod to give a discount to customers that pay by cash or check.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: add fee for using paypal payment option

    Quote Originally Posted by audradh
    Oh, I don't care about Paypal. That was someone else who started this thread a while back.
    (Moderator: All the more reason to start new threads, rather than change topics on old ones... ... splitting this discussion to a new topic...)
    .

    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.

  7. #7
    Join Date
    Jan 2006
    Posts
    224
    Plugin Contributions
    0

    Default Re: add fee for using paypal payment option

    Quote Originally Posted by audradh View Post
    I have installed this mod and received this error when trying to checkout:

    Call to a member function get_products() on a non-object in /home/naturew/public_html/tip_top/includes/modules/order_total/ot_payment.php on line 80

    Here is the code surrounding line 80:
    Code:
    // Check if gift voucher is in cart and adjust total
        $products = $cart->get_products();
        for ($i=0; $i<sizeof($products); $i++) {
          $t_prid = zen_get_prid($products[$i]['id']);
          $gv_result = $db->Execute("select products_price, products_tax_class_id, products_model from " . TABLE_PRODUCTS . " where products_id = '" . $t_prid . "'");
    Guessing this has something to do w/ updated Zen code.

    Any guesses?

    Oh, I guess I should add that the error occurs during step two of the checkout process, Payment, under the heading Your Total.

    Thanks!
    Audra
    Was this ever resolved?

  8. #8
    Join Date
    Jan 2006
    Posts
    224
    Plugin Contributions
    0

    Default Re: Discount to customers paying by cash or check

    Hi, anyone can help on this ancient module to work with 1.3x? Really need it badly.

  9. #9
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    110
    Plugin Contributions
    1

    Default Re: Discount to customers paying by cash or check

    I have been running this module for about a year and actually using it to charge a surcharge for credit cards. I have only just discovered that it has a problem.

    I get a similar error, it seems that this is old code adapted from OS Commerce.

    I have only just got around to setting up Gift certificates and that's the only time I have found a problem with this order payment module. Here's my error:
    Fatal error: Call to a member function on a non-object in /hsphere/local/home/waycool/waycool.com.au/includes/modules/order_total/ot_payment.php on line 92
    I hope somebody can help with a fix because I can't get the gift certificates up and running until this is sorted.

    Here is what I think is the offending code.
    // Check if gift voucher is in cart and adjust total
    $products = $_SESSION['cart']->get_products();
    for ($i=0; $i<sizeof($products); $i++) {
    $t_prid = zen_get_prid($products[$i]['id']);
    $gv_result = $db->Execute("select products_price, products_tax_class_id, products_model from " . TABLE_PRODUCTS . " where products_id = '" . $t_prid . "'");
    //$gv_result = zen_db_fetch_array($gv_query);

    if (ereg("^GIFT", addslashes($gv_result->fields['products_model']))) {
    $qty = $cart->get_quantity($t_prid);
    $products_tax = zen_get_tax_rate($gv_result->fields['products_tax_class_id']);
    if ($this->include_tax =='false') {
    $gv_amount = $gv_result->fields['products_price'] * $qty;
    } else {
    $gv_amount = ($gv_result->fields['products_price'] + zen_calculate_tax($gv_result->fields['products_price'],$products_tax)) * $qty;
    }
    $order_total=$order_total - $gv_amount;
    }

    }
    Cheers all,

    Gruntre69

    WayCool
    Zen is Way Cool too!

  10. #10
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    110
    Plugin Contributions
    1

    Default Re: Discount to customers paying by cash or check

    Oh sorry, I forgot to say that this is line 92

    $qty = $cart->get_quantity($t_prid);
    Cheers all,

    Gruntre69

    WayCool
    Zen is Way Cool too!

 

 

Similar Threads

  1. v150 adding backslash with apostrophe when paying by check\money order
    By valvoj in forum General Questions
    Replies: 3
    Last Post: 2 Nov 2012, 09:18 AM
  2. Cash on delivery not appearing at check out
    By richardsnowstar in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Oct 2010, 12:55 PM
  3. Cash or Check Payments Not Options
    By estertester in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 3 Feb 2010, 10:25 AM
  4. Wrong country for customers paying with PayPal
    By JuanDBB in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 17 Jun 2009, 02:43 PM
  5. Cash/Money Order Percentage Discount Mod
    By Slimeboy in forum General Questions
    Replies: 0
    Last Post: 10 May 2007, 08:38 PM

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