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)

Dmitri 03-31-2009 10:03 PM

Place WordPress posts in your X-Cart
 
This is Free Open Source mod that allows you to place WordPress recent post on the home page (or with little modification) to any page of your x-cart.

It connects to the RSS feed of your or any body elses WordPress and populates data to your x-cart front end.

Why:

- It's good for SEO if your want to influence search engines to crawl and index your x-cart home page more frequently (better indexing -> better ranking) or if you have blog that you want to promote (better ranking)

- It's good for your visitors if you have a good and informative blog

Works with X-Cart 4.1.x and 4.2

See demo and download here:
WordPress RSS feed X-Cart integration

Hope it works and helps.

balinor 04-01-2009 03:21 AM

Re: Place WordPress posts in your X-Cart
 
Moving to Third Party Add-Ons

cotc2001 04-01-2009 03:51 AM

Re: Place WordPress posts in your X-Cart
 
Wouldn't it present a problem with dupe content if the posts are on the blog AND on the x-cart site as well?

Dmitri 04-01-2009 04:07 AM

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

Originally Posted by cotc2001
Wouldn't it present a problem with dupe content if the posts are on the blog AND on the x-cart site as well?


Nope. The mod puts excerpts from the blog posts which are short snapshots of the actual posts.

dalmuti 05-18-2009 08:16 AM

Re: Place WordPress posts in your X-Cart
 
Dmitri, on your site the version listed is 4.2 - but above you say it works with 4.1? Which is correct, please?

Louise

OpheliaPayne 05-30-2009 04:22 PM

Re: Place WordPress posts in your X-Cart
 
I would like to know this as well. I downloaded the code for 4.2, and used what I thought would go into 4.1, but it didn't work. I received this error

Warning: Smarty error: unable to read resource: "customer/dialog.tpl" in /home/webattit/public_html/store/Smarty-2.6.12/Smarty.class.php on line 1095

Dmitri 06-02-2009 12:09 AM

Re: Place WordPress posts in your X-Cart
 
Hello

Quote:

Originally Posted by dalmuti
Dmitri, on your site the version listed is 4.2 - but above you say it works with 4.1? Which is correct, please?


The current version of the module works with both 4.1.x and 4.2.x versions of x-cart

Quote:

Originally Posted by OpheliaPayne
I would like to know this as well. I downloaded the code for 4.2, and used what I thought would go into 4.1, but it didn't work. I received this error

Warning: Smarty error: unable to read resource: "customer/dialog.tpl" in /home/webattit/public_html/store/Smarty-2.6.12/Smarty.class.php on line 1095


Looking at the smarty error, it appears like the installation of the module went wrong. The dialog.tp is hosted in /skin1/ directory, not in /skin1/customer/

If you may please PM me your FTP access info, I will look into the site and will reply back with my findings.

Thank you

OpheliaPayne 06-02-2009 06:46 AM

Re: Place WordPress posts in your X-Cart
 
Here is the issue.

In xCart Pro 4.1, there is no...

Quote:

x_session_register("login_antibot_on", "");
$smarty->assign("login_antibot_on", $login_antibot_on);


I believe I put the code in the wrong place, but that leads to the question, where is it suppose to go?

Dmitri 06-02-2009 01:36 PM

Re: Place WordPress posts in your X-Cart
 
Hello

For those with 4.1.x versions:

Quote:

Originally Posted by OpheliaPayne
Here is the issue.

In xCart Pro 4.1, there is no...

Code:

x_session_register("login_antibot_on", "");
$smarty->assign("login_antibot_on", $login_antibot_on);


I believe I put the code in the wrong place, but that leads to the question, where is it suppose to go?


In auth.php put
Code:

# CartTemplates.com | ASF Design Inc. WordPress RSS feed blog parser
if ($current_category == '') {include $xcart_dir."/modules/CartTPL_blog/blog.php";}
# CartTemplates.com | ASF Design Inc. WordPress RSS feed blog parser

before
Code:

$smarty->assign("printable", $printable);
$smarty->assign("logout_user", $logout_user);


and replace content of /skin1/modules/CartTPL_blog/blog.tpl with

Code:

{capture name=dialog}
        {section name=blogcount loop=$blog.items}
                {if ($max_posts eq 0)||($smarty.section.blogcount.index lt $max_posts)}
                        <a href="{$blog.items[blogcount].link}"><strong>{$blog.items[blogcount].title|truncate:$max_title_lenght}</strong></a><br />
                        {$blog.items[blogcount].description|truncate:$max_content_lenght}<hr />
                {/if}
        {/section}
        <div style="text-align:right;"><a href="http://www.carttemplates.com/">X-Cart templates</div>
{/capture}
{include file="dialog.tpl" title=$blog_title content=$smarty.capture.dialog}


That should render this mod usable for 4.1.x

OpheliaPayne 06-03-2009 06:07 AM

Re: Place WordPress posts in your X-Cart
 
That worked. Thank you so much.

I did notice that it's not transferring ' correctly. It translates as Б€™

Is there a way to address that? Thanks!

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 ?

abeight 02-26-2011 09:27 AM

Re: Place WordPress posts in your X-Cart
 
I installed this on a 4.3 site and it worked perfectly.

frontliner 01-30-2012 05:17 AM

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

Originally Posted by Dmitri
See demo and download here:
WordPress RSS feed X-Cart integration


Hi,

I'm working to add a Wordpress blog and i'm searching for a way to display new entries from the blog on the store home page.

Does it works the same way the x-cart news section does in the home page ? That is what i exactly need...

Unfortunately, at this time, the demo at Carttemplates.com seems to be down.

Is someone can point me a link to that working mod feed on a live x-cart store to see how it looks like ?

BTW, does it works on 4.4.3 gold ?

Many thanks.


All times are GMT -8. The time now is 11:33 AM.

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