Page 5 of 5 FirstFirst ... 345
Results 41 to 48 of 48
  1. #41
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

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

    Quote Originally Posted by Congerman View Post
    Looked there and I do not have under
    Code:
    global $order, $db;
    
    if ($this->enabled && (int)MODULE_PAYMENT_PAYPAL_ZONE > 0 && isset($order->billing['country']['id'])) {
    I have

    if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) {
    Sorry, I was using ZC 1.5.4 as a reference. Placing the additional code the line after the global line and before the if will accomplish the request.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #42
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

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

    OK that got rid of paypal but unfortuneatly looks like it got rid of paypal alltogether

    I set it as if ($_SESSION['my_total'] < 100.00) {

    tested an order under 100 and no paypal, tested an order over 100 and still no paypal

    Code:
     function update_status() {
        global $order, $db;
    // bof: disable on orders less than 2000
    if (!IS_ADMIN_FLAG) {
      if ($_SESSION['my_total'] < 100.00) {
        $this->enabled = false;
      }
    }
    // eof: disable on orders less than 2000
        if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) {
          $check_flag = false;

  3. #43
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

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

    Quote Originally Posted by Congerman View Post
    OK that got rid of paypal but unfortuneatly looks like it got rid of paypal alltogether

    I set it as if ($_SESSION['my_total'] < 100.00) {

    tested an order under 100 and no paypal, tested an order over 100 and still no paypal

    Code:
     function update_status() {
        global $order, $db;
    // bof: disable on orders less than 2000
    if (!IS_ADMIN_FLAG) {
      if ($_SESSION['my_total'] < 100.00) {
        $this->enabled = false;
      }
    }
    // eof: disable on orders less than 2000
        if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) {
          $check_flag = false;
    I forgot about something, change:
    Code:
     if ($_SESSION['my_total'] < 100.00) {
    To:
    Code:
     if (isset($_SESSION['my_total']) && $_SESSION['my_total'] < 100.00) {
    Did you apply the other change as well from the previous post?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #44
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

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

    Yes I did change the other file and that latest update seems to work

    Thank you very much great zen support

  5. #45
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

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

    Quote Originally Posted by Congerman View Post
    Yes I did change the other file and that latest update seems to work

    Thank you very much great zen support
    No false positives in operation? Again tried both above and below the threshold? And then tried the other one again? (Above, below, above? Or similar just to verify that things toggle as desired?)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #46
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

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

    Not quite sure what a false positive is but I tried it below and I tried it over and paypal appeared or disappeared as I wanted. Now set to 1500. 25a.co.uk please feel free to test and confirm that it is not just me that is seeing this result

    Thank you for your help

  7. #47
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

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

    Quote Originally Posted by Congerman View Post
    Not quite sure what a false positive is but I tried it below and I tried it over and paypal appeared or disappeared as I wanted. Now set to 1500. 25a.co.uk please feel free to test and confirm that it is not just me that is seeing this result

    Thank you for your help
    Well, I created an account and was able to confirm the appearance/disappearance of paypal around 1500. I couldn't find a product that would make testing super easy, but got within a few pounds either way.

    Would say. I thought it was required that prices showed vat in and not in it? I'm not qualified to say one way or the other, just know that others are "going that direction".
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #48
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

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

    Great Thank you.

    Site not finished yet, it will display inc and ex vat when it is done though

 

 
Page 5 of 5 FirstFirst ... 345

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