Fixed Require shipping address with account upgrade paypal button

Mr Lucky

Well-known member
In xenforo 1 I have edited account_upgrades template so that the Paypal button requires an address, change value to 2:

Code:
<input type="hidden" name="no_shipping" value="2" />

Can someone please tell me how to do this in xenforo 2?

Thanks

As it is an EU requirement to collect addresses for VAT MOSS, this is quite important.
 
As it stands, this is possible to do with a code edit.

You can edit the file src/XF/Payment/PayPal.php and change:
PHP:
'no_shipping' => 1,
To:
PHP:
'no_shipping' => 2,
As you might expect, this will flag up the file health check message, though this might be a temporary workaround.

We might be able to expose this as an option in the short term. Longer term we may be looking to add proper support for VAT though that particularly will be a post-2.0 thing.
 
Top Bottom