Russian  English  All projects

Connect Sdec delivery to an online store



Online shop on the fraemwork.
Connect the SDEK delivery system.
-----------------------------------
As I understand how the calculation goes, etc., we choose the delivery method in the basket, lets say we chose sdex, entered the city where to deliver, and below there were 2 blocks, delivery to the door and the cost of delivery, and delivery to the office sdec, if you chose the office we have a map where we choose the point where it will be convenient for us to pick up the goods.

The price of delivery will need to be taken and added to the cost of the goods, I will display the general field.
The price received for delivery, I think I myself will be able to transfer to the controller and then to the table and the same city.

I dont know what the sdex himself somehow determines the city or better to make a field where a person will enter the city, entered the first 3 letters and loaded him with options, such as a live search.

In general, Sdek has a lot of things ready, judging by their website.

How to:
https://www.cdek.ru/ru/integration
https://confluence.cdek.ru/pages/viewpage.action?p...

Who put that more understands, I did not bet on this perhaps incorrectly described something.

-----------------------------------

Ill give you a little background on how and whats in the basket.

In the cart when choosing a payment, we have a field in the table is_robo, if it costs 1, then we have connected online payment type sber, etc.

So for the choice of delivery done, there is a is_robo in the table, if it costs 2, then we will have a sdex or something else connected for this delivery choice. When choosing delivery, is_robo I pass already to the controller $deliveryisRobo = Arr::get($_POST, delivery_is_robo) and there already added.

if ($deliveryisRobo == 2) {

}

I attached a screenshot as it is done in the controller. For a common understanding, something is already ready and it remains to implement SDEK.

-----------------------------------

The task is very simple. Dont break the price tag brothers)


05.01.2022 12:38



 Answers freelancers