Jump to content

how to remove ean from url ps 1.4.7


killeer

Recommended Posts

Hi Guys 

 

i have posted this else ware on here but i have not got a single response, mabye i posted in the wrong section?

 

anyway i have friendly url's turned on and site map on google however google has over 2000 crawl errors as it cant locate the url's in the site map, prestashop is adding the ean numbers at the end of the product  url ( this is not reflected in the site map ) which looks ulgy as hell and is stopping the urls being indexed.

 

is there any chance anyone knows how to remove the ean numbers from the product url?

 

regards

 

richard

Link to comment
Share on other sites

Hi.

 

Edit classes/Link.php

 

Change line 53 to:

return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink().((isset($product->category) AND !empty($product->category) AND $product->category != 'home') ? $product->category.'/' : '').(int)$product->id.'-'.$product->link_rewrite.'.html?deletePicture='.$id_picture) :

Comment lines 86-89

Comment lines 114-117

 

You can also create an override file with the above changes.

 

Regards.

Robin.

The CartExpert Team

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...