Answer the question
In order to leave comments, you need to log in
How to save the field when updating the checkout?
I have a switch, radio type, with the value of which I want to filter delivery methods - if delivery is selected, then one, if pickup, then others.
$fields['shipping']['shipping_type'] = array(
'required' => true,
'class' => array(),
'type' => 'radio',
'options' => array(
'flat_rate' => 'Доставка',
'local_pickup' => 'Самовывоз',
),
'default' => 'flat_rate'
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question