wpml permalink problem

This topic contains 8 replies, has 2 voices, and was last updated by erdcck erdcck 5 years, 3 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #14495
    erdcck
    erdcck
    Participant

    Dear dir / madam

    I have use wocommerce and wpml. Primary language is Turkish. English product permalinks wrong in ajax search pro, other site links working correctly

    urun (turkish) => product

    Turkish permalink valid and running
    frontend turkish language product permalink valid and running : hhttps://maksdisplays.com/urun/wind-sign-silver-frame-30-x-40-poster-size/

    English permalink wrong and get 404, urun (turkish) must be product (ajax search pro result link)
    frontend english language product permalink get 404 error : https://maksdisplays.com/en/urun/wind-sign-silver-frame-30-x-40-poster-size/

    English working permalink
    frontend english language product permalink get 404 error : https://maksdisplays.com/en/product/wind-sign-silver-frame-30-x-40-poster-size/

    Attachments:
    You must be logged in to view attached files.
    #14504
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Dear customer,

    Thank you very much for the proper details, it made my work much easier. I’ve looked at the issue directly via FTP, but somehow the WPML translation returns the incorrect post type slug. I have tried to look on the WPML forums and their support page to see if this is a known issue, or if there is any solution to initialize the slug translation, but I have not found anything.

    I have solved the issue with a custom code, that I placed in the child theme directory, into the functions.php file. The links should be correct now.

    For future reference, the code is:

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14506
    erdcck
    erdcck
    Participant

    Dear Ernest, thank you so much for your support,

    #14507
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14508
    erdcck
    erdcck
    Participant

    Dear Ernest, I have found something and trying. I have temporary remove your custom function

    so sorry my english very bad.

    When I changed english language products permalink. wp or wpml (I don’t know) redirect turkish url to en url and working. (all product duplicated with wpml duplicate function and wpml duplicated all products title and permalinks to english language)

    please go to this url, wp redirect url to english url
    https://maksdisplays.com/en/urun/pop-up-stand-corner/ => https://maksdisplays.com/en/product/pop-up-stand-corner/

    please check it for me about this issue is true or false

    #14509
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Yes, it redirects me as well, it looks correct:
    (english test)
    This URL: https://maksdisplays.com/en/urun/pop-up-stand-corner/
    redirects to: https://maksdisplays.com/en/product/pop-up-stand-corner/

    ..and also, it works backwards as well:

    (turkish test)
    This URL: https://maksdisplays.com/product/orumcek-stand-corner/
    redirects to: https://maksdisplays.com/urun/orumcek-stand-corner/

    It looks like it recognizes the language correctly, and redirects as it supposed to. I believe this is correct 🙂

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14510
    erdcck
    erdcck
    Participant

    Hi

    I have a new problem 🙂

    product title pop up stand corner
    product url https://maksdisplays.com/en/product/pop-up-stand-corner/

    not display with this keywords
    pop up stand, pop up, pop

    display product with this keywords
    corner, pop up stand corner

    #14511
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Sorry, my mistake. I have forgot to remove a debugging code from the plugin files. Now it should be displayed for those keywords correctly.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14512
    erdcck
    erdcck
    Participant

    Thank you so much, I have rated ASP from codecanyon

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.