Post by Steven_B » Sat Apr 28, 2012 7:34 pm

Hi,

I've installed v1.5.2.1 + R885-R990 update patch and all is working well, except my PayPal Standard payment method.
I've configured all as per documentation http://www.opencart.com/index.php?route ... 8_32_35_60
And configured the module in Admin. I set the minimum checkout amount to: 0

However, this payment option never shows up in the actual payment options when checking out.
When I set it as the only method I get: "Warning: No Payment options are available"
Also, no errors logged in the log report.

The other payment options work fine.

I have another site running v1.5.1 with PayPal Standard running perfectly, besides the PDT entry all is set exactly the same.

Anything ideas what I should check to get this to work?


Many thanks in advance,
Steven

User avatar
New member

Posts

Joined
Sat Apr 28, 2012 7:08 pm
Location - Cape Town, South Africa

Post by Qphoria » Sun Apr 29, 2012 1:25 am

What currency is your store?
If the current selected currency is not one of paypals supported currencies, it won't show.
Also be sure that "Status" is enabled

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Steven_B » Sun Apr 29, 2012 1:53 am

Many thanks for the reply Qphoria,

The probleem is indeed caused by the currency (South African Rand, ZAR).
I just tested the store in EUR and then the PayPal module works fine.

However, I have another store running on v1.5.1.3 and that one works with PayPal Standard without any problems (also in ZAR). The PayPal order summary shows USD, but when logged into my PayPayl account is shows the ZAR amount, so it should be a supported currency.

User avatar
New member

Posts

Joined
Sat Apr 28, 2012 7:08 pm
Location - Cape Town, South Africa

Post by Qphoria » Tue May 15, 2012 10:23 pm

You have to disable the allowed currency check in the model file that was added in 1.5.2

1. EDIT: catalog/model/payment/pp_standard.php

2. FIND and REMOVE:

Code: Select all

if (!in_array(strtoupper($this->currency->getCode()), $currencies)) {
	$status = false;
}
3. EDIT: catalog/controller/payment/pp_standard.php

4. FIND:

Code: Select all

if ($order_info) {
5. AFTER, ADD:

Code: Select all

$currencies = array(
	'AUD',
	'CAD',
	'EUR',
	'GBP',
	'JPY',
	'USD',
	'NZD',
	'CHF',
	'HKD',
	'SGD',
	'SEK',
	'DKK',
	'PLN',
	'NOK',
	'HUF',
	'CZK',
	'ILS',
	'MXN',
	'MYR',
	'BRL',
	'PHP',
	'TWD',
	'THB',
	'TRY'
);

if (in_array($order_info['currency_code'], $currencies)) {
	$currency = $order_info['currency_code'];
} else {
	$currency = 'USD';
}
It might make more sense for us to put this back to the old way.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Steven_B » Tue May 15, 2012 11:13 pm

Many thanks Qphoria,

We're almost there :-)
The PayPal option does appear now and I do get directed to PayPal, however, now the the exchange rate isn't calculated, so R100 on the checkout = USD100 on the PayPal Order Summary.

User avatar
New member

Posts

Joined
Sat Apr 28, 2012 7:08 pm
Location - Cape Town, South Africa

Post by Qphoria » Wed May 16, 2012 1:10 am

Updated the instructions above

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Steven_B » Wed May 16, 2012 2:10 am

Unfortunately the exchange rate is still not calculated with the updates below.

Seeing that the updates are basically going back to the pp_standard.php files from v1.5.1.3, I tried uploading the original catalog/controller/payment/pp_standard.php from 1.5.1.3

That seems to work nicely, you reckon that is safe to use?



Update: I've been running your mods + the 1.5.1.3 controller php on my live site now and it seems to be stable...

User avatar
New member

Posts

Joined
Sat Apr 28, 2012 7:08 pm
Location - Cape Town, South Africa

Post by automysqlbackup » Thu May 31, 2012 6:59 pm

Steven_B wrote:Unfortunately the exchange rate is still not calculated with the updates below.

Seeing that the updates are basically going back to the pp_standard.php files from v1.5.1.3, I tried uploading the original catalog/controller/payment/pp_standard.php from 1.5.1.3

That seems to work nicely, you reckon that is safe to use?

Update: I've been running your mods + the 1.5.1.3 controller php on my live site now and it seems to be stable...
I second that. By replacing the pp standard files in controller and model, from the 1.5.1.3 it works now. I don't know what the reason was behind this change as not everyone is using European or american currencies.

User avatar
New member

Posts

Joined
Tue May 08, 2012 5:38 am
Location - USA

Post by misscaprice » Mon Jul 16, 2012 12:17 am

For bulgarian levas (BGN) neither of the options above is working
1. if using standard 1.5.3.1 files paypal option does not appear at all
2. if using the changes given by Qphoria above the order summary on paypal page is not calculated correctly and 1BGN=1 USD

When using euros everything is working smoothly. OC ver 1.5.3.1
how can I solve this issue

New member

Posts

Joined
Sat Jan 22, 2011 6:47 pm

Post by Steven_B » Mon Jul 16, 2012 12:25 am

misscaprice wrote: 1. if using standard 1.5.3.1 files paypal option does not appear at all
Did you use catalog/controller/payment/pp_standard.php from version 1.5.1.3? It won't work with the v1.5.3.1 file.

User avatar
New member

Posts

Joined
Sat Apr 28, 2012 7:08 pm
Location - Cape Town, South Africa

Post by misscaprice » Mon Jul 16, 2012 12:38 am

No, both my store and paypal files were 1.5.3.1
Should I try the lower versions of pp_standart.php files?

EDIT: Just tried with lower version 1.5.1.3 - still no luck. 1 USD = 1 BGN on the paypal order page

New member

Posts

Joined
Sat Jan 22, 2011 6:47 pm

Post by Steven_B » Mon Jul 16, 2012 12:44 am

Download OpenCart v1.5.1.3 and upload ONLY 1 file to your site: catalog/controller/payment/pp_standard.php
This will overwrite the version from 1.5.3.1
Modify your current catalog/model/payment/pp_standard.php (from version 1.5.3.1) as per Qphoria's post above.

User avatar
New member

Posts

Joined
Sat Apr 28, 2012 7:08 pm
Location - Cape Town, South Africa

Post by misscaprice » Mon Jul 16, 2012 1:01 am

Ingenious :) Got it working. Thank you, Steven_B

New member

Posts

Joined
Sat Jan 22, 2011 6:47 pm

Post by Steven_B » Mon Jul 16, 2012 1:05 am

No worries ;-)
However, make sure you test thoroughly, because I'm just a newbie with this... it just works for me for some reason :-)

User avatar
New member

Posts

Joined
Sat Apr 28, 2012 7:08 pm
Location - Cape Town, South Africa

Post by fluffypony » Sat Sep 29, 2012 11:24 pm

Hi all - I have a vqmod that fixes this if you don't want to play around with core files...plus it's FREE:)

Here we go: http://www.opencart.com/index.php?route ... on_id=8493

Have you seen my extensions yet?

Bestseller's by Category + Randoms | Clean SEO URLs | PayPal Currency Fix


Newbie

Posts

Joined
Sat Sep 29, 2012 11:22 pm

Post by testarosax1 » Sat Jan 26, 2013 5:40 am

I'm on version 1.5.4 and am getting no payment method using paypal standard. I'm using USD default. I've tried everything you have said above to no avail. Has something changed in 1.5? You were so informative on this, I'm hoping someone has seen this. Any words of wisdom?

Newbie

Posts

Joined
Sat Jan 26, 2013 5:34 am

Post by wildfixie » Wed Feb 06, 2013 1:48 am

Hey Testarosa!
It happens the same to me. I'm using the same version as you and have the same same problem.
Did you sort it out? Does anyone knows how to do it? Cuase I looked it up on google but I didnt find anything useful...
Please help us!
Thanks a lot in advance!

Newbie

Posts

Joined
Wed Feb 06, 2013 12:14 am

Post by ranu70 » Tue Nov 04, 2014 1:06 am

Hi,
I want to set up COD can anybody tell me the term

Cash On Delivery:
Total:
The checkout total the order must reach before this payment method becomes active.

Attachments

Untitled.png

Untitled.png (20.63 KiB) Viewed 20461 times


New member

Posts

Joined
Tue Apr 01, 2014 12:31 pm

Post by phamxuanvinh2110 » Thu Dec 15, 2016 6:36 pm

how i can fix it with opencart 2.3.0.2?

New member

Posts

Joined
Mon Nov 28, 2016 11:41 am

Post by sajuk » Tue Feb 07, 2017 8:19 pm

Hi,

Error Warning: Payment method required!

Looking for a fix for OC Version 2.3.0.2, paypal standard not showing as an option to pay with, everything in paypal is set and enabled in the admin, I am not sure of any other settings I need to check, please help,
Thanks

New member

Posts

Joined
Tue Feb 07, 2017 7:10 pm
Who is online

Users browsing this forum: No registered users and 16 guests