• Resolved alfahd56

    (@alfahd56)


    Dears

    I need your help. My products are virtual and shipping methods did not show, I used this code: add_filter(‘woocommerce_cart_needs_shipping_address’, ‘__return_true’, 50);

    but still not show in checkout

    Could you please help me

Viewing 8 replies - 1 through 8 (of 8 total)
  • Igor H

    (@ihereira)

    Hi,

    I understand that your products are virtual, but the shipping method is not visible.

    Is the product tagged as virtual? Correct?

    Please note that WooCommerce defines a virtual product like a product that will not require shipping. It is normal for a virtual product to does not show shipping. You can refer to the documentation here to get more information:

    Virtual?– one that doesn’t require shipping. For example, a service. Enabling this, disables all shipping related fields such as shipping dimensions. A virtual product will also not trigger the shipping calculator in cart and checkout.

    Examples of a virtual product are: A consultation, a class, a medical appointment, a service, etc.

    If I misunderstood, something, or if your goal is something different, feel free to let me know.

    Best.

    Thread Starter alfahd56

    (@alfahd56)

    Thank you Igor for your reply. I need to add shipping methods in checkout page even my products are virtual. Some products need to ship to customers. sometime, I send cards to customer

    Saif

    (@babylon1999)

    Hello @alfahd56,

    Thank you for the clarification.

    Thank you Igor for your reply. I need to add shipping methods in checkout page even my products are virtual. Some products need to ship to customers. sometime, I send cards to customer

    You can simply remove the virtual status from the product. Virtual products are designed to eliminate the need for a shipping section.

    I should note you can have a downloadable product without checking the “virtual” box and keep the shipping section.


    Hope this helps!

    Thread Starter alfahd56

    (@alfahd56)

    Hi @babylon1999

    I need to enable two options virtual and downloadable. and I found some solution to enable shipping methods but does not work with me

    https://cgscomputer.com/how-to-add-a-shipping-address-to-virtual-products-in-woocommerce/

    I follow these instruction but still does not work

    Hi @alfahd56

    As mentioned above, by default virtual products are intangible and are not shipped. Enabling this, disables all shipping related fields such as shipping dimensions. A virtual product will also not trigger the shipping calculator in cart and checkout.

    This is a bit of a complicated topic that would need some customization to address. Unfortunately, custom coding is not something we can assist with directly. However, I’ll keep this thread open for a bit to see if anyone from the community can lend a hand.

    If you have any other questions related to development or custom coding, don’t hesitate to reach out to some of the great resources we have available for support. The WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Hope this helps!

    Thread Starter alfahd56

    (@alfahd56)

    Thank you @xue28

    I am waiting for help.

    in other hand, I will check with that links you send them. If I found solution I will let you know in this thread

    Thread Starter alfahd56

    (@alfahd56)

    Thank you @xue28

    I am waiting other, may someone know solution,

    in other hand, I will check with that links. If I find a solution, I will let you know

    Roxy

    (@roxannestoltz)

    Hi @alfahd56 ,

    Thank sounds like a plan!

    Just to add, it may be worthwhile doing a Google search to see if you are able to find anything that meets your requirements ??

    Hope this helps!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘I can not enable shipping methods with virtual products in woocommerce’ is closed to new replies.