Jump to content

Remove field in register *DESPERATE*


Recommended Posts

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

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

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

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

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

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

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 by eolproductions (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...