VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: hhtmp88 on December 28, 2014, 12:00:50 PM

Title: VM3.0.2_Paypal Express Checkout Page: which file can I work on to customize it?
Post by: hhtmp88 on December 28, 2014, 12:00:50 PM
Dear all

Pls. see attached screen capture for Paypal Express Output Page, "03_Paypal_Express Checkout_page_a1.png"
(a)  logo is placed in the wrong location, I hope that it should be on the top like that of Paypa Payment Standard (see attached screen capture "Logo_Problem_inPaypal Standard_output page_a1.png")

(b) My site's default language is Chinese (zh-TW), but English language code (en-GB) is passed to Paypal
-> so how to pass the correct language code zh-TW to Paypal?

[attachment cleanup by admin]
Title: Re: VM3.0.2_Paypal Express Checkout Page: which file can I work on to customize it?
Post by: alatak on January 03, 2015, 18:33:10 PM
Hello


Quote(a)  logo is placed in the wrong location,
Here https://developer.paypal.com/webapps/developer/docs/classic/express-checkout/integration-guide/ECCustomizing/
it says
QuoteCreate a logo image up to 90 pixels wide by 60 pixels high and save it in a valid graphics format, such as .gif, .jpg, or .png.

QuoteMy site's default language is Chinese (zh-TW),

ok, i think i found.
Please try this:

file plugins/vmpayment/paypal/paypal/helpers/paypalexp.php
in function getLocaleCode (line 229)
replace
$tag = $jlang->getTag();
with
$tag = $jlang->getTag();
$tag=str_replace('-','_',$tag);