MrrD Posted October 5, 2011 Share Posted October 5, 2011 Hi! I would be very thankful, if somebody could help me. The situation is following - I can't figure out, how to insert/import default contact form (from contact) into the cms page with my contact information. I want to put that contact form under my contact details. The shop will be in 3 languages, so adding my text to contact-form.tpl will not help, because I don't know how to translate it there. Any suggestions? Link to comment Share on other sites More sharing options...
phrasespot Posted October 7, 2011 Share Posted October 7, 2011 You can translate anything you put into a tpl. Look for a structure similar to the following in the tpl file: {l s='some string to translate'} The first char is a lowercase L, and s stands for the string to be translated. Once this structure is in place, you can translate it like any other translatable string using Back Office > Tools > Translations > Front Office Translations > relevant language > relevant section (contact-form in your case) 1 Link to comment Share on other sites More sharing options...
MrrD Posted October 23, 2011 Author Share Posted October 23, 2011 You can translate anything you put into a tpl. Look for a structure similar to the following in the tpl file: {l s='some string to translate'} The first char is a lowercase L, and s stands for the string to be translated. Once this structure is in place, you can translate it like any other translatable string using Back Office > Tools > Translations > Front Office Translations > relevant language > relevant section (contact-form in your case) Big thanks! Link to comment Share on other sites More sharing options...
boez Posted January 28, 2012 Share Posted January 28, 2012 Can anybody help me please? I am interested by the first part of MrrD question: how to insert/import default contact form (from contact) into the cms page So, "ContactControllerCore extends FrontController", therefore in case of adding ControllerFactory::getController('ContactController')->run(); to cmscontroller.php i get full contact-form page on my cms page. How can i do this? Link to comment Share on other sites More sharing options...
boez Posted February 10, 2012 Share Posted February 10, 2012 How can i do this? add ControllerFactory::getController('ContactController')->preProcess(); ControllerFactory::getController('ContactController')->setMedia(); ControllerFactory::getController('ContactController')->process(); ControllerFactory::getController('ContactController')->displayContent(); instead of ControllerFactory::getController('ContactController')->run(); Link to comment Share on other sites More sharing options...
vincen Posted February 11, 2012 Share Posted February 11, 2012 You can translate anything you put into a tpl. Look for a structure similar to the following in the tpl file: {l s='some string to translate'} The first char is a lowercase L, and s stands for the string to be translated. Once this structure is in place, you can translate it like any other translatable string using Back Office > Tools > Translations > Front Office Translations > relevant language > relevant section (contact-form in your case) Thanks for explanations but how to do when you want to add html in these strings ? as it doesn't accept them Thanks, Vincèn Link to comment Share on other sites More sharing options...
phrasespot Posted February 11, 2012 Share Posted February 11, 2012 how to do when you want to add html in these stringsLeave the HTML markup outside the translation, e.g.: <p>{l s='translate this string'} <span class="red">{l s='and this string'}</span><a href="http://www.prestashop.com>{l s='Go to PrestaShop site'}</a></p> 1 Link to comment Share on other sites More sharing options...
vincen Posted February 11, 2012 Share Posted February 11, 2012 Leave the HTML markup outside the translation, e.g.: Thanks for explanation but gosh way too complicated for my long text with multiple html tags Vincèn Link to comment Share on other sites More sharing options...
phrasespot Posted February 11, 2012 Share Posted February 11, 2012 but gosh way too complicated for my long text with multiple html tags True, true. I18N is not the most favorable part of PS. Link to comment Share on other sites More sharing options...
connectcase Posted May 14, 2013 Share Posted May 14, 2013 I did it the other way around: I added a HTML contentmodule to the contact form and explained how over here: http://www.laatuwwebsitewerken.nl/2013/05/14/bewerk-het-contactformulier-in-prestashop/ The explanation is in Dutch, but if you want a translation, just let me know.... 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