PayPal Express Button French / Hardcoded Plugin?
12 years 5 months ago #153465
by jazzmang
PayPal Express Button French / Hardcoded Plugin? was created by jazzmang
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.4.x
-- Browser(s) name and version -- : any
All that displays for me is www.paypal.com/fr_XC/i/btn/btn_xpressCheckout.gif
This appears to be hard coded into the paypalexpress.php plugin file.
I've search but cannot find where I can override this other than hacking the plugin itself.
I hate to do that as with every update I have to go back and change it potentially.
Any thing I missed? If not, can you make that part of the Express' plugin control panel variables you can set?
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.4.x
-- Browser(s) name and version -- : any
All that displays for me is www.paypal.com/fr_XC/i/btn/btn_xpressCheckout.gif
This appears to be hard coded into the paypalexpress.php plugin file.
I've search but cannot find where I can override this other than hacking the plugin itself.
I hate to do that as with every update I have to go back and change it potentially.
Any thing I missed? If not, can you make that part of the Express' plugin control panel variables you can set?
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153494
by Xavier
Replied by Xavier on topic PayPal Express Button French / Hardcoded Plugin?
Hi,
The button is no hardcoded, it's dynamic based on the user language.
If you want to force it to a specific language you can edit the file "plugins/hikashoppayment/paypalexpress/paypalexpress.php".
Of check your Joomla configuration regarding the languages, and be sure that you have the correct tag set.
The button is no hardcoded, it's dynamic based on the user language.
Code:
$lang = JFactory::getLanguage();
$this->button = '<div id=paypal_express_button style="width:144px; height:46px; margin-top:15px;"><a href="'.$notif.'&setExpressCheckout=1"><img src="https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamic-image&buttontype=ecshortcut&locale='.str_replace('-','_',$lang->get('tag')).'" align="left"></a></div>';
If you want to force it to a specific language you can edit the file "plugins/hikashoppayment/paypalexpress/paypalexpress.php".
Of check your Joomla configuration regarding the languages, and be sure that you have the correct tag set.
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153561
by jazzmang
Replied by jazzmang on topic PayPal Express Button French / Hardcoded Plugin?
That is not what is in my paypapexpress.php file, starting at line 38:
Did this get recently updated? Attached is the unaltered vs. that was installed with HikaShop 2.3.0.
Code:
function __construct(&$subject, $config)
{
$notif = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment='.$this->name.'&tmpl=component';
$this->pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X','Paypal');
$this->button = '<div id=paypal_express_button style="width:144px; height:46px; margin-top:15px;"><a href="'.$notif.'&setExpressCheckout=1"><img src="https://www.paypal.com/fr_XC/i/btn/btn_xpressCheckout.gif" align="left"></a></div>';
return parent::__construct($subject, $config);
}
Did this get recently updated? Attached is the unaltered vs. that was installed with HikaShop 2.3.0.
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153564
by nicolas
Replied by nicolas on topic PayPal Express Button French / Hardcoded Plugin?
Xavier didn't know that we fixed that in a hot fix a few weeks ago.
If you download again the install package of the 2.3.0 on our website, you'll get the same code as Xavier and it will display the button in the proper language.
If you download again the install package of the 2.3.0 on our website, you'll get the same code as Xavier and it will display the button in the proper language.
The following user(s) said Thank You: jazzmang
Please Log in or Create an account to join the conversation.
Time to create page: 0.196 seconds