Dave L Posted August 5, 2011 Share Posted August 5, 2011 Hi, For those using the prestashop_alt theme I think there may be an error with addresses. If you are loggind into FO and click on addresses and then 'update' I get sent to the 'add address' page instead of 'update address', so the accounts address is cannot be modified. Also, after adding a second address, it is not able to be deleted. I replaced the address.tpl and addresses.tpl file with the files from the standard prestashop theme and all works fine. Could anyone confirm if they have this problem? If you do then I'll report it as a bug, if not i'll start looking at why/how it get screwed up. Thanks. Link to comment Share on other sites More sharing options...
razaro Posted August 5, 2011 Share Posted August 5, 2011 Hi Problem is in addresses.tpl, in theme folder, correct code is <li class="address_update"><a href="{$link->getPageLink('address.php', true)}?id_address={$address.object.id|intval}" title="{l s='Update'}">{l s='Update'}</a></li> <li class="address_delete"><a href="{$link->getPageLink('address.php', true)}?id_address={$address.object.id|intval}&delete" onclick="return confirm('{l s='Are you sure?'}');" title="{l s='Delete'}">{l s='Delete'}</a></li> (this is from default theme) In 1.4.3 code was $address.object.id_address and in 1.4.4 $address.object.id so there is a problem. Think that is done because some new features. Note that prestashop_alt is probably not updated to latest version as it is not part of official release. Link to comment Share on other sites More sharing options...
Dave L Posted August 5, 2011 Author Share Posted August 5, 2011 Hi Problem is in addresses.tpl, in theme folder, correct code is <li class="address_update"><a href="{$link->getPageLink('address.php', true)}?id_address={$address.object.id|intval}" title="{l s='Update'}">{l s='Update'}</a></li> <li class="address_delete"><a href="{$link->getPageLink('address.php', true)}?id_address={$address.object.id|intval}&delete" onclick="return confirm('{l s='Are you sure?'}');" title="{l s='Delete'}">{l s='Delete'}</a></li> (this is from default theme) In 1.4.3 code was $address.object.id_address and in 1.4.4 $address.object.id so there is a problem. Think that is done because some new features. Note that prestashop_alt is probably not updated to latest version as it is not part of official release. Thanks razaro. I had forgotten I was now running 1.4.4 with this theme and prestashop_alt is a 1.4.3 theme. Thanks. 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