M
M
Marat Agatov2021-02-10 17:56:07
MODX
Marat Agatov, 2021-02-10 17:56:07

How to hide the delivery address for pickup in minishop 2?

How to hide in minishop2 to hide when exporting the export itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Tarasov, 2021-02-10
@Orange-rus

Add a small javascript code, parse the value of the delivery field, if pickup - hide the address.

$('#msOrder input[name="delivery"]').change(function(){
                    if($(this).val() == 1){ //самовывоз
                        $('.addressBlock').hide();
                    }else{
                       $('.addressBlock').show();
                    }
                });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question