If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Payment Modules / Do not show Nochex option if cart total over 250

Do not show Nochex option if cart total over 250

Started by congerman on 16 Aug 2011, 10:46 AM · Views: 4,301

Results 41 to 48 of 48
15 Oct 2015, 9:34 PM
#41
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Do not show Nochex option if cart total over 250

Congerman:

Looked there and I do not have under ```
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...

15 Oct 2015, 9:49 PM
#42
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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

 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;
15 Oct 2015, 10:16 PM
#43
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

Congerman:

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

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:

if ($_SESSION['my_total'] < 100.00) {

To:

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...

15 Oct 2015, 10:27 PM
#44
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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

15 Oct 2015, 10:32 PM
#45
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

Congerman:

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...

15 Oct 2015, 10:44 PM
#46
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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

16 Oct 2015, 1:40 AM
#47
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

Congerman:

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...

16 Oct 2015, 7:58 AM
#48
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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