こちらにとてもわかりやすいガイドがあります。
感謝です。
http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/
04NOV2008 additional info
The contribution above is great but I had changed as below.
To do this,
1.I followed the instructions in the tutorial, but used the code from blog.php in the index.php in the blog's main directory.
And I didn't do anything in application_top.php
2. In index.php, above
require('includes/application_top.php');
add
chdir('../../public_html/');
// turn off WordPress themes and include the WordPress core:
define('WP_USE_THEMES', false);
require('./blog/wp-blog-header.php');
3. In WordPress admin, I set Options > General > Blog address (URI) to “http://www.sample.com/blog/”
This thread helped me a lot.
http://wordpress.org/support/topic/47148
Before I found this solution, my blog was http://www.sample.com/blog.php. But I had got 2 problems in my site since I set it up.
I am using Ship in Cart and Worldpay 4.0 - V1.0 but they started working strange.
Ship in cart started not showing shipping cost in basket and worldpay payment transaction started not turning back the result to my site.
I had been wondering why and found additional sentence for blog in application_top.php had caused the problem.
So I needed a solution to integrate wordpress and osCommerce without editing application_top.php.
感謝です。
http://michaelwender.com/2006/10/06/embedding-wordpress-into-os-commerce-part-ii/
04NOV2008 additional info
The contribution above is great but I had changed as below.
To do this,
1.I followed the instructions in the tutorial, but used the code from blog.php in the index.php in the blog's main directory.
And I didn't do anything in application_top.php
2. In index.php, above
require('includes/application_top.php');
add
chdir('../../public_html/');
// turn off WordPress themes and include the WordPress core:
define('WP_USE_THEMES', false);
require('./blog/wp-blog-header.php');
3. In WordPress admin, I set Options > General > Blog address (URI) to “http://www.sample.com/blog/”
This thread helped me a lot.
http://wordpress.org/support/topic/47148
Before I found this solution, my blog was http://www.sample.com/blog.php. But I had got 2 problems in my site since I set it up.
I am using Ship in Cart and Worldpay 4.0 - V1.0 but they started working strange.
Ship in cart started not showing shipping cost in basket and worldpay payment transaction started not turning back the result to my site.
I had been wondering why and found additional sentence for blog in application_top.php had caused the problem.
So I needed a solution to integrate wordpress and osCommerce without editing application_top.php.