HTML, Opencart, PHP

Opencart – How to enable the shipping options on Paypal checkout?

On Opencart 2.3.0.2 if you are using Paypal Standard as your payment method and you are paying using credit card, you might notice that the shipping fields are missing on the Paypal checkout page:

Opencart - How to enable the shipping options on Paypal checkout?

To add the shipping fields on this page, all you have to do is open your /public_html/yourwebsite.com/catalog/view/theme/default/template/extension/payment folder and edit the pp_standard.tpl file.

Find:

<input type="hidden" name="no_shipping" value="0" />

and change it to:

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

Changing the no_shipping value to 2 will show the shipping fields on your Paypal payment checkout page as seen below:

Opencart - How to enable the shipping options on Paypal checkout?