Support » Plugin: WP Shopify » URL encoded

  • Hello.

    I’m using WP Shopify for the first time. This is a great plugin.
    But I have some questions.

    If the product URL is Japanese in shopify, the URL of the product displayed in WordPress is encoded twice.

    example…
    (in shopify)”テスト”
    –encode–> “%E3%83%86%E3%82%B9%E3%83%88″
    –encode–> (in wordpress)”%25E3%2583%2586%25E3%2582%25B9%25E3%2583%2588”

    Therefore, I cannot move to the product page.
    Can you solve the encoding problem without changing the Shopify URL?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew @ wpshop.io

    (@andrewmrobbins)

    @dohiyoko

    Hey there!

    Thanks for letting me know about this. I’ll fix this in the next plugin update. I’m hoping to have it out by Wednesday.

    Thread Starter dohiyoko

    (@dohiyoko)

    Thank you very much!
    I am looking forward to it.

    Plugin Author Andrew @ wpshop.io

    (@andrewmrobbins)

    @dohiyoko

    Hey there, thanks for being patient with this issue.

    Tomorrow I’ll be pushing out an update to the plugin that fixes this. It should work automatically for you if your WordPress Site Language is not set to English.

    However if it doesn’t work after updating, try adding this piece of JavaScript to your WordPress theme:

    
    wp.hooks.addFilter("product.title.sanitize", "wpshopify", function (shouldSanitize) {
       return false;
    });
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.