christillis Posted November 3, 2012 Share Posted November 3, 2012 (edited) Hi all, I'm struggling with such a silly problem and I'm happy to paypal anyone £10 if they can help. All I want to do is display the address properly with breaks in between address lines. So, it currently displays as this: Address Line 1 Address Line 2 Address Line 3 When I want it to display like this: Address Line 1 Address Line 2 Address Line 3 If it could be done with the minimum of code, that would be great! Cheers! Chris PS Here's how it's displaying, which is not how I want. I've tried putting <p> and br but no joy: Edited November 3, 2012 by christillis (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted November 3, 2012 Share Posted November 3, 2012 where is it displaying this? is this in an email or on a webpage? Link to comment Share on other sites More sharing options...
Kogkalidis Posted November 3, 2012 Share Posted November 3, 2012 No money, my friend (at least not for easy tasks...).. We have crisis.. Also this is not the spirit of open-source.. Did you try to put something like this in the form; <br>Line 1 <br>Line 2 <br>Line 3 1 Link to comment Share on other sites More sharing options...
christillis Posted November 3, 2012 Author Share Posted November 3, 2012 Thanks Bellini, for the prompt response. The first image is the backoffice view of the module (a standard presta module called " blockcontactinfos" ). The second image is the output on the page. I hope that answers your question? Link to comment Share on other sites More sharing options...
christillis Posted November 3, 2012 Author Share Posted November 3, 2012 No money, my friend (at least not for easy tasks...).. We have crisis.. Also this is not the spirit of open-source.. Did you try to put something like this in the form; <br>Line 1 <br>Line 2 <br>Line 3 Thanks you 'Λόχος, Very kind. I've stupidly offered to do a presta site for a friend and it's more difficult than I thought! I did try your suggestion and sadly it didn't work, it did however, add "rn" where ever I put <br> though, strange? Link to comment Share on other sites More sharing options...
Kogkalidis Posted November 3, 2012 Share Posted November 3, 2012 Can you provide a screenshot? Please pm me!! Link to comment Share on other sites More sharing options...
christillis Posted November 3, 2012 Author Share Posted November 3, 2012 PM on the way sir! Link to comment Share on other sites More sharing options...
christillis Posted November 3, 2012 Author Share Posted November 3, 2012 If anyone does have a solution, it would be very welcome! I'm now un-installing the module and re-installing it, in case the code I have added has mucked it up a bit. Link to comment Share on other sites More sharing options...
bellini13 Posted November 4, 2012 Share Posted November 4, 2012 have you tried just using the enter key to separate the address lines? When you first install the module, it has the following address, you'll see that there are 3 lines 42 avenue des Champs Elysées 75000 Paris France Link to comment Share on other sites More sharing options...
christillis Posted November 4, 2012 Author Share Posted November 4, 2012 Hi Bellini, thanks for responding. Sadly that was the first thing I tried and it didn't work, immediately after installing the module. The demo of the theme (cave plus) also shows no use of new lines for each address entity, I've also looked in the code and it won't do it as is. Link to comment Share on other sites More sharing options...
bellini13 Posted November 4, 2012 Share Posted November 4, 2012 best i could do is review the theme to see if it overrides the blockcontactinfos.tpl. I highly doubt the theme has overridden the actual module code, it really does not do much, so the only thing left would be the template. The default template does the following with the address {if $blockcontactinfos_address != ''}<li><pre>{$blockcontactinfos_address|escape:'htmlall':'UTF-8'}</pre></li>{/if} So next question is, does the cave plus theme override this template file, and if so, has it changed this line? Link to comment Share on other sites More sharing options...
christillis Posted November 4, 2012 Author Share Posted November 4, 2012 Thanks for looking into this bellini, it is appreciated, even though it's such a minor issue. I don't know if it's helpful, but the CavePlus theme has a module called blockcontactinfo, so perhaps it overwrites the presta default blockcontactinfo? Link to comment Share on other sites More sharing options...
bellini13 Posted November 4, 2012 Share Posted November 4, 2012 does it include a module? or just a .tpl file under the theme folder? if you'd like to provide me FTP access via PM, i can take a look to confirm. Link to comment Share on other sites More sharing options...
christillis Posted November 4, 2012 Author Share Posted November 4, 2012 it includes a module with the following files (see attached pic) I can happily set up ftp for you if needed. Thanks mate. Link to comment Share on other sites More sharing options...
bellini13 Posted November 5, 2012 Share Posted November 5, 2012 so it seems the theme would include the module, perhaps that is for compatibility with v1.4 of prestashop. With v1.5 it is a core module. Link to comment Share on other sites More sharing options...
christillis Posted November 8, 2012 Author Share Posted November 8, 2012 Hi again Bellini, sorry for the delay. I've since had a message from the theme developers: you are right this contact information block has some problem as you said address should be link break . We will come with solution for your isssue. Link to comment Share on other sites More sharing options...
smsinico Posted November 25, 2012 Share Posted November 25, 2012 I'm having a similar problem and have figured out that it is also theme related as removing the blockcontactinfos folder from the theme "fixed" the problem as the address is split correctly with line breaks, but the font formatting is off. The original prestashop theme includes a <pre> in the tpl file for address, which my theme does not. I'm guessing that is helping include the line breaks but also screwing up the pretty fonts. I've written to the theme creator, but am also curious if you already have a solution. Thanks! Link to comment Share on other sites More sharing options...
christillis Posted November 26, 2012 Author Share Posted November 26, 2012 They sent me a fix, I'll see if I can find it mate. Link to comment Share on other sites More sharing options...
christillis Posted November 26, 2012 Author Share Posted November 26, 2012 Here's the email I got from them: thanks for reporting design issue . We have made solution about your issue. Here, we have attached zip file - please extract that file and update into your server at the location of modules/devilnewproduct folder I can't see how to attach the zip, so here's a link: http://www.bikerchris.co.uk/wp-content/uploads/2012/11/5097cfb069f84.zip 1 Link to comment Share on other sites More sharing options...
Kogkalidis Posted November 26, 2012 Share Posted November 26, 2012 Here's the email I got from them: thanks for reporting design issue . We have made solution about your issue. Here, we have attached zip file - please extract that file and update into your server at the location of modules/devilnewproduct folder I can't see how to attach the zip, so here's a link: http://www.bikerchri...97cfb069f84.zip I am happy that you find solution to your problem! Link to comment Share on other sites More sharing options...
smsinico Posted November 26, 2012 Share Posted November 26, 2012 Thanks very much for bringing this back to life for me. Really appreciate your help! There is one of two things happening here: either prestashop works in ways that will simply remain mysterious to me and I'll happily have to keep paying developers, which is fine, or is there a chance that the file you linked to was the solution to a different problem? After reading it looks like it's related to new products and not so much the contact information in the footer. But like I said, it could just be the proof that I should stick to running a candy business and let programmers do the programming. Thanks! 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