Basketshoponline Posted March 12, 2014 Share Posted March 12, 2014 Hi! I am trying to modifiy .tpl files with Dreamweaver. I open the .tpl file in Dreamweaver. I modify it. I upload it to the server. However, when I check the website nothing changes. Anyone know how can I dot it correctly? Thanks a lot! Link to comment Share on other sites More sharing options...
vekia Posted March 12, 2014 Share Posted March 12, 2014 after changes in tpl files: - turn on force compile in adv. paramters > performance tab in your back office - turn off cache (the same tab in BO) do it temporarily, when you will stop workin on templates, switch these options to original values. in addition, make sure that your .tpl files of modules (if you edit module .tpl files) dont exist in themes/YOUR_THEME/modules dir. if so - you have to edit these files instead of original module .tpl files. Link to comment Share on other sites More sharing options...
Basketshoponline Posted March 14, 2014 Author Share Posted March 14, 2014 Thank you for your answer! I would like to edit Login Form and delete some fields like (Company, Phone...). Besides, I would like to change "State" field for "Province". How should I do this? Deleting/changing the fields in the authentication tpl file or how? Thank you! Link to comment Share on other sites More sharing options...
vekia Posted March 15, 2014 Share Posted March 15, 2014 Authentication.tpl modificaiton (themes/authentication.tpl) + preferences in back office to hide unwanted fields (localization > countries >edit for country) in addition, one phone number is necessary for prestashop. Link to comment Share on other sites More sharing options...
Basketshoponline Posted March 18, 2014 Author Share Posted March 18, 2014 So I should delete the unwanted fields in the tpl and also in Preferences>Localization>Countries>Edit for country? Thanks for your help! Link to comment Share on other sites More sharing options...
vekia Posted March 21, 2014 Share Posted March 21, 2014 yes, that's right, you have to modify both things (tpl + address format in back office) Link to comment Share on other sites More sharing options...
Basketshoponline Posted March 21, 2014 Author Share Posted March 21, 2014 Thanks a lot! Link to comment Share on other sites More sharing options...
Basketshoponline Posted March 21, 2014 Author Share Posted March 21, 2014 (edited) When I try to complete the authentication form as a user, the form has an error. It asks for: Direction 2, and Telephone 2 (the ones I just have deleted). You can check here: http://basketshoponline.com/es/authentication Anyone can help please? Edited March 21, 2014 by Basketshoponline (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 controllers/front/AuthController.php comment each instance of $error_phone = true; Link to comment Share on other sites More sharing options...
Basketshoponline Posted March 24, 2014 Author Share Posted March 24, 2014 if (!Tools::getValue('phone') && !Tools::getValue('phone_mobile')) $error_phone = true; } elseif (((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Configuration::get('PS_ORDER_PROCESS_TYPE')) && (Configuration::get('PS_ORDER_PROCESS_TYPE') && !Tools::getValue('email_create'))) && (!Tools::getValue('phone') && !Tools::getValue('phone_mobile'))) $error_phone = true; elseif (((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') && Configuration::get('PS_ORDER_PROCESS_TYPE') && Tools::getValue('email_create'))) && (!Tools::getValue('phone') && !Tools::getValue('phone_mobile'))) $error_phone = true; Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 change $error_phone = true; to //$error_phone = true; Link to comment Share on other sites More sharing options...
Basketshoponline Posted March 25, 2014 Author Share Posted March 25, 2014 I did this and Dreamweaver advice this is a syntax error. Besides, when I try to access to the Authentication form in the website the page stays in blank. Link to comment Share on other sites More sharing options...
Basketshoponline Posted March 27, 2014 Author Share Posted March 27, 2014 Can anyone help please? Link to comment Share on other sites More sharing options...
vekia Posted March 28, 2014 Share Posted March 28, 2014 hello you probably did something wrong. are you sure that you added there doubled backslash, nothing more? Link to comment Share on other sites More sharing options...
Basketshoponline Posted March 29, 2014 Author Share Posted March 29, 2014 Hi! I restored the files. Now it's possible to access to the form. However, when you are a user and you try to fill your direction form it has 2 error: Direction 2 and telephone 2. How can I fix these? Thanks! Link to comment Share on other sites More sharing options...
Basketshoponline Posted April 2, 2014 Author Share Posted April 2, 2014 I restored the files. However, now I have an error. How can I fix it? Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/homepages/42/d514753301/htdocs/clickandbuilds/Prestashop/basketshoponline/themes/coffeeshop_theme/authentication.tpl" on line 234 "<form action="../default/themes/default/{$link-&gt;getPageLink('authentication', true, NULL, "back=$back")|escape:'html'}" method="post" id="new_account_form" class="std clearfix">" - Unexpected "&"' in /homepages/42/d514753301/htdocs/clickandbuilds/Prestashop/basketshoponline/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /homepages/42/d514753301/htdocs/clickandbuilds/Prestashop/basketshoponline/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /homepages/42/d514753301/htdocs/clickandbuilds/Prestashop/basketshoponline/tools/smarty/s in/homepages/42/d514753301/htdocs/clickandbuilds/Prestashop/basketshoponline/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665 Link to comment Share on other sites More sharing options...
tuk66 Posted April 2, 2014 Share Posted April 2, 2014 You have a syntax error in authentication.tpl template on line 234. Link to comment Share on other sites More sharing options...
Basketshoponline Posted April 3, 2014 Author Share Posted April 3, 2014 Hi! Line 234 is this: {if isset($inOrderProcess) && $inOrderProcess && $PS_GUEST_CHECKOUT_ENABLED} And Dreamweaver advice that the error is in line 36: var idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if}; Anyone can help me find the syntax error, please? Link to comment Share on other sites More sharing options...
Chithra Sreejith Posted December 24, 2020 Share Posted December 24, 2020 Helo..Im New to prestashop. I created one custom module for payment gatway. and i need to edit error.tpl file inside that module. i edited tpl file after enabling force compilation and no cache. but it wont works for me. i need to show one message (response from payment like invalid pin, insufficient fund)in that file.Please answer.. Thank youu 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