droper Posted September 7, 2011 Posted September 7, 2011 Hello everyone... I am running on v2.3.1 and have strange problem with products share, and don't know what to do (can't find solution anywhere...) My store is running on Cyrilic charset - and when someone click on "Like product" or just want to share some product url to Facebook or Google + it shows description in that way: In description section, it Shows only HTML tags - witout "< >", and don't show any Cyrilic character...? This is FACEBOOK example, but it is the same with GOOGLE +... It is obviously i make mistakes in charsets I think... But don't know where... and way shows the latin characters in HTML code... Please, any ideas..? Thanks and Regards. Sorry for my bad English, I am from Bulgaria. Quote
droper Posted September 7, 2011 Author Posted September 7, 2011 (edited) Here is my code... If anybody need of it... in: catalog/product_info.php <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_google_plusone"></a> <a class="addthis_button_email"></a> </div> <!-- AddThis Button END --> In: catalog/includes/template_top.php <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4d9ef23073f43e14"></script> But, don't know is the problem is in the code... Because, when copy link (URL) and paste directly in Facebook to share, it show the picture in first post... Edited September 7, 2011 by droper Quote
droper Posted September 10, 2011 Author Posted September 10, 2011 Come on, Gyes... Please give me a hand with this... It's very important to me, and my poor store... Quote
droper Posted September 16, 2011 Author Posted September 16, 2011 (edited) Hello again I find solution for my problem. There is In catalog\includes\application_top.php this: <meta property="og:description" content="<?php echo preg_replace('/[^a-zA-Z0-9\s]/','',preg_replace('/\s+/',' ',preg_replace("/<br>/", "",$product_info['products_description']))); ?>" /> I change it to this: <meta property="og:description" content="<?php echo preg_replace('/[^а-яА-Я0-9;:.,\s]/','',preg_replace('/\s+/',' ',preg_replace('<br/>', ' ',preg_replace('<b>', ' ',$product_info['products_description'])))); ?>" /> Now, If there is any latin character, will be ignore from description tag. It only shows - cyrilic symbols and - ; : . I know that I have to do more changes... If I progress it, I will post here, for someone like me :) Edited September 16, 2011 by droper Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.