PayPal Express Button French / Hardcoded Plugin?

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 7 months ago #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_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.

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #153494

Hi,

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

		$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.

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 7 months ago #153561

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

function __construct(&$subject, $config)
        {
                $notif = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&amp;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.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 7 months ago #153564

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum