Answer the question
In order to leave comments, you need to log in
How can I add a list of 800 cities to the terms of delivery by courier, Bitrix?
There is a list of 800 settlements in which courier delivery operates. How to add these cities to the terms of delivery by courier in Bitrix. You can’t fill in the list in the admin panel, you can only search one by one, which will take quite a lot of time. Maybe there is some other faster way to do this?
Answer the question
In order to leave comments, you need to log in
1) Create a new shipping method - Automated Shipping Service Handler .
2) Load the list of cities in the highload block.
3) In the handler in the Compability method, you will check if there is $arOrder["LOCATION_TO"] (if I'm not mistaken) in the hail block. if there is, return the delivery profile, if not, then an empty array.
4) if there are different delivery costs for cities in the Calculate method, you calculate the cost.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question