Jump to content

[SOLVED] Force billing and delivery address to be the same


Recommended Posts

Is there any way that I can force the billing address to duplicate to the shipping address by default?

We want to make sure that the person buying the item is also the person recieving the item (due to past issues).

I searched but only found other stuff. nothing that seemed helpful here. My keyword choice may have not helped.

If not, another option would be to edit the text on the address page or one of the checkout pages that dictates this. What page would that be?

Thanks!

Link to comment
Share on other sites

I found this thread
http://www.prestashop.com/forums/viewthread/26497/#358526
that talks about making it so the check box is not checked by default.
I want it checked, and then hidden so you can not make the billing/shipping address different.

Thoughts?

I'll look at the code and see if there is a way, but if yo know the code to use to hide the checkbox that would be helpful.

Link to comment
Share on other sites



           <input type="checkbox" name="same" id="addressesAreEquals" value="1">id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if} />

{l s='Use the same address for billing.'}



Found the code, but now i need to figure out how to hid ethe checkbox. I'll change the text to read they must be the same, for now.

Link to comment
Share on other sites

OK, Found it
style="display:none;"
Add that ot the input type tag like this

<input type="checkbox" name="same" style="display:none;" id="addressesAreEquals" value="1">id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if} />
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...