• Resolved dingdang

    (@dingdang)


    Hello,

    let say I’ve added a new option in the billing tab. How can I access it in woocommerce filters, for example the filter woocommerce_billing_fields($fields) has all the billing fields of woocommerce but unfortunately those that are created with your plugin DO NOT appear in the array.
    1. why
    2. how to get the values of the additional fields from inside this filter.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dingdang

    (@dingdang)

    Also I’ve found a bug:

    • if the country is hidden (trough your plugin) I can use the woocomerce woocommerce_billing_fields filter and make some of the fields as NOT mandatory (even though in your plugin and by default in woo they are mandatory) Note that I use priority larger than yours which is 1000 by default
    • if however the country is not hidden (trough your plugin) then THERE IS NO WAY for some reason to make other fields from the address not mandatory (using the same code that works above.

    Could you give me an idea how to fix this, is it a bug, can you fix it, and WHY I can’t overwrite the fields’ required option?

    ALSO as per my initial question I need info what to call from inside this filter (woocommerce_billing_fields) to access the value of a field defined in your plugin. (The goal is to have conditional logic based on the field; I doubt what I need is implemented by you in the pro version, so don’t offer me the pro version, just provide the required info and a way to overpass the bug described here).

    Plugin Author ThemeHigh

    (@themehigh)

    Your issue requirements need to be checked in detail. Can you please raise a ticket through our website? We hope our technical team will be able to help you.

    Thank you!

    Plugin Author ThemeHigh

    (@themehigh)

    We hope your issue is resolved. We are going to mark this thread as resolved.

    Thank you!

    Thread Starter dingdang

    (@dingdang)

    No it is not resolved at all.

    Plugin Author ThemeHigh

    (@themehigh)

    Could you please update the same on the ticket that we worked, so that we can check further from our end.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Access of the options in PHP’ is closed to new replies.