Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Product name in cyrillic (product name getting messed up in the email)

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Product name in cyrillic (product name getting messed up in the email)

Tagged: Language

  • This topic has 5 replies, 3 voices, and was last updated 11 years, 6 months ago by admin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 15, 2011 at 11:01 am #4061
    dmitrikartashov
    Member

    Hi there,

    I have an issue when the product name is in cyrillic. When its added to the thank you email and on the thank you page it gets replaced.

    In the email its replaced with spaces and on the page with � !

    I think its something to do with charset.

    The actual product name is – Отличная фигура – на всю жизнь!

    Can you help?

    August 15, 2011 at 11:25 pm #35509
    amin007
    Participant

    Is your database created in UTF-8 format? You can log into your PHPMyAdmin and check the charset type for your database tables. If you never used PHPMyAdmin then this article should help:

    http://www.tipsandtricks-hq.com/how-to-easily-import-or-export-any-of-your-wordpress-database-content-using-phpmyadmin-3415

    August 16, 2011 at 8:54 am #35510
    dmitrikartashov
    Member

    Yes, all tables are – utf8_general_ci.

    When I go to product admin page, the name and descriptions all come out fine as they should. I also checked the product table and the ‘Name’ value is stored correctly.

    The problem only appears when the product name is displayed in the email and thank you page.

    August 16, 2011 at 11:57 pm #35511
    amin007
    Participant

    I think I know what the issue is… when PayPal send the notification it sends the data using a different charset than UTF-8 so those names gets messed up. Not sure if you can set anything in your PayPal profile to tell PayPal to send the data back using UTF-8 format.

    Anyway, here is a quick fix for you that should work:

    1. Correct the product name in the email

    Open the “paypal.php” file and search for the following line of code:

    $cart_item_data_name = trim($current_cart_item['item_name']); //$retrieved_product->name;

    Once you find it change it to the following:

    $cart_item_data_name = $retrieved_product->name;

    2. Correct the product name on the Thank You page

    Open the “eStore_includes3.php” file and search for the following line of code:

    $cart_item_data_name = trim($current_cart_item['item_name']); //$retrieved_product->name;

    Once you find it change it to the following:

    $cart_item_data_name = $retrieved_product->name;

    This should make it to where it will use the product name from the database rather than the value sent from PayPal.

    August 17, 2011 at 10:14 am #35512
    dmitrikartashov
    Member

    Hi there,

    This has fixed the issue. Many thanks for a quick fix and a great plugin.

    Dmitri

    September 20, 2011 at 1:49 am #35513
    admin
    Keymaster

    This should fix it:

    https://support.tipsandtricks-hq.com/forums/topic/some-characters-and-text-not-recognizable-in-the-notification-email

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ