[Skip to main content](#vessel-content)

#   PayPal Express Button French / Hardcoded Plugin?

##

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile") Topic Author
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

12 years 7 months ago [\#153465](#153465) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  *[PayPal Express Button French / Hardcoded Plugin?](/forum/29-payment-methods/867686-paypal-express-button-french-hardcoded-plugin#153465 "-- 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&#95;XC/i/btn/btn&#95;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?")* was created by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")*

-- 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](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84Njc2ODYtcGF5cGFsLWV4cHJlc3MtYnV0dG9uLWZyZW5jaC1oYXJkY29kZWQtcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#153494](#153494) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[PayPal Express Button French / Hardcoded Plugin?](/forum/29-payment-methods/867686-paypal-express-button-french-hardcoded-plugin#153494 "-- 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&#95;XC/i/btn/btn&#95;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?")*

Hi,

The button is no hardcoded, it's dynamic based on the user language. Code:

$lang = JFactory::getLanguage(); $this-&gt;button = '&lt;div id=paypal_express_button style="width:144px; height:46px; margin-top:15px;"&gt;&lt;a href="'.$notif.'&amp;setExpressCheckout=1"&gt;&lt;img src="https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamic-image&amp;buttontype=ecshortcut&amp;locale='.str_replace('-','_',$lang-&gt;get('tag')).'" align="left"&gt;&lt;/a&gt;&lt;/div&gt;';

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84Njc2ODYtcGF5cGFsLWV4cHJlc3MtYnV0dG9uLWZyZW5jaC1oYXJkY29kZWQtcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile") Topic Author
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

12 years 7 months ago [\#153561](#153561) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[PayPal Express Button French / Hardcoded Plugin?](/forum/29-payment-methods/867686-paypal-express-button-french-hardcoded-plugin#153561 "-- 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&#95;XC/i/btn/btn&#95;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?")*

That is not what is in my paypapexpress.php file, starting at line 38:
Code:

function __construct(&amp;$subject, $config) { $notif = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;amp;notif_payment='.$this-&gt;name.'&amp;tmpl=component'; $this-&gt;pluginConfig['notification'][0] = JText::sprintf('ALLOW_NOTIFICATIONS_FROM_X','Paypal'); $this-&gt;button = '&lt;div id=paypal_express_button style="width:144px; height:46px; margin-top:15px;"&gt;&lt;a href="'.$notif.'&amp;setExpressCheckout=1"&gt;&lt;img src="https://www.paypal.com/fr_XC/i/btn/btn_xpressCheckout.gif" align="left"&gt;&lt;/a&gt;&lt;/div&gt;'; 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84Njc2ODYtcGF5cGFsLWV4cHJlc3MtYnV0dG9uLWZyZW5jaC1oYXJkY29kZWQtcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

12 years 7 months ago [\#153564](#153564) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Express Button French / Hardcoded Plugin?](/forum/29-payment-methods/867686-paypal-express-button-french-hardcoded-plugin#153564 "-- 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&#95;XC/i/btn/btn&#95;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?")*

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.

The following user(s) said Thank You: [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84Njc2ODYtcGF5cGFsLWV4cHJlc3MtYnV0dG9uLWZyZW5jaC1oYXJkY29kZWQtcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
