aris747
Forum Replies Created
-
Forum: Plugins
In reply to: [PayPal for WooCommerce] ERROR FROM PAYPAL CAUSED BY PLUGINAlso interested about Stevo’s Question above.
I am now running Paypal Standard but it’s a worse experience for my customers. Only realized that the plugin was broken by accident, after having lost quite a few orders that had paid on Paypal only to be rejected when they clicked Place order on the redirect back to my page.
SUCKS.Reverting to an older WC version is not an option for most I suppose, as themes and plugins have also updated accordingly.
Hope for a solution soon.
EDIT: Can a dev please tell us if this fix suggested by another member would address the issue I’m having?
[Fatal error: Call to undefined method WC_Customer::get_address() in /home/user/site/wp-content/plugins/paypal-for-woocommerce/template/paypal-review-order.php on line 105]”
paypal-for-wocommerce / temaplte / paypal-review-order.phpLine 102
Change to this:
$billing_address = array(
‘first_name’ => WC()->customer->firstname. ‘ ‘. WC()->customer->lastname,
‘company’ => WC()->customer->company,
‘address_1’ => WC()->customer->get_billing_address(),
‘address_2’ => WC()->customer->get_billing_address_2(),
‘city’ => WC()->customer->get_billing_city(),
‘state’ => WC()->customer->get_billing_state(),
‘postcode’ => WC()->customer->get_billing_postcode(),
‘country’ => WC()->customer->get_billing_country()
) ;“