Hi to all
I have modified a little the PayPal Payment Plugin to have the posibility to set the checkout by default as guest, by doing this, if you have a paypal bussines account, the user will be redirected to a page where he can pay with Debit or Credit card by default, but he still have the option to login in his paypal account.
Edit: /plugins/hikashoppayment/paypal/paypal.php
Search for $pluginConfig (line 23), in this array you will add next lines of code:
...
'landingpage' => array('Checkout as guest by default','radio', array(
'Billing'=>'Yes',
'Login'=>'No',
)),
...
Search for
if(!empty($this->payment_params->image_url)) {
$vars['image_url'] = $this->payment_params->image_url;
}
It will be around line 152, under this pice of code add the next one and you are done:
...
$vars['landing_page'] = $this->payment_params->landingpage;
...