Fast wordpress task

Job ID: 33931470

Budget: €8 – €30 EUR

Hello there,
For our woocommerce website, when the user register, we have a field where the user can write the code of it's reference store, this field is also in the "shipping" form,
Actually we need that when the client fill it, this will stick to the user itself, so if he proceed going in the checkout, he will have this field already filled with this information, in last step of checkout, actually, there's a sentence we need to show with the name of the and this code should be copied also in the order.
Actually the logic is that, if the client put nothing in the field, it will assign the code automatically grabbing the nearest store in 30km from the client, and show the name of the store in the last step, else, if no stores avaible and no code input by the client, then there will be assigned like a generic code,
Related categories: PHP JavaScript XML AJAX WordPress