Jump to content

Customer can't change address


Recommended Posts

Hello,

 

I have problem with updating address in prestashop 1.5.2

When customer want's to update their address they gets a form with empty fields and it's look like prestashop wants to create new address but after filling with new data and submitting it's replacing the old one.

 

I get no errors when set in config.inc

 

@ini_set('display_errors', 'on');

define('_PS_DEBUG_SQL_', true);

 

Update link looks normal to me:

 

http://domainname.co...s?id_address=15

 

Any suggestions?

Edited by masowski (see edit history)
Link to comment
Share on other sites

  • 5 months later...

Hi guys!

 

I did the step given by eTiendas and added

@ini_set('display_errors', 'on');

 

to my config.inc.php file. This is the message I got.

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home4/jeremyk5/public_html/movementfirst/themes/autumn/address.tpl" on line 195 "{if $stateExist eq "false"}" unclosed {if} tag' in /home4/jeremyk5/public_html/movementfirst/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home4/jeremyk5/public_html/movementfirst/tools/smarty/sysplugins/smarty_internal_compilebase.php(166): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed {if} t...') #1 /home4/jeremyk5/public_html/movementfirst/tools/smarty/sysplugins/smarty_internal_compile_foreach.php(224): Smarty_Internal_CompileBase->closeTag(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /home4/jeremyk5/public_html/movementfirst/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(473): Smarty_Internal_Compile_Foreachclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /home4/jer in /home4/jeremyk5/public_html/movementfirst/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665

 

Any suggestions?

Link to comment
Share on other sites

  • 4 weeks later...

Hello Aagje,

Do you use the default theme or another one? There's an error in a file, that causes this error message. Can be a forgotten {/if} as Adiaz mentioned, or maybe a string just before the {/if} tag that isn't closed properly, so that it includes the {/if} tag as part of the string instead of as a proper tag.

 

Can you copy the code that is mentioned in the error (/home4/jeremyk5/public_html/movementfirst/themes/autumn/address.tpl), starting at line 195, and copy the lines below this point until any {/if} that looks like it should/could be the closing tag of the begin {if} on line 195?

 

My 2 cents,

pascal

Link to comment
Share on other sites

×
×
  • Create New...