Jump to content

removing or making address fields optional?


Recommended Posts

I believe Prestashop already removes delivery address and carrier sections when the cart only contains virtual products.  What version of Prestashop are you using, and what theme?

 

As for billing address, this may still be required, depends on what payment methods you use

Link to comment
Share on other sites

I'm using 1.6.1.1 and default theme.
I disabled many of unneeded features like tax and stock management, disabled caries and deleted manufacturers. also some of modules.

my test product have 00.00 price but still filling address is a must for sign up and guest checkout. is there somewhere I forgot to disable something?

Link to comment
Share on other sites

In Preferences > customer you can set "registration process type" to "only account creation".  This way an address is not required when the customer registers.

 

However during checkout, the customer will still need to provide a billing address.  The shipping address and carrier should be skipped if there are only virtual products in the cart

Link to comment
Share on other sites

Well, I don't know what would happen if you modify these, and if bellini13 recommends against it, then I'd follow that advice. But here's where they are:

root -> themes -> your theme -> authentication.tpl -> approx. line 144  Delivery Address

root -> controllers -> front -> AuthController.php

Edited by mikewra (see edit history)
Link to comment
Share on other sites

some online service accepting payments from all local banks. in our country there is nothing as "billing" they just pay and hope/wait for their goods. since I'm selling downloadable products on my website I don't need to know any address, just email and optional phone number.

Link to comment
Share on other sites

i would probably suggest that instead of trying to remove the address and deal with things that might break, that you instead default the address to something else.

 

So in the theme files, you can hide those address elements.  But in the controllers and classes, where it would expect an address to exist, that you hard code a random address.  Then in the other areas of Prestashop where the address would be visible (invoice pdf, my account, email templates etc...) you would probably have to hide those elements as well.

 

I don't think there is really a good solution here, unless you get lucky to locate someone who has already done this and can give you the required changes.

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