• Resolved kontur

    (@kontur)


    Hey,

    currently the plugin just adds the VAT field, label and description in a arbitrary way after the checkout fields. It would be much more better to add the fields using the WooCommerce checkout fields, and using the WooCommerce form field generators. This would ensure overwriting via hooks, ordering the position of the field in the form, and the overall styles is more consistent with other WooCommerce components developers are used to.

    More specifically, changing the order of the VAT field within the checkout fields is possible only using very shoddy and, over time surely, unreliable hacking.

    Is there anything planned or any advice on this you can provide?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Diego

    (@daigo75)

    We already planned to move from the current system to one that uses the checkout fields from WooCommerce. We haven’t done it yet because this is going to be a significant breaking change, therefore we need to be careful with its implementation, as some users might have implemented customisations based on current layout. We need to make sure that changes don’t cause too much disruption.

    I’m going to ask to prepare an example of how to replace the existing field with one using the WooCommerce billing fields, so that you can get started with it while waiting for the updated version.

    Thread Starter kontur

    (@kontur)

    That would be superb. On two different shops I’ve coded this has been a tremendous difficulty getting the VAT field looking like it belongs to the rest of the checkout process. In fact, just today I’ve spent another two hours just trying to move the position of the VAT field in the checkout form, with moderate success…

    The major two pain currently points are:
    – not integrating with the woocommerce checkout field hooks, so you can’t access any of the values, content, html
    – not using woocommerce form-row structure, so every styling applied to all other fields has to somehow be hacked together to fit the plugin markup

    Looking forward to hearing development about this issue. I feel your pain of introducing such a major remodel of the markup structure, but in the long run this needs to happen ??

    Plugin Author Diego

    (@daigo75)

    Indeed, using the checkout fields filter will make customisations easier.

    Leaving aside the breaking changes, another reason why we can’t jump on it right away is that the EU VAT Assistant works as intended even in its current form. It might be a bit difficult to customise, but it does the job, out of the box, in most cases. The plugin is fully featured and free for the users (there’s no premium version). It’s quite expensive to maintain for us, which is why we are forced to focus on other projects first. If you wish to contribute to its development, that’s the best way to do so. ??

    That aside, I would suggest to keep an eye on the change log. When the new checkout fields will be implemented, the log will include a note about it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Better integrate the checkout form field with WooCommerce fields’ is closed to new replies.