Hello, my question is for virtuemart 3.0.10. I am a customer and select paypal option to buy. But I have no need paypal account and pay by credit card.
The problem is that if I'm not used to, I have to select the window of the credit cards, made one click more, to buy.
In virtuemart 2, is posible made. Look here http://www.versionet.com/desarollo-web/joomla/146-virtuemart-configurar-pantalla-tarjeta-de-credito-por-defecto-en-paypal-para-virtuemart-2-x.html
In /plugins/vmpayment/paypal/paypal.php in line 200
"address_override" => isset($method->address_override) ? $method->address_override : 0, // 0 ?? Paypal does not allow your country of residence to ship to the country you wish to
"first_name" => $address->first_name,
"last_name" => $address->last_name,
"address1" => $address->address_1,
"address2" => isset($address->address_2) ? $address->address_2 : '',
"zip" => $address->zip,
"city" => $address->city,
"state" => isset($address->virtuemart_state_id) ? ShopFunctions::getStateByID ($address->virtuemart_state_id) : '',
"country" => ShopFunctions::getCountryByID ($address->virtuemart_country_id, 'country_2_code'),
"email" => $order['details']['BT']->email,
"night_phone_b" => $address->phone_1,
"return" => JROUTE::_ (JURI::root () . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt ('Itemid')),
Add this line
"landing_page" => "billing",
"address_override" => isset($method->address_override) ? $method->address_override : 0, // 0 ?? Paypal does not allow your country of residence to ship to the country you wish to
"first_name" => $address->first_name,
"last_name" => $address->last_name,
"address1" => $address->address_1,
"address2" => isset($address->address_2) ? $address->address_2 : '',
"zip" => $address->zip,
"city" => $address->city,
"state" => isset($address->virtuemart_state_id) ? ShopFunctions::getStateByID ($address->virtuemart_state_id) : '',
"country" => ShopFunctions::getCountryByID ($address->virtuemart_country_id, 'country_2_code'),
"email" => $order['details']['BT']->email,
"night_phone_b" => $address->phone_1,
"landing_page" => "billing",
"return" => JROUTE::_ (JURI::root () . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt ('Itemid')),
But in virtuemart 3 I dont view this code.
¿Can you help me?
function initPostVariables() around lines 215
plugins\vmpayment\paypal\paypal\helpers\paypalstd.php
the $post_variables are there
Yes is here
$post_variables['landing_page'] = $billing;
Yes, is already included in the code of virtuemart 3 in /plugins/vmpayment/paypal/paypal/helpers/paypalstd.php , but how do I do to bring up the option to purchase with credit cards first?
Thanks
Not on mine....
and when you add
$post_variables['landing_page'] = 'billing';
?
Excuse me, I made a mistake. I have relocated but still does not work for me.
Look process attachments
why are you using a var $billing????? it doesn't exist afaik
use 'billing' -- that was your hack...
Ups !! :o . I am here since six this morning and are more eight o'clock. She was with another subject and breaking rather than repair :).
Thank you very much for your time and help.