[url removed, login to view] drupal and Ubcart and other module have setup and runing.
I have create the theme(include the tpl and css files)
[url removed, login to view] function(I don't know how to do)
Calculate shipping costs and time required based on the distance between the customers and the restaurant.
For example, if the customer lives within 3 km of the restaurant, shipping is free and will take less than one hour; between 3-10 km, shipping will cost 10 kuai and take less than two hours; between 10-20 km, shipping will cost 20 kuai and take less than three hours, etc.
Location of customer (his can either use the address provided by the customer when they registered if they are logged in, or an address they fill into a form if they are not logged in).
Location of restaurant (based on the address provided for the restaurant)
The shopping cart can only hold items from one restaurant at a time; if the user wants to purchase items from multiple restaurants at the same time, these bills must be payed separately.
If the name of the restaurant is entered, all related restaurants will be [url removed, login to view] the name of food is entered, all related food will be shown.
3) node reference
Clicking a restaurant's name will bring you to that restaurant's page, which shows detailed information about the restaurant and relevant food.