• Resolved Nikola

    (@dzoniis)


    Hello, i am having difficulties regarding registering custom fields or even some plugins are not working because of it, any examples or solutions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author The Generation

    (@thegeneration)

    Hi,

    Fields that are being registered in the checkout under “order” (not billing or shipping) can be saved as a regular fields as in the “normal” checkout. If you’re using a plugin that’s not registering the field as a “order” field in the checkout it could be needed to add the field name to the filter “woocommerce_sco_update_order_info_keys”.

    If there is any particular plugin(s) that you’re trying to use we’re happy to hear and assist further!

    Best regards

    Thread Starter Nikola

    (@dzoniis)

    Hello, thanks for fast reply!

    As far as i could find, it’s saved under billing.

    It’s “Freight Integration for Woocommerce to Logistra Cargonizer or Profrakt by WildRobot

    Thread Starter Nikola

    (@dzoniis)

    It might not be working or i might be at fault but just to verify:

    add_filter('woocommerce_sco_update_order_info_keys', 'custom_sco_update_order_info_keys', 10, 1);
    
    function custom_sco_update_order_info_keys($keys) {
    $keys[] = 'logistra_robots_select_servicepartner';
    return $keys;
    }
    Thread Starter Nikola

    (@dzoniis)

    Any idea?

    Plugin Author The Generation

    (@thegeneration)

    At a first glance the code seems correct. It could be that the plugin uses the field in a strange place.

    Could you send a link to the website that uses this plugin so we can see how it’s setup in your store?

    Best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Checkout Fields not working’ is closed to new replies.