Jump to content

Adressbar missing product title using multiple languages


toifel

Recommended Posts

Hi folks,

 

I've finally managed to (almost) finish my first prestaShop, and from all the suffer I had to go through there's basically just on thing remaining.. here's the problem:

The links inside the page are perfectly converted by friendlyUrl and look like this one:

http://mydomain.de/d...sett-2-109.html

 

Clicking that link takes me to the desired page, no problem so far. However, when the page has finally loaded, the URL in the adressbar of the browser looks like this:

http://mydomain.de/d...s/19-Array.html

 

I had the exact same problem before and managed to fix it by adding a language-index to ->product_title, so it was like ->product_title[$lang_id]. I just can't find the piece of code I need to edit for the adressbar to work... I'd assume it's some javascript using location.replace?! But where??

 

Thanks, Martin/toi

Link to comment
Share on other sites

  • 5 weeks later...

Alright, in case anyone is ever having this issue, you will need to edit Link.php or even better override it. The function is called getProductLink().

 

$id_product->link_rewrite is an array and needs $id_lang as it's index. This probably won't work as expected, but with a little tweaking I got it working. If you need the entire code, drop me a PM.

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...