Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Place WordPress posts in your X-Cart

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 03-31-2009, 10:03 PM
  Dmitri's Avatar 
Dmitri Dmitri is offline
 

Senior Member
  
Join Date: Jul 2003
Location: Toronto
Posts: 174
 

Exclamation 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.
__________________
CartTemplates | ASF Design Inc
~~~
CartTemplates.com | XCart Design - Custom design or Choose from thousands of templates that can be integrated with X-Cart.
tel: +1 (416) 410-9995
Reply With Quote
  #2  
Old 04-01-2009, 03:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Place WordPress posts in your X-Cart

Moving to Third Party Add-Ons
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-01-2009, 03:51 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default 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?
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #4  
Old 04-01-2009, 04:07 AM
  Dmitri's Avatar 
Dmitri Dmitri is offline
 

Senior Member
  
Join Date: Jul 2003
Location: Toronto
Posts: 174
 

Default 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.
__________________
CartTemplates | ASF Design Inc
~~~
CartTemplates.com | XCart Design - Custom design or Choose from thousands of templates that can be integrated with X-Cart.
tel: +1 (416) 410-9995
Reply With Quote
  #5  
Old 05-18-2009, 08:16 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default 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
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #6  
Old 05-30-2009, 04:22 PM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default 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
__________________
xCart 4.6.1
Reply With Quote
  #7  
Old 06-02-2009, 12:09 AM
  Dmitri's Avatar 
Dmitri Dmitri is offline
 

Senior Member
  
Join Date: Jul 2003
Location: Toronto
Posts: 174
 

Default 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
__________________
CartTemplates | ASF Design Inc
~~~
CartTemplates.com | XCart Design - Custom design or Choose from thousands of templates that can be integrated with X-Cart.
tel: +1 (416) 410-9995
Reply With Quote
  #8  
Old 06-02-2009, 06:46 AM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default 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?
__________________
xCart 4.6.1
Reply With Quote
  #9  
Old 06-02-2009, 01:36 PM
  Dmitri's Avatar 
Dmitri Dmitri is offline
 

Senior Member
  
Join Date: Jul 2003
Location: Toronto
Posts: 174
 

Exclamation 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
__________________
CartTemplates | ASF Design Inc
~~~
CartTemplates.com | XCart Design - Custom design or Choose from thousands of templates that can be integrated with X-Cart.
tel: +1 (416) 410-9995
Reply With Quote
  #10  
Old 06-03-2009, 06:07 AM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default 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!
__________________
xCart 4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:31 PM.

   

 
X-Cart forums © 2001-2020