jameslit Posted July 21, 2012 Share Posted July 21, 2012 Hello all, I set up my first PrestaShop system a few hours ago on a test subdomain. Everything's gone smoothly thus far - I've got a theme set up, and reduced the shop to barebones ready for everything to be uploaded and added etc. But there's something I've hit a brick wall with. I was originally planning to remove all requirement for any kind of address for my customers, but decided against it. Now, what I would like to do is make entering addresses optional, except for when a customer BUYS an item (there will be free downloads on the site), when they will have to enter an address which will be attached to their account as normal. I have seen various modifications to all kinds of things in PrestaShop. While I don't have much knowledge of PrestaShop or .PHP, I'm willing and a quick learner. I would appreciate any help you might be able to give me. Thanks in advance, James Littlewood Proprietor JLD Modern Media Depot Link to comment Share on other sites More sharing options...
phrasespot Posted July 25, 2012 Share Posted July 25, 2012 make entering addresses optional, except for when a customer BUYS It is but requires extensive modification as PS works with the assumption that every registered customer (or guest) will have an address. Link to comment Share on other sites More sharing options...
tomerg3 Posted July 25, 2012 Share Posted July 25, 2012 Some payment modules will fail if there is no full address (paypal using the API is one example), or if it is not accurate. This may become an issue if someone goes for a free download and then buys an item. If you decide to still go this route, the easiest way would be to simply populate the address fields with pseudo data when the cart has only free products, you would then be able to hide all the address fields (add display:none to them) and will not require any core file changes. Link to comment Share on other sites More sharing options...
jameslit Posted July 25, 2012 Author Share Posted July 25, 2012 Thanks for your responses. tomerg3, I'm not sure that I have tried to convey my idea quite correctly, sorry. Basically, my site will be offering both free and payware products. What I would like to do is change my shop so that no address details are required in registration, but are still optional with the form stating that you only need to fill in an address if you plan to buy one of the payware products, etc. Then, if a customer goes to buy a product but has no address, the system prompts them to fill in their address details before they checkout. Thanks. Link to comment Share on other sites More sharing options...
tomerg3 Posted July 25, 2012 Share Posted July 25, 2012 Prestashop will no let you create an account without an address (front the front end). You can either make a lot of changes to core files, or try the simpler solution that I suggested. Link to comment Share on other sites More sharing options...
jameslit Posted July 25, 2012 Author Share Posted July 25, 2012 Thanks. I'll do some further research and check out a few bits and bobs I have heard about, and see where things go from there. Thanks again for your help. 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