KiaAzad Posted January 23, 2015 Share Posted January 23, 2015 I'm planing to sell virtual products only and I wonder if there is any way to remove/change or making address fields optional since there is no delivery? Link to comment Share on other sites More sharing options...
bellini13 Posted January 23, 2015 Share Posted January 23, 2015 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 More sharing options...
KiaAzad Posted January 23, 2015 Author Share Posted January 23, 2015 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 More sharing options...
bellini13 Posted January 23, 2015 Share Posted January 23, 2015 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 More sharing options...
KiaAzad Posted January 23, 2015 Author Share Posted January 23, 2015 I've already done that and still getting "shipping address" block appearing. any Idea why? Link to comment Share on other sites More sharing options...
bellini13 Posted January 23, 2015 Share Posted January 23, 2015 What is a "shipping address" block? Feel free to attach a screen shot Link to comment Share on other sites More sharing options...
KiaAzad Posted January 24, 2015 Author Share Posted January 24, 2015 It's in "Persian" language and I couldn't capture all of the page. Link to comment Share on other sites More sharing options...
bellini13 Posted January 24, 2015 Share Posted January 24, 2015 As I said a few times already, Prestashop still requires a billing address Link to comment Share on other sites More sharing options...
KiaAzad Posted January 24, 2015 Author Share Posted January 24, 2015 well that's my question. how to change/remove those fields? at least some of them. Link to comment Share on other sites More sharing options...
mikewra Posted January 24, 2015 Share Posted January 24, 2015 (edited) 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 January 24, 2015 by mikewra (see edit history) Link to comment Share on other sites More sharing options...
KiaAzad Posted January 24, 2015 Author Share Posted January 24, 2015 I was hoping to avoid that too but it seems there is no other way. still searching for a better way though. Link to comment Share on other sites More sharing options...
bellini13 Posted January 24, 2015 Share Posted January 24, 2015 I am still wondering how you are going to accept payments? What payment module do you intend to use? Link to comment Share on other sites More sharing options...
KiaAzad Posted January 25, 2015 Author Share Posted January 25, 2015 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 More sharing options...
bellini13 Posted January 25, 2015 Share Posted January 25, 2015 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 More sharing options...
KiaAzad Posted January 25, 2015 Author Share Posted January 25, 2015 that's actually a good solution. easy and harmless. I'll try it thank you Link to comment Share on other sites More sharing options...
KiaAzad Posted January 26, 2015 Author Share Posted January 26, 2015 I asked my friend and he was busy. can you tell me how I can set my address so I can do it myself please? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now