X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Place WordPress posts in your X-Cart (https://forum.x-cart.com/showthread.php?t=46676)

Asiaplay 06-03-2009 12:08 PM

Re: Place WordPress posts in your X-Cart
 
Ophelia,

I guess that is as your X-Cart store uses ISO-8529 (ascii) and your wordpress uses UTF-8... perhaps Dmitry has a quick fix - but real fix is the same as for languages - change your X-Cart over to use full UTF-8 - search forums for the answer on how to do that if you really want to.

Cheers - Asiaplay

anandat 06-13-2009 01:53 AM

Re: Place WordPress posts in your X-Cart
 
Quote:

Originally Posted by Asiaplay
Ophelia,

I guess that is as your X-Cart store uses ISO-8529 (ascii) and your wordpress uses UTF-8... perhaps Dmitry has a quick fix - but real fix is the same as for languages - change your X-Cart over to use full UTF-8 - search forums for the answer on how to do that if you really want to.

Cheers - Asiaplay


I am also getting the similar problem.
It shows UTF- 8 (unicode) characters on x-cart as:

Ю╙├ Ю╙╣Ю╙╬Ю╙╟Ю╚█Ю╙╓Ю╙╬Ю ╙╦Ю╙┌Ю╙≈Ю╚█Ю╙╟Ю╙╧ Ю╙╗Ю╚─ Ю╙╓Ю╙╝Ю╙╬Ю╙╝ Ю╙╣Ю╙╬Ю╙╟Ю╚█Ю╙╓Ю╙╬Ю ╙⌠Ю╙╗Ю╙╬ Ю╙∙Ю╚┤Ю╙╗Ю╚█Ю╙╕Ю╚█Ю ╙╟ Ю╙╝Ю╙╬Ю╙┌ Ю╙╦Ю╚█Ю╙╓Ю╚█Ю╙╟Ю╚─ Ю╙⌡Ю╚┤. Ю╙├Ю╙╙Ю╙ёЮ╚┤ Ю╙╓Ю╚█Ю╙╞Ю╙╬...


how to change x-cart's ISO-8529 (ascii) to UTF-8 ?

Following is nysql database settings in phpmyadmin shows:

MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: UTF-8 Unicode _ci

Please help

-Anand

Asiaplay 06-14-2009 02:38 PM

Re: Place WordPress posts in your X-Cart
 
Hi Anandat,

Sorry for slow reply - I am travelling at the moment....

See this post - http://forum.x-cart.com/showpost.php?p=215307&postcount=8
Feel free to private message me if you have any questions.

Cheers - Asiaplay

Dmitri 06-24-2009 04:58 AM

Re: Place WordPress posts in your X-Cart
 
Hello

We are just working on a Pro version of the mod, that will
- be easy to configure via easy to use interface
- be compatible with 4.1.x and 4.2.x
- support more RSS feed formats
- support different char set encoding configurations
- more...

what's not know is:
- cost (there might be free version available)
- additional functionality

fyjpm 07-06-2009 09:20 AM

Quick and Dirty fix for messed up Quotes & Characters due to UTF8
 
Quote:

Originally Posted by Asiaplay
Ophelia,

I guess that is as your X-Cart store uses ISO-8529 (ascii) and your wordpress uses UTF-8... perhaps Dmitry has a quick fix - but real fix is the same as for languages - change your X-Cart over to use full UTF-8 - search forums for the answer on how to do that if you really want to.

Cheers - Asiaplay


in rss.blog.php use the function below for title & description:

iconv("UTF-8", "CP1252", $data)

Here's what the new function will look like:
Code:

    #
    # this function will be called everytime there is a string between two tags
    #
    function characterData($parser, $data){
        global $rssblog_globals;
        if($rssblog_globals[inside_item]){
            switch($rssblog_globals[current_tag]){
                case "TITLE":
                $rssblog_globals[current_title] .= iconv("UTF-8", "CP1252", $data);
                break;
                case "DESCRIPTION":
                $rssblog_globals[current_description] .= iconv("UTF-8", "CP1252", $data);
                break;
                case "LINK":
                $rssblog_globals[current_link] .= $data;
                break;
            }
        }
        elseif($rssblog_globals[inside_image]){
        }
        elseif($rssblog_globals[inside_channel]){
            switch($rssblog_globals[current_tag]){
                case "TITLE":
                $rssblog_globals[channel_title] .= $data;
                break;
            }
        }
    }


OpheliaPayne 07-06-2009 09:24 AM

Re: Place WordPress posts in your X-Cart
 
One thing to note.. if you include this... it will try to load it before the store, so if there is any kind of delay on your site, high server load, etc., it's going to lag your store. We ran into this issue during a sale that had high server load and it took 2 days to pinpoint exactly what was causing the issue via watching the server logs. Once we removed the code, the issues stopped.

Dmitri 07-22-2009 02:35 AM

Re: Place WordPress posts in your X-Cart
 
Quote:

Originally Posted by OpheliaPayne
One thing to note.. if you include this... it will try to load it before the store, so if there is any kind of delay on your site, high server load, etc., it's going to lag your store. We ran into this issue during a sale that had high server load and it took 2 days to pinpoint exactly what was causing the issue via watching the server logs. Once we removed the code, the issues stopped.


We are working on update that would cache the feed, thus eliminating this issue

maximillian 07-02-2010 06:18 AM

Re: Place WordPress posts in your X-Cart
 
I've just installed this free mod and it works great.
Thank you!
Looking forward to the upgraded verison :)

Dmitri 07-05-2010 01:12 PM

Re: Place WordPress posts in your X-Cart
 
Quote:

Originally Posted by maximillian
I've just installed this free mod and it works great.
Thank you!
Looking forward to the upgraded verison :)


thanks :)

kgoel 02-02-2011 07:56 PM

Re: Place WordPress posts in your X-Cart
 
Has anyone tried this MOD on 4.3 version of X-cart ?


All times are GMT -8. The time now is 10:16 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.