Jump to content

Search the Community

Showing results for tags 'syntax error'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Marketplace
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 11 results

  1. Hi, when I try to reorder items on my prestashop 1.7.4.2 i get this error, can you help me? Thanks
  2. After resetting module Clean Url My website redirected to HTTP 500 Error My back office and the webpage is not opening. Now I have turned the debugging on. Below is the Error messge : Parse error: syntax error, unexpected ''supplier_rule'' (T_CONSTANT_ENCAPSED_STRING), expecting function (T_FUNCTION) in /home/mbawithf/public_html/mbawithfun.cu.cc/override/classes/Dispatcher.php on line 4 I am a newbie to prestashop,Your help will be highly appriciated.... Dispatcher.php File <?php class Dispatcher extends DispatcherCore { 'supplier_rule' => array( 'controller' => 'supplier', 'rule' => 'supplier/{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'supplier_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'manufacturer_rule' => array( 'controller' => 'manufacturer', 'rule' => 'manufacturer/{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'manufacturer_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'cms_rule' => array( 'controller' => 'cms', 'rule' => 'info/{rewrite}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'cms_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'cms_category_rule' => array( 'controller' => 'cms', 'rule' => 'info/{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'cms_category_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'module' => array( 'controller' => null, 'rule' => 'module/{module}{/:controller}', 'keywords' => array( 'module' => array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'module'), 'controller' => array('regexp' => '[_a-zA-Z0-9_-]+', 'param' => 'controller'), ), 'params' => array( 'fc' => 'module', ), ), 'product_rule' => array( 'controller' => 'product', 'rule' => '{category:/}{rewrite}.html', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'product_rewrite'), 'ean13' => array('regexp' => '[0-9\pL]*'), 'category' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'categories' => array('regexp' => '[/_a-zA-Z0-9-\pL]*'), 'reference' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'manufacturer' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'supplier' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'price' => array('regexp' => '[0-9\.,]*'), 'tags' => array('regexp' => '[a-zA-Z0-9-\pL]*'), ), ), 'layered_rule' => array( 'controller' => 'category', 'rule' => '{rewrite}/filter{selected_filters}', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'selected_filters' => array('regexp' => '.*', 'param' => 'selected_filters'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'category_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), 'category_rule' => array( 'controller' => 'category', 'rule' => '{categories:/}{rewrite}/', 'keywords' => array( 'id' => array('regexp' => '[0-9]+'), 'categories' => array('regexp' => '[/_a-zA-Z0-9-\pL]*', 'param' => 'categories_rewrite'), 'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*', 'param' => 'category_rewrite'), 'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), 'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'), ), ), ); } My Hosting Provider says
  3. Hello friends, by installing Prestashop 1.7.2.4 I receive error: Parse error: syntax error, unexpected '[', expecting ')' in /nfsmnt/hosting2_1/1/6/161af455-a27f-43cc-bc51-bf6f0dde3e16/dizajno.sk/sub/brubi1722/index.php on line 15 PHP on the server is 5.6, I unzipped downloaded file and uploaded index.php, Install_PrestaShop.html and prestashop.zip. when I open the page the instalation doesnt start, it somes the error. I tried prestashop 1.7.0.2, 1.7.2.2., 1.7.2.3, stil the same error. On this hosting is running prestashop 1.6.... without any problems. Please do you have any solution. Thank you very much!
  4. Hi! I have a problem, when I try to install the module of mailchimp the modules section is inaccessible showing this message. [PrestaShop] Fatal error in module file :/home/nameweb/public_html/modules/mailchimpintegration/mailchimpintegration.php: syntax error, unexpected '[' Which may be due? Thank you, greetings.
  5. Bonjour à tous, Je suis toute nouvelle sur ce forum. J'ai parcourue beaucoup de post et je vais commencer par remercier toutes ces personnes qui interviennent et réponde, cette entre-aide est vraiment merveilleuse. J'ai moi-même trouvé a plusieurs des réponses a de petits soucis. Merci et bravo. Jusqu'a présent le fait de vous lire a répondu à la majorité de mes interrogations. Mais aujourd'hui je suis perdu et ne trouve pas de solution. Mon prénom est Valérie. J'espère pouvoir trouver auprès de vous une solution a mon problème, je suis désespérée et pas douée quand il s'agit d'un soucis php. Je n'ai plus accès a mon site ni a sa console, je m'explique. Tout allait bien et je préparais mes colis (et oui j'ai des commandes a envoyer, c'est vraiment la poisse ce qui m'arrive !) Comme beaucoup, j'ai rencontré le soucis "impossible de générer un bon de livraison", page blanche. Pour voir d'ou vient l'erreur, j'ai modifié le fichier defines.inc.php et remplacé le false par le true afin de voir l'erreur. A partir de ce moment la, c'est fini, j'ai perdu le contrôle, j'ai perdu mon site et sa console. J'obtient un message d'erreur suivant : Parse error: syntax error, unexpected '_PS_DEBUG_SQL_' (T_STRING) sur la ligne 36. Au début c'était la ligne 39 Une fois l'erreur trouvé (mais pas corrigé) j'ai remis le false mais la encore j'ai un soucis l'erreur apparait toujours et est donc visible par tous, il suffit de vouloir accéder au site... http://gotothesuccess.com/ Je vous joins l'image du fichier defines.inc.php Je vois bien qu'il y a un soucis " de couleur" (dsl la je ni connais rien) mais je ne sais pas comment résoudre le problème. Quelqu'un aurait il la gentillesse de regarder ce qui m'arrive ? Je suis perdu. Merci pour votre aide et tout ce que vous faite !
  6. Hi guys, really hope someone can help me. Just purchased this theme, and after a bit of faffing managed to install it, but I was getting a white screen when I tried to use the theme. Turned on error reporting, and when logging into the back office, I get these two errors: 2 errors 1. ixtengine (parse error in /modules/ixtengine/ixtengine.php) 2. ixtengine (class missing in /modules/ixtengine/ixtengine.php) Which are obviously to do with the theme as ixt are the developers. When I tell prestashop to use this theme, the error I get on the previously white page is: Parse error: syntax error, unexpected '[' in /var/sites/b/myurl.co.uk/public_html/modules/ixtengine/ixtengine.php on line 34 When I press 'back' to get to the backoffice, I get 2 additional errors: Unknown error on line 413 in file /var/sites/b/myurl.co.uk/public_html/modules/multiblockatoh/multiblockatoh.php [2048] Declaration of MultiBlockAtoh::unregisterHook() should be compatible with that of ModuleCore::unregisterHook() Unknown error on line 31 in file /var/sites/b/myurl.co.uk/public_html/modules/shopimporter/shopimporter.php [2048] Declaration of shopimporter::cleanPositions() should be compatible with that of ModuleCore::cleanPositions() Really hope someone can help me, I've just updated my store to 1.6.1.1 and functionality seemed fine prior to this. Not gonna lie, tiny bit annoyed since it wasn't a cheap theme. Look forward to any help! All the best! Edit: Despite efforts from myself and the developer, I was unable to get this module functioning correctly, thus applied for a refund which was swiftly actioned, so the problem has been addressed.
  7. Установил без ошибок Prestashop 1.6.0.7. Фронт-офис работает замечательно, а вот при входе в админку появляются следующая ошибка: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/admin0782/themes/default/template/header.tpl" on line 51 "var youEditFieldFor = '{l s='This field will be modified for all your shops.' js=1}';" - Unexpected "1", expected one of: "identifier"' in /tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(36, '1') #2 /tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Interna in /tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667 Видел подобные ошибки при установке различных модулей. Там понятно - Syntax Error в коде Smarty, но как быть, если это только что скачанная Преста? Ошибка в коде магазина? Так я ставил эту версию на другие сервера без проблем...
  8. Gehe ich auf Module im Backend, sehe ich nur: [PrestaShop] Fatal error in module install-1.3.2: syntax error, unexpected T_IF Aber auch andere Meldungen zu "Fatal error in module install-1.3.2", weil die Hinweise im Forum bringen keinen Erfolg, da basteln wir uns den Shop nur weiter kaputt! Wir können viele Shop nur noch auf Eis legen! Wann kommt denn endlich mal ein Update, was aktuelle Bugs beseitigt? Kann man diese Software überhaupt noch irgendwie ernst nehmen?
  9. This is the error that I am receiving at the bottom of my pages (not on home page though)... Fatal error: Smarty error: [in \\nawinfs04\home\users\web\b2710\rh.scarvesplus\foreverbabyusa/themes/theme418/./pagination.tpl line 1]: syntax error: unbalanced parenthesis in if statement (Smarty_Compiler.class.php, line 1277) in \\nawinfs04\home\users\web\b2710\rh.scarvesplus\foreverbabyusa\tools\smarty_v2\Smarty.class.php on line 1095 I am on Prestashop 1.4.8.3. www.foreverbabyusa.com. I've checked pagination.tpl, and it seems to be ok but I'm new at looking at smarty coding. I've tried to get the parethesis to balance but I just get different errors when I do that. Can someone assist? Below is my pagination.tpl code: {if (int)(Configuration::get('PS_PRODUCTS_PER_PAGE')) != 10} {assign var='nArray' value=array((int)(Configuration::get('PS_PRODUCTS_PER_PAGE')), 12, 15, 30)} {else} {assign var='nArray' value=array(15, 30, 60)} {/if} {if isset($no_follow) AND $no_follow} {assign var='no_follow_text' value='rel="nofollow"'} {else} {assign var='no_follow_text' value=''} {/if} {if isset($p) AND $p} {if isset($smarty.get.id_category) && $smarty.get.id_category && isset($category)} {if !isset($current_url)} {assign var='requestPage' value=$link->getPaginationLink('category', $category, false, false, true, false)} {else} {assign var='requestPage' value=$current_url} {/if} {assign var='requestNb' value=$link->getPaginationLink('category', $category, true, false, false, true)} {elseif isset($smarty.get.id_manufacturer) && $smarty.get.id_manufacturer && isset($manufacturer)} {assign var='requestPage' value=$link->getPaginationLink('manufacturer', $manufacturer, false, false, true, false)} {assign var='requestNb' value=$link->getPaginationLink('manufacturer', $manufacturer, true, false, false, true)} {elseif isset($smarty.get.id_supplier) && $smarty.get.id_supplier && isset($supplier)} {assign var='requestPage' value=$link->getPaginationLink('supplier', $supplier, false, false, true, false)} {assign var='requestNb' value=$link->getPaginationLink('supplier', $supplier, true, false, false, true)} {else} {assign var='requestPage' value=$link->getPaginationLink(false, false, false, false, true, false)} {assign var='requestNb' value=$link->getPaginationLink(false, false, true, false, false, true)} {/if} {if $start!=$stop} <!-- Pagination --> <div id="pagination"> <ul class="pagination"> {if $p != 1} {assign var='p_previous' value=$p-1} <li id="pagination_previous"><a {$no_follow_text} href="{$link->goPage($requestPage, $p_previous)}"><span>« </span>{l s='Previous'}</a></li> {else} <li id="pagination_previous" class="disabled"><span>« </span>{l s='Previous'}</li> {/if} {if $start>3} <li><a class="bordercolor" {$no_follow_text} href="{$link->goPage($requestPage, 1)}">1</a></li> <li class="truncate">...</li> {/if} {section name=pagination start=$start loop=$stop+1 step=1} {if $p == $smarty.section.pagination.index} <li class="current"><span>{$p|escape:'htmlall':'UTF-8'}</span></li> {else} <li><a class="bordercolor" {$no_follow_text} href="{$link->goPage($requestPage, $smarty.section.pagination.index)}">{$smarty.section.pagination.index|escape:'htmlall':'UTF-8'}</a></li> {/if} {/section} {if $pages_nb>$stop+2} <li class="truncate">...</li> <li><a class="bordercolor" href="{$link->goPage($requestPage, $pages_nb)}">{$pages_nb|intval}</a></li> {/if} {if $pages_nb > 1 AND $p != $pages_nb} {assign var='p_next' value=$p+1} <li id="pagination_next"><a {$no_follow_text} href="{$link->goPage($requestPage, $p_next)}">{l s='Next'}<span> »</span></a></li> {else} <li id="pagination_next" class="disabled">{l s='Next'}<span> »</span></li> {/if} </ul> {if $nb_products > $products_per_page} <form id="pagination_form" action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get"> {if isset($search_query) AND $search_query}<input type="hidden" name="search_query" value="{$search_query|escape:'htmlall':'UTF-8'}" />{/if} {if isset($tag) AND $tag AND !is_array($tag)}<input type="hidden" name="tag" value="{$tag|escape:'htmlall':'UTF-8'}" />{/if} <a class="button_mini" href="javascript:document.getElementById('pagination_form').submit();">{l s='Ok'}</a> <label for="nb_item">{l s='items:'}</label> <select name="n" id="nb_item"> {assign var="lastnValue" value="0"} {foreach from=$nArray item=nValue} {if $lastnValue <= $nb_products} <option value="{$nValue|escape:'htmlall':'UTF-8'}" {if $n == $nValue}selected="selected"{/if}>{$nValue|escape:'htmlall':'UTF-8'}</option> {/if} {assign var="lastnValue" value=$nValue} {/foreach} </select> {if is_array($requestNb)} {foreach from=$requestNb item=requestValue key=requestKey} {if $requestKey != 'requestUrl'} <input type="hidden" name="{$requestKey|escape:'htmlall':'UTF-8'}" value="{$requestValue|escape:'htmlall':'UTF-8'}" /> {/if} {/foreach} {/if} </form> {/if} </div> <!-- /Pagination --> {/if} {/if} Thanks in advance, S
  10. Hi everyone i am trying to add Jpeg picture inside of product description and I am getting a syntax error anyone can please help me I would appreciate it. The ones I have loaded before work ok just the new ones i am getting this error. Please see picture attached Ok update everyone per webhost I am getting this error when trying to upload file into product description that's causing errors and not working correctly. Anyone know of a fix? /manage/ajaxfilemanager/ajax_file_upload.php
  11. I have been having some difficulty trying to figure out why State and Country fields are missing from my add an address section of the my account. When a customer creates an account the fields are in the registration form, however when you want to add an additional address via the my account or my addresses the State and Country tab is missing. When you try to input an address without those fields the page loads to fatal error. Web url is: www.defensetechga.com feel free to create a test account and experience it. FYI payment options are live so don't run a test order! I have spent two days searching online trying to figure this out. I looked at the address file in dreamweaver and it shows syntax error in state and country I have pasted below, the code where the suntax error is showing is in red. Can anyone see whats wrong and let me know how to fix. <script type="text/javascript"> // <![CDATA[ var baseDir = '{$base_dir_ssl}'; //]]> </script> <script type="text/javascript"> // <![CDATA[ idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}{if isset($address->id_state)}{$address->id_state|intval}{else}false{/if}{/if}; countries = new Array(); countriesNeedIDNumber = new Array(); countriesNeedZipCode = new Array(); {foreach from=$countries item='country'} {if isset($country.states) && $country.contains_states} countries[{$country.id_country|intval}] = new Array(); {foreach from=$country.states item='state' name='states'} countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|escape:'htmlall':'UTF-8'}'{rdelim}); {/foreach} {/if} {if $country.need_identification_number} countriesNeedIDNumber.push({$country.id_country|intval}); {/if} {if isset($country.need_zip_code)} countriesNeedZipCode[{$country.id_country|intval}] = {$country.need_zip_code}; {/if} {/foreach} $(function(){ldelim} $('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{if isset($address->id_state)}{$address->id_state|escape:'htmlall':'UTF-8'}{/if}{/if}]').attr('selected', 'selected'); {rdelim}); {if $vat_management} {literal} $(document).ready(function() { $('#company').blur(function(){ vat_number(); }); vat_number(); function vat_number() { if ($('#company').val() != '') $('#vat_number').show(); else $('#vat_number').hide(); } }); {/literal} {/if} //]]> </script> {capture name=path}{l s='Your addresses'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <h1>{l s='Your addresses'}</h1> <h3> {if isset($id_address) && (isset($smarty.post.alias) || isset($address->alias))} {l s='Modify address'} {if isset($smarty.post.alias)} "{$smarty.post.alias}" {else} {if isset($address->alias)}"{$address->alias|escape:'htmlall':'UTF-8'}"{/if} {/if} {else} {l s='To add a new address, please fill out the form below.'} {/if} </h3> {include file="$tpl_dir./errors.tpl"} <p class="required"><sup>*</sup> {l s='Required field'}</p> <form action="{$link->getPageLink('address.php', true)}" method="post" class="std" id="add_adress"> <fieldset> <h3>{if isset($id_address)}{l s='Your address'}{else}{l s='New address'}{/if}</h3> <p class="required text dni"> <label for="dni">{l s='Identification number'}</label> <input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{else}{if isset($address->dni)}{$address->dni|escape:'htmlall':'UTF-8'}{/if}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </p> {if $vat_display == 2} <div id="vat_area"> {elseif $vat_display == 1} <div id="vat_area" style="display: none;"> {else} <div style="display: none;"> {/if} <div id="vat_number"> <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}{else}{if isset($address->vat_number)}{$address->vat_number|escape:'htmlall':'UTF-8'}{/if}{/if}" /> </p> </div> </div> {assign var="stateExist" value="false"} {foreach from=$ordered_adr_fields item=field_name} {if $field_name eq 'company'} <p class="text"> <input type="hidden" name="token" value="{$token}" /> <label for="company">{l s='Company'}</label> <input type="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{else}{if isset($address->company)}{$address->company|escape:'htmlall':'UTF-8'}{/if}{/if}" /> </p> {/if} {if $field_name eq 'firstname'} <p class="required text"> <label for="firstname">{l s='First name'} <sup>*</sup></label> <input type="text" name="firstname" id="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{else}{if isset($address->firstname)}{$address->firstname|escape:'htmlall':'UTF-8'}{/if}{/if}" /> </p> {/if} {if $field_name eq 'lastname'} <p class="required text"> <label for="lastname">{l s='Last name'} <sup>*</sup></label> <input type="text" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{else}{if isset($address->lastname)}{$address->lastname|escape:'htmlall':'UTF-8'}{/if}{/if}" /> </p> {/if} {if $field_name eq 'address1'} <p class="required text"> <label for="address1">{l s='Address'} <sup>*</sup></label> <input type="text" id="address1" name="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{else}{if isset($address->address1)}{$address->address1|escape:'htmlall':'UTF-8'}{/if}{/if}" /> </p> {/if} {if $field_name eq 'address2'} <p class="required text"> <label for="address2">{l s='Address (Line 2)'}</label> <input type="text" id="address2" name="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{else}{if isset($address->address2)}{$address->address2|escape:'htmlall':'UTF-8'}{/if}{/if}" /> </p> {/if} {if $field_name eq 'postcode'} <p class="required postcode text"> <label for="postcode">{l s='Zip / Postal Code'} <sup>*</sup></label> <input type="text" id="postcode" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{else}{if isset($address->postcode)}{$address->postcode|escape:'htmlall':'UTF-8'}{/if}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" /> </p> {/if} {if $field_name eq 'city'} <p class="required text"> <label for="city">{l s='City'} <sup>*</sup></label> <input type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city|escape:'htmlall':'UTF-8'}{/if}{/if}" maxlength="64" /> </p> <!-- if customer hasn't update his layout address, country has to be verified but it's deprecated --> {/if} {if $field_name eq 'Country:name' || $field_name eq 'country'} <p class="required select"> <label for="id_country">{l s='Country'} <sup>*</sup></label> <select id="id_country" name="id_country">{$countries_list}</select> </p> {if $vatnumber_ajax_call} <script type="text/javascript"> var ajaxurl = '{$ajaxurl}'; {literal} $(document).ready(function(){ $('#id_country').change(function() { $.ajax({ type: "GET", url: ajaxurl+"vatnumber/ajax.php?id_country="+$('#id_country').val(), success: function(isApplicable){ if(isApplicable == "1") { $('#vat_area').show(); $('#vat_number').show(); } else { $('#vat_area').hide(); } } }); }); }); {/literal} </script> {/if} {/if} {if $field_name eq 'State:name'} {assign var="stateExist" value="true"} <p class="required id_state select"> <label for="id_state">{l s='State'} <sup>*</sup></label> <select name="id_state" id="id_state"> <option value="">-</option> </select> </p> {/if} {/foreach} {if $stateExist eq "false"} <p class="required id_state select"> <label for="id_state">{l s='State'} <sup>*</sup></label> <select name="id_state" id="id_state"> <option value="">-</option> </select> </p> {/if} <p class="textarea"> <label for="other">{l s='Additional information'}</label> <textarea id="other" name="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{else}{if isset($address->other)}{$address->other|escape:'htmlall':'UTF-8'}{/if}{/if}</textarea> </p> <p class="text"> <label for="phone">{l s='Home phone'}</label> <input type="text" id="phone" name="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{else}{if isset($address->phone)}{$address->phone|escape:'htmlall':'UTF-8'}{/if}{/if}" /> </p> <p class="text"> <label for="phone_mobile">{l s='Mobile phone'}</label> <input type="text" id="phone_mobile" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{else}{if isset($address->phone_mobile)}{$address->phone_mobile|escape:'htmlall':'UTF-8'}{/if}{/if}" /> </p> <span class="inline-infos required">{l s='You must register at least one phone number'} <sup class="required">*</sup></span> <p class="required text" id="adress_alias"> <label for="alias">{l s='Assign an address title for future reference'} <sup>*</sup></label> <input type="text" id="alias" name="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else}{if isset($address->alias)}{$address->alias|escape:'htmlall':'UTF-8'}{/if}{if isset($select_address)}{else}{l s='My address'}{/if}{/if}" /> </p> </fieldset> <p class="submit2"> {if isset($id_address)}<input type="hidden" name="id_address" value="{$id_address|intval}" />{/if} {if isset($back)}<input type="hidden" name="back" value="{$back}?step=1" />{/if} {if isset($mod)}<input type="hidden" name="mod" value="{$mod}" />{/if} {if isset($select_address)}<input type="hidden" name="select_address" value="{$select_address|intval}" />{/if} <input type="submit" name="submitAddress" id="submitAddress" value="{l s='Save'}" class="button" /> </p> </form>
×
×
  • Create New...