ant6n Posted October 5, 2013 Share Posted October 5, 2013 Is there any way that when a customer chooses the option of 'store pickup', delivery address is changed automatically to the address of the store? Thank you. Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 hello by default there is no possibility to change it automatically, but after some modification it will be possible. you will need add new address to ps_address table and then - change it in the order specification Link to comment Share on other sites More sharing options...
ant6n Posted October 23, 2013 Author Share Posted October 23, 2013 (edited) hello by default there is no possibility to change it automatically, but after some modification it will be possible. you will need add new address to ps_address table and then - change it in the order specification Hello, I created an address in ps_address and I've added it in the select where you choose the delivery address, but if the id_customer not match the client doesn't update the address. My code: <select name="id_address_delivery" id="id_address_delivery" class="address_select" onchange="updateAddressesDisplay();{if $opc}updateAddressSelection();{/if}"> {foreach from=$addresses key=k item=address} <option value="{$address.id_address|intval}" {if $address.id_address == $cart->id_address_delivery}selected="selected"{/if}>{$address.alias|escape:'htmlall':'UTF-8'}</option> {/foreach} <option value="649">Store</option> </select> Thank you. Edited October 23, 2013 by ant6n (see edit history) Link to comment Share on other sites More sharing options...
ant6n Posted October 23, 2013 Author Share Posted October 23, 2013 (edited) I need to insert an item into the formatedAddressFieldsValuesList array with the address I created in ps_address. I think it's in the /controllers/front/AddressesController.php but I'm not sure how. Any help? Thank you. Edited October 23, 2013 by ant6n (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts