Add Wordpress blog into CS-Cart

I just installed a Wordpress blog into the /blog subfolder on my site, the news items are transferred, I matched the Wordpress CSS to the main site as best as possible … now the integration.



If I just add a “blog” item into the top menu, linking to /blog, it shows me the FULL Wordpress blog, with the top and left columns disappearing.

If I link this top menu item to a page I created within CS-Cart called “blog”, and then try and mess with its HTML code, it all looks just like I want it, except I dont see the actual Wordpress blog inside the central column.



I tried to follow various “integrate your site with Wordpress” tutorials, maybe I'm too tired now to see toe obvious thing.



Does anyone out there have a solution to this / has done this before? Help is greatly appreciated!!!

[quote name='FiligreeStreet' timestamp='1318187302' post='123266']

I just installed a Wordpress blog into the /blog subfolder on my site, the news items are transferred, I matched the Wordpress CSS to the main site as best as possible … now the integration.



If I just add a “blog” item into the top menu, linking to /blog, it shows me the FULL Wordpress blog, with the top and left columns disappearing.

If I link this top menu item to a page I created within CS-Cart called “blog”, and then try and mess with its HTML code, it all looks just like I want it, except I dont see the actual Wordpress blog inside the central column.



I tried to follow various “integrate your site with Wordpress” tutorials, maybe I'm too tired now to see toe obvious thing.



Does anyone out there have a solution to this / has done this before? Help is greatly appreciated!!!

[/quote]

I have the same exact set up on my website. I just “Added an Item” to the Top Menu and called it Blog and then added the URL from the sub folder I had assigned my blog to…www.yourdomain.com/blog…or whatever it is. That should direct it do your blog.

cmund

[quote name='cmund' timestamp='1318200474' post='123274']

I have the same exact set up on my website. I just “Added an Item” to the Top Menu and called it Blog and then added the URL from the sub folder I had assigned my blog to…www.yourdomain.com/blog…or whatever it is. That should direct it do your blog.

cmund

[/quote]



cmund, thanks, but thats not what I meant. Of course it works like this easily, but I also wrote that I would like to have my new blog embedded in the central column only, with the rest of the Wordpress blog being stripped.

Integrated, not just linked.

Well, I figured that was too easy!

The only thing that you might consider (don't know if it would work) but create a custom block on that blog page that you create and have your blog a center column only…but that's probably stretching it. Just a thought though.

cmund

[quote name='cmund' timestamp='1318284449' post='123350']

Well, I figured that was too easy!

The only thing that you might consider (don't know if it would work) but create a custom block on that blog page that you create and have your blog a center column only…but that's probably stretching it. Just a thought though.

cmund

[/quote]



cmund, I tried this but it didnt work (=the way I did it it didn't). I just copy and pasted the contents of the blog's index.php into the custom HTML block.

Funnily enough I found a tutorial on how to “properly” implement the blog into a PHP website, it said among other things to add a harmless line linking back to the blog's main index.php into the CS-cart's index.php - it didnt work, but it had a weird byproduct as I couldnt go onto additional pages in the product view, just page 1. So, instead of trying it again, I'd rather wait for someone else to help.

I guess the better way to do it is to make a wordpress template that looks exactly like your store. This way you have the added benefit of the strong SEO from wordpress

[quote name='Flow' timestamp='1318326434' post='123408']

I guess the better way to do it is to make a wordpress template that looks exactly like your store. This way you have the added benefit of the strong SEO from wordpress

[/quote]



Ive seen other web sites where the Blog/phpBB pages were included as central column content . It worked really well, and I want to do the same.

There must be a way to include other URL content within a Central block of the cs-cart software. I see it all the time on the wwweb now, and can see that it is an easy way to keep your website content dynamic.



Check out this : http://forum.badbacks.com.au/faq.php



Anyone know how to do this?



Edit: Closer inspection makes me think it might be a separate page to the shop site after all…

You will need to link the two systems together, by editing the index.php of CS-Cart. This is how it appears in the default install of CS Cart 2.2.3 Professional, with the additions linking to a subfolder install (Domain Blog | Domain, Website, and Ecommerce Tips for Small Businesses) of WordPress.


<br />
<?php<br />
<br />
//<br />
// $Id$<br />
//<br />
<br />
define('AREA', 'C');<br />
define('AREA_NAME', 'customer');<br />
define('WP_USE_THEMES', true);<br />
<br />
require dirname(__FILE__) . '/prepare.php';<br />
require dirname(__FILE__) . '/init.php';<br />
require('./blog/wp-blog-header.php');<br />
<br />
define('INDEX_SCRIPT',  Registry::get('config.customer_index'));<br />
<br />
fn_dispatch();<br />
<br />
?>
```<br />
<br />
Note the code inserted here is:<br />
```php
define('WP_USE_THEMES', true);<br />
require('./blog/wp-blog-header.php');<br />

```<br />
<br />
This is how I linked Interspire cart with WordPress and therefore assume it shall be the same for CS-Cart.<br />
<br />
You should now be able to create a block with the relevent WordPress code within that block. Note raw PHP will be stripped out of the HTML Editor ("WYSIWYG Editor"), I am unsure if the wysiwyg editor in CS-Cart has been coded to benefit [RAW] tags which will allow you to get around the character stripping issue.<br />
<br />
<br />
Good luck! <img src="upload://yGrKuhdxbbf2nIFvV2XDJuEFQb7.gif" class="bbc_emoticon" alt=":)">

A guess… Couldn't you use an HTML block and simply put an iFrame in it that went to the wordpress blog? Uusally people link their cart from wordpress rather than having wordpress be included in the cart.



I.e. discuss a product in wordpress and then have a link that will add the product to their cart and take them to checkout.

Although still requiring under development, this currently hidden page is my example of inserting phpBB within a page in cs-cart,

http://wireless-broadband-speed.com.au/blog-wireless-broadband-forums.html



As suggested, I used iframes, in our “Discussion Forums” Page.

```php