sennevb Posted March 28, 2016 Share Posted March 28, 2016 Hi, Someone any clue where id_product gets declared?? I'm getting issues on urls that have been removed, with the hreflang module on... When i put it off, there arent any issues.. for example: https://www.zelfbouw-domotica.be/nl/enkelvoudige-lichtbediening-met-led.html (debug is on) with debug off i get error 500.. Error log say: ndefined index: id_product in /home/senne/web/zelfbouw-domotica.be/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 57 i think it has to do with following rule in href module: {if $page_name == 'product'} {foreach $languages as $lang} <link rel="alternate" hreflang="{$lang.language_code}" href="{$link->getProductLink($smarty.get.id_product, null, null, null, $lang.id_lang, null, 0, false)}" /> {/foreach} {/if} i think Id-product is not declared and thus it makes an error.. Any clues?? Link to comment Share on other sites More sharing options...
El Patron Posted March 28, 2016 Share Posted March 28, 2016 Hi, did you modify PS core to remove ID's in the friendly URL? Link to comment Share on other sites More sharing options...
sennevb Posted March 28, 2016 Author Share Posted March 28, 2016 i am using advanced url module.. Link to comment Share on other sites More sharing options...
El Patron Posted March 28, 2016 Share Posted March 28, 2016 I would contact the developer. TIP: Once you go down the road of removing ID's from native PrestaShop URL's you will have this sort of issue for a long as you run the shop. I do not recommend any module/hack that removes the ID's as it not necessary for SEO. Link to comment Share on other sites More sharing options...
sennevb Posted March 28, 2016 Author Share Posted March 28, 2016 Any way to use other module ro remove id in url? or alter the hreflang module? Link to comment Share on other sites More sharing options...
sennevb Posted March 28, 2016 Author Share Posted March 28, 2016 Okay, but when i remove this module i will have lots of urls that are not working anymore, also not good for seo, not?? Link to comment Share on other sites More sharing options...
El Patron Posted March 28, 2016 Share Posted March 28, 2016 I don't now why the would not work, can you explain? They should not sell modules that do this, it's basically a scam. my two cents Link to comment Share on other sites More sharing options...
sennevb Posted March 28, 2016 Author Share Posted March 28, 2016 Urls that are crawled get changed now, so cannot be found anymore.. Lots of url not found in google webmaster.. Link to comment Share on other sites More sharing options...
El Patron Posted March 28, 2016 Share Posted March 28, 2016 Urls that are crawled get changed now, so cannot be found anymore.. Lots of url not found in google webmaster.. I understand, once you go down this path there may be no coming back. I would contact the 'module' developer to see if they can fix downstream modules that need the product/catalog id's. 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