Forums / PayPal Express Checkout support / Paypal Express Checkout vs. minimum order module

Paypal Express Checkout vs. minimum order module

Locked

Started by miffy22 on 19 Sep 2011, 10:32 PM · Views: 4,220

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Sep 2011, 10:32 PM
#1
miffy22 avatar

miffy22

New Zenner

Join Date:
Feb 2010
Location:
Toronto, Canada
Posts:
23
Plugin Contributions:
0

Paypal Express Checkout vs. minimum order module

Hi,

I have only Paypal Express Checkout payment module enabled on my site, and also the minimum order module installed.

When I place items in my cart, I notice on my shopping cart content page, there are two buttons to check out. One is "Go to check out", the other is "Check out with Paypal".

For testing purpose, I placed items lower than my minimum order setting (less than $50), and click on "go to checkout", and the page refreshes and stops on the same page telling the customer that "A minimum order of $50 is required in order to check out." And, I am fine with this.

However, when I try to check out with the same content (order total still below $50), and click on "Check out with Paypal", the page then automatically takes me to Paypal's payment processing page (even though there is no order summary shown).

My question is:
How can I stops Zen cart from sending my customer to Paypal's site (giving the customer a false impression that they could make their purchase even when they are below the minimum order? Or, how could I leave only one "check out" button on my shopping cart page? I don't understand why when I only have one payment module enabled, I still get two different check out buttons. I think with two check out buttons will also confuse my customers.

Any help will be greatly appreciated.

Miffy22

19 Sep 2011, 10:46 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Paypal Express Checkout vs. minimum order module

To stop them from using that button, go into your ZC Admin->Modules->Payment->PayPal Express Checkout, and turn off the Express Checkout Shortcut Button option.

.
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 Oct 2011, 10:57 AM
#3
yakin_up avatar

yakin_up

New Zenner

Join Date:
May 2009
Posts:
6
Plugin Contributions:
0

Re: Paypal Express Checkout vs. minimum order module

I have the same problem but I only want the paypal button to display when the minimum order total is met. $25.00 minimum in this case. Any help appreciated.

Thanks

7 Oct 2011, 12:39 PM
#4
yakin_up avatar

yakin_up

New Zenner

Join Date:
May 2009
Posts:
6
Plugin Contributions:
0

Re: Paypal Express Checkout vs. minimum order module

OK I found the button in modules - payment -paypal - tpl_ec_button.php. I changed the the value on line 47 from:

if ( ($_SESSION['currency'] == 'USD' && $currencies->value($_SESSION['cart']->total, true, 'USD') > 10000)

to:
if ( ($_SESSION['currency'] == 'USD' && $currencies->value($_SESSION['cart']->total, true, 'USD') <25)

and it worked as far as the less than $25 goes...the problem now is that orders over 10000 is allowed...I played around with it but was unable to get both values to disable the button.