oxkar24 Posted June 12, 2011 Share Posted June 12, 2011 Have a downloadable products shop and I want to remove address and phone, so just leave the simple way.Name, Surname, email, passwordI ve been reading around and looks that is not that easy and the most important, the need to edit a few .tpl, .php…So no very update friendly either.I mean I’ve done alredy a few .tpl changes but I prefer to avoid. Clearly, prestashop is in any way friendly for this.Been thinking:Would be possible to give a “default value”, lets say to phone, address, address2, country……and set the not to show in order-op-new-account.tpl , something like “style=“display:none;”So, I would end up with all my customers having the trelephone number “0000000000”, address “not needed”, country “no” and so on.I’ve been going round for a while about this problem but I know nothing about this.Does it sound “logic” and possible to someone who knows?For sure It would be much more friendly with PS?Hope I made myself clear.All the best, people. I await your advice Link to comment Share on other sites More sharing options...
oxkar24 Posted June 12, 2011 Author Share Posted June 12, 2011 Anyone there? Link to comment Share on other sites More sharing options...
shokinro Posted June 13, 2011 Share Posted June 13, 2011 I think your idea is great. you can do this by changing some theme files.please also remember you need to some changes in back office files too, for example, AdminAddresses.php Link to comment Share on other sites More sharing options...
oxkar24 Posted June 13, 2011 Author Share Posted June 13, 2011 Tanks for your answer.Well, the idea was to avoid too many changes in code.So, may u advice me how should look in "order_opc_new_account.tpl" for example, ( last name), if you add the style="display:none;" and the lastname "lewis" {l s='Last name'} <input type="text" class="text" id="customer_lastname" name="customer_lastname"> * I am from the "HTML age"..Thanks Link to comment Share on other sites More sharing options...
oxkar24 Posted June 14, 2011 Author Share Posted June 14, 2011 Anyone there?Any ideas? Link to comment Share on other sites More sharing options...
shokinro Posted June 14, 2011 Share Posted June 14, 2011 here is the example of your code, to hide last name, you need to the P tag to avoid to add to all other tags.Here is code after adding style="display:none;" {l s='Last name'} <input type="text" class="text" id="customer_lastname" name="customer_lastname"> * the same way, if you want to hide the whole section, try to find most outside tag and add style="display:none;" to that one. Link to comment Share on other sites More sharing options...
oxkar24 Posted June 14, 2011 Author Share Posted June 14, 2011 Thank you, shokinro;what about to set the default value, shoul I do it in the same tag? ( I mean, in this case, for example to set Lewis as default value for surname). Link to comment Share on other sites More sharing options...
shokinro Posted June 14, 2011 Share Posted June 14, 2011 for default value, I think you have to do it one by one.For example, in this one, the default value is set last name to default "Lewis" {l s='Last name'} <input type="text" class="text" id="customer_lastname" name="customer_lastname" value="Lewis "> * Link to comment Share on other sites More sharing options...
oxkar24 Posted June 15, 2011 Author Share Posted June 15, 2011 Thank u, shokinro:I will try all in a fresh installation to see how it works.I wil ltell u how it goes.I appreciate your help.All the best Link to comment Share on other sites More sharing options...
Recommended Posts