CameraTek Posted September 24, 2010 Share Posted September 24, 2010 Hi all,I have the friendly url on, it's working fine but at the end of the url it writes the EAN13 code, what file would i need to change for the reference to be written at the end of the url instead of the EAN13 code?ThanksAndy Link to comment Share on other sites More sharing options...
rocky Posted September 24, 2010 Share Posted September 24, 2010 Change line 45 of classes/Link.php (in PrestaShop v1.3.1) from: return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$lang_link.(($id_product->category != 'home' AND !empty($id_product->category)) ? $id_product->category.'/' : '').intval($id_product->id).'-'.$id_product->link_rewrite.($id_product->ean13 ? '-'.$id_product->ean13 : '').'.html') : to: return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$lang_link.(($id_product->category != 'home' AND !empty($id_product->category)) ? $id_product->category.'/' : '').intval($id_product->id).'-'.$id_product->link_rewrite.($id_product->reference ? '-'.$id_product->reference : '').'.html') : Link to comment Share on other sites More sharing options...
CameraTek Posted September 24, 2010 Author Share Posted September 24, 2010 Ur the best, worked fine cheersAndy 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