MarketPress Shipping visible when disabled

Shipping address is still displaying at checkout, although the shipping method option in store settings is set to 'no shipping'.

  • Panos

    Hi Morne ,

    Apologies for late response here!

    If I understand correctly you are talking about the address fields and the Shipping address section in checkout page? This doesn't have to do with the Shipping method selected. The Shipping method is if shipping will be charged and with what rules it will be charged. So even if no charging method is selected for shipping, the shipping address can be still inserted.

    The address fields have to do with the product types. By default the available ones are Physical, Digital Downloads and External. Physical products that have mass need to be shipped so that's why it requires a shipping address.

    This can be overridden by adding the following script in a mu-plugin:

    add_filter( 'mp_cart/is_product_downloadable', '__return_true', 10);

    With the above filter it should treat all products as downloadable, so it will not ask for shipping address in checkout.

    If you are not familiar with mu-plugins, you can read about mu-plugins here :

    Alternatively you can create a custom product type "Virtual" to use for your products, which doesn't require shipping address. For that you can download the zip from here :
    unzip and upload to your mu-plugins folder (if that folder doesn't exist you can simply create it)

    With the second suggestion, only virtual (or downloadable) products will not have shipping address fields in checkout. If order contains at least one Physical product it will show the address fields though.

    Please let us know if you would like us to apply any of the mentioned suggestions above since I see you have already provided ftp and admin access.

    Kind regards!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.