Guest safekid Posted September 30, 2005 Share Posted September 30, 2005 Is it possible to have a default and unchangable ship to address? All of our customer orders are going to be shipped to 1 specific name & address. I did a search but found nothing. Thanks!! -Chris Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted September 30, 2005 Share Posted September 30, 2005 I haven't heard of this before. This is not the best way to do it.... but it would work. When the customer gets to the checkout stage where they are required to complete the Delivery Address, rather than provide the customer's invoice address as the default delivery address, you could hardcode a specific delivery address. I.e. Look for the following code in includes/content/cart.inc.php } else { $view_cart->assign("VAL_DEL_TITLE",$ccUserData[0]['title']); $view_cart->assign("VAL_DEL_FIRST_NAME",$ccUserData[0]['firstName']); $view_cart->assign("VAL_DEL_LAST_NAME",$ccUserData[0]['lastName']); $view_cart->assign("VAL_DEL_ADD_1",$ccUserData[0]['add_1']); .... You could then change this to the specific delivery address (this is not the ideal way to do it, but its easy and would work). E.g. } else { $view_cart->assign("VAL_DEL_TITLE","Mr"); $view_cart->assign("VAL_DEL_FIRST_NAME","Jo"); $view_cart->assign("VAL_DEL_LAST_NAME","Bloggs"); $view_cart->assign("VAL_DEL_ADD_1","1234 Some St"); .... And then if you wanted to ensure the customer doesn't modify the address, you would have to change the template file so that the input fields are locked (disabled). Quote Link to comment Share on other sites More sharing options...
Guest safekid Posted September 30, 2005 Share Posted September 30, 2005 Thanks! I'll give it a try. -Chris Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.