D-Zs Posted January 25, 2012 Share Posted January 25, 2012 Hello I am currently building a webshop at: www.cyklerogfritid.dk but I am experiencing problems with the authentication.tpl // <![CDATA[ idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if}; valueDni = {if isset($smarty.post.dni) && $smarty.post.dni}{$smarty.post.dni}{else}false{/if}; countries = new Array(); countriesNeedIDNumber = new Array(); {foreach from=$countries item='country'} {if isset($country.states)} countries[{$country.id_country|intval}] = new Array(); {foreach from=$country.states item='state' name='states'} countries[{$country.id_country|intval}]['{$state.id_state|intval}'] = '{$state.name|escape:'htmlall':'UTF-8'}'; {/foreach} {/if} {if $country.need_identification_number} countriesNeedIDNumber.push({$country.id_country|intval}); {/if} {/foreach} //]]> I get a syntax error in the first line which I guess is causing the error: id_country is required. I have disabled every country with the exception of Denmark. I cannot see the drop down menu for country select when using the quick payment option. If I try to create a new account, I can see the country drop down menu, however, I get another error telling me that an alias is required. Can anyone help with this? let me know if you need more info. Thanks in advance. Link to comment Share on other sites More sharing options...
tdr170 Posted January 25, 2012 Share Posted January 25, 2012 Check to make sure you have a default carrier set up I had a similar issue. Even though in carriers it showed a default carrier it was not saved correctly in the database. Link to comment Share on other sites More sharing options...
D-Zs Posted January 25, 2012 Author Share Posted January 25, 2012 I have default carrier setup and I can see the carrier aswell. I think the problem is in the html coding but I havent got a clue about it. Link to comment Share on other sites More sharing options...
tdr170 Posted January 25, 2012 Share Posted January 25, 2012 Mine also showed a default carrier as soon as I edited carrier and resaved all worked fine. My issue was a little diff as when I went to create new account there was no state and drop list for Country was empty. When I went to edit what looked like my default carrier it was set to Europe im in US. What I did in the end was delete all carriers (1) and entered again from there all was fine State field was back and drop list showed Countries. This may not be your issue just thought I would share my experience. Try this here is the latest copy of authentication.tpl from Prestashops SVN change the name back to .tpl the forum will not let me uplaod a .tpl file. authentication.php Link to comment Share on other sites More sharing options...
D-Zs Posted January 26, 2012 Author Share Posted January 26, 2012 Ah okay I see. I have deleted all the regions and created a new one called Denmark and also deleted all states etc. I still havent deactivated all the other countries though, because it takes a long time to uncheck the box in every single country. I will try to replace the authentication.tpl file. I guess it shouldnt cause any problems? Link to comment Share on other sites More sharing options...
D-Zs Posted January 26, 2012 Author Share Posted January 26, 2012 Okay the problem is solved. Apparently there was a flaw in the order-opc-new-account.tpl Link to comment Share on other sites More sharing options...
sworld Posted May 7, 2013 Share Posted May 7, 2013 D-Zs How the problem was solved 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