eolproductions Posted September 7, 2012 Share Posted September 7, 2012 right, i need to remove a field in the register form on my prestashop website. I have tried to remove it in the public_html/themes/prestashop/authentication.tpl but has not worked. I need real help! I am willing to pay via PayPal who can help me do this. Have a look at the website sign up form (its a field called, CompanyTest): https://selectsexywear.co.uk/en/authentication Thanks so much Leon Link to comment Share on other sites More sharing options...
Paulito Posted September 7, 2012 Share Posted September 7, 2012 Good morning, I just wonder, have you been looking at or changing things in translations It might be a good idea to go to: Back Office > Tools > Translations sub tab > click on the Flag of your country > look for Company and see if it says companytest, if so delete test and Save Hope this helps Paul Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 No, it is not there. I deleted the couple of lines of text from the .tpl file a while back but it has not 'updated' It seems to be a cache version. Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 Did you turn on force compile (Preferences->performance) and reloaded the front end? Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 Yes i think thats the basic thing i think of first. Any other suggestions? Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 Try to manually delete them from /tools/smarty/compile/ (everything except index.php) and also from /cache Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 Do i need to enable or disable anything first? And should i back my site up? Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 No, just try to change the theme in the Preferences->Appearance, test it real quick and change it back. Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 What? Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 Sorry, got mixed up with another post. You can backup those files, but if you get an error after clearing the cache, it means something is broken with your theme (as you are now getting a cached version), and those errors should be fixed... Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 Okay i will try it now. Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 Have a look what has happened: https://selectsexywear.co.uk/en/authentication It has just gone blank. Force compile = No Cache = Yes I dont know what else to do. It needs to be complete by tuesday Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 if it's blank, you have a smarty error there... Turn on error reporting (/config/config.inc.php line #29) it will show the error (when you reload) and you could fix it. Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 I done that and when i went to this page: https://selectsexywear.co.uk/en/authentication I got this error: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/selectse/public_html/themes/presta053v147/authentication.tpl" on line 385 "<div id="vat_number" style="display:none;">" unclosed {foreach} tag' in /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_compilebase.php(141): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed {forea...') #1 /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_compile_if.php(98): Smarty_Internal_CompileBase->_close_tag(Array) #2 /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(276): Smarty_Internal_Compile_Elseif->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(123): Smarty_Internal_Templa in /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line431 Have a look at the link yourself please. Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 You need to fix that error.... 'Syntax Error in template "/home/selectse/public_html/themes/presta053v147/authentication.tpl" on line 385 "<div id="vat_number" style="display:none;">" unclosed {foreach} tag' Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 I tried to put {foreach} at the end of line 385 but nothing happened. I tried to delete the whole of the vat_number part but nothing happened. This is what is between line 381 and 390: <fieldset class="account_creation"> <h3>{l s='Your address'}</h3> {foreach from=$dlv_all_fields item=field_name} {elseif $field_name eq "vat_number"} <div id="vat_number" style="display:none;"> <p class="text"> <label for="vat_number">{l s='VAT number'}</label> <input type="text" class="text" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" /> </p> </div> Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 That is just one big mess, you have an "elseif" inside a "foreach" loop without an opening "if" I can't even offer a solution here as I have no idea what you tried to do there. I suggest getting the original file and trying to do the change again, if you don't know how, try to post a question on the forum. Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 (edited) I put the original file code into the file and now i get this error: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/selectse/public_html/themes/presta053v147/authentication.tpl" on line 214 "</p>" unclosed {foreach} tag' in /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:431 Stack trace: #0 /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_compilebase.php(141): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed {forea...') #1 /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_compile_if.php(98): Smarty_Internal_CompileBase->_close_tag(Array) #2 /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(284): Smarty_Internal_Compile_Elseif->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(123): Smarty_Internal_TemplateCompilerBase->callTagCompiler('elseif', Array, Array) #4 in /home/selectse/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 431 Edited September 7, 2012 by eolproductions (see edit history) Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 What do you recommend me doing? I really need help Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 That looks like the same error, just in a different location, which means this must not be the original file that came with the theme. Try to extract the original file from the theme and load to the server. Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 What original file should i over right on the server again? Should i put the authentication.tpl back on? If so i have just done that. Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 The error that is showing is from /home/selectse/public_html/themes/presta053v147/authentication.tpl If you restored the original file, then it must also be broken (or you are getting an already modified version of it) Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 No i got the authentication.tpl straight from the .zip file. It has not been modified at all. These errors happened since i deleted the cache files. Has this got something to do with it. Link to comment Share on other sites More sharing options...
tomerg3 Posted September 7, 2012 Share Posted September 7, 2012 When you deleted the cache files, you forced Prestashop to compile the theme again, so it load all the .tpl files again. It cannot do that, because there is an error in one of the files. As I mentioned in the first post, you can restore the cache files, but you will only be patching back an error, you theme should ALWAYS be able to compile properly when the cache it deleted. Link to comment Share on other sites More sharing options...
eolproductions Posted September 7, 2012 Author Share Posted September 7, 2012 Okay. And what is the solution? Link to comment Share on other sites More sharing options...
tomerg3 Posted September 8, 2012 Share Posted September 8, 2012 Fix the error, if you don't know how, try to create a new post for it, or find a developer to help you out. Link to comment Share on other sites More sharing options...
eolproductions Posted September 8, 2012 Author Share Posted September 8, 2012 Im just going to delete the site i think Link to comment Share on other sites More sharing options...
Recommended Posts