Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 48
  1. #21
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Do not show Nochex option if cart total over £250

    yes, if i install only moneyorder payment module, for the orders less than $100, i get
    Sorry, we are not accepting payments from your region at this time.
    Please contact us for alternate arrangements.

    if i install another payment module besides moneyorder, it will only display the other module when i checkout

    that is not the problem

    the problem is if the orders over than $100, after you place an order, you will find the payment module code of this order is not "moneyorder" but "GV/DC"
    Last edited by inception; 9 Jan 2012 at 11:25 PM.

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

    Default Re: Do not show Nochex option if cart total over £250

    Aha! a clue ...

    This should be lots of fun to figure out ...

    I am on it ...
    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!

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

    Default Re: Do not show Nochex option if cart total over £250

    Try this code instead:
    Code:
    // bof: disable on orders less than 100
    if (!IS_ADMIN_FLAG) {
      global $cart;
      if ($_SESSION['cart']->show_total() < 100) {
        $this->enabled = false;
      }
    }
    // eof: disable on orders less than 100
    Does that work better for you?
    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. #24
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Do not show Nochex option if cart total over £250

    Quote Originally Posted by Ajeh View Post
    Try this code instead:
    Code:
    // bof: disable on orders less than 100
    if (!IS_ADMIN_FLAG) {
      global $cart;
      if ($_SESSION['cart']->show_total() < 100) {
        $this->enabled = false;
      }
    }
    // eof: disable on orders less than 100
    Does that work better for you?
    this code works, everything displays correctly,
    but it limits the sub total in cart, is there any way to limit the order total (sub total in cart + shipping + tax) ?

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

    Default Re: Do not show Nochex option if cart total over £250

    Edit the file:
    /includes/classes/order_total.php

    and add the code in RED:
    Code:
          $calculatedOrderTotal = $order->info['total'];
    
    // bof: get total for payment modules
          $_SESSION['my_total'] = $order->info['total'];
    // eof: get total for payment modules
    
          $order->info = $orderInfoSaved;
    Edit the file:
    /includes/modules/payment/moneyorder.php

    and add the code in RED:
    Code:
          $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
    
    // bof: disable on orders less than 100
      if ($_SESSION['my_total'] < 100.00) {
        $this->enabled = false;
      }
    // eof: disable on orders less than 100
    
          if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) {
    Does this work the way you need it?
    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!

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

    Default Re: Do not show Nochex option if cart total over £250

    Oops ... once change ... forgot the IS_ADMIN_FLAG ...

    Code:
    // bof: disable on orders less than 100
    if (!IS_ADMIN_FLAG) {
      if ($_SESSION['my_total'] < 100.00) {
        $this->enabled = false;
      }
    }
    // eof: disable on orders less than 100
    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. #27
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Do not show Nochex option if cart total over £250

    this works ! amazing
    thanks a lot

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

    Default Re: Do not show Nochex option if cart total over £250

    Was not the prettiest ... but gets the job done ...
    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!

  9. #29
    Join Date
    Sep 2011
    Posts
    226
    Plugin Contributions
    0

    Default Re: Do not show Nochex option if cart total over £250

    Hi

    I tried to integrate this with PayPal express checkout. I only want PayPal to show as a payment method for orders of 3000 or over.

    I tried following the above steps by Ajeh (using PayPal's module and not the money order module) but it did not work.

    Is there something I'm missing?

    Thanks
    S

  10. #30
    Join Date
    Dec 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Do not show Nochex option if cart total over £250

    Quote Originally Posted by Congerman View Post
    I sell items priced from £20 to £900. I am new to Nochex and they have imposed a £250 transaction limit to start with.


    Hi Congerman.

    Have you tried asking Nochex for an increase to your transaction limit?

    Get in touch with your account manager and see whether we are able to help you.

    Kind regards,
    - Peter (I work for Nochex)

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. v151 Zen Cart v151 not sending the correct total amount over to Paypal
    By cjcoward in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 5 Jan 2014, 07:15 PM
  2. Free Shipping over $250 restrictions apply
    By EAPerformanceParts in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 14 Aug 2009, 06:28 PM
  3. PayPal not bringing total over from Zen Cart if currency restrictions exist
    By hardy_girl03 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 16 May 2009, 10:10 PM
  4. Flat Rate / Over $250.00 FREE shipping exclude certain items
    By WebSiteGuru in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 31 Dec 2008, 04:44 AM
  5. Shipping: "Call for Price" if over $250
    By bamaster in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Jun 2008, 07:03 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