Hi,
Thank you for looking into this Nicolas.
I think you have misunderstood my question or asked it wrong.
I have manual shipping method with id 15. It is terminal shipping method.
When it is selected i need to show custom field with dropdown selection.
It was working fine with that code and with old checkout.
However with new checkout it doesnt work properly. When i come at first to checkout step where are shipping methods on choosing shipping method with id 15 fields view won't showp up and i need to refresh page then all working fine. It shows or hides based on shipping method selected.
I have this code in show block fields:
$cart = $this->checkoutHelper->getCart();
$shipping_id = reset($cart->cart_shipping_ids);
if($shipping_id == '8@0') continue;
if($shipping_id == '12@0') continue;
And to register wit ajax i have this:
window.Oby.registerAjax(['checkout.fields.updated','cart.updated','checkout.shipping.updated'], function(params){
More about it you can read this topic where Jerome was helpful until some point...
www.hikashop.com/forum/hikashop-3-0-beta...stions.html?start=40
Thanks