Jump to content

Default Ship To Address


Guest safekid

Recommended Posts

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

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...