• Resolved dmcsupport

    (@dmcsupport)


    I have selling Dine-in & take away food products using Woocommerce. I have setup to use PayPal for payment using with plguin. I would like to make $shipping_preferences to no_shipping. I fould this option in file –
    /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/class-orderendpoint.php -> line 188 varible $shipping_preferences.
    Check screenshot here – https://ibb.co/NSPZVFw
    How do I set this variable in functions.php or is there any other way?

    Please reply. Thank you.

    • This topic was modified 3 years, 6 months ago by dmcsupport.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @dmcsupport,

    For physical products, WooCommerce cannot create an order when there is no shipping method available.
    So for your case, the best thing would be to create a free local pickup shipping method as described here:
    https://docs.woocommerce.com/document/local-pickup/
    If needed, this shipping method can also be hidden then, but it needs to exist in the first place for the order creation.

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    There hasn’t been any activity here in a while, so I’m marking this thread as resolved.
    If you have any further questions, please feel free to create a new thread and reference this one if needed.
    Thank you! ??

    Kind regards,
    Niklas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I set shipping option NOSHIPPING in functions.php’ is closed to new replies.