I want to e-commerce platform like www.bigcommerce.com and www.buildabazaar.com. I have done with the backend coding. I have added a unique identification number for each customer to differentiate their products and choices. When a customer registers, a folder with his unique ID will be created in my domain, where all his images and styles will be saved. I have created like this. But i am stuck when a customer buys a plan from me and he will change name servers , he should get his site to be displayed in his domain.

I don't know how these things works. Please someone suggest me how to go about it.

Thanks you