X-Cart:Blog system in X-Cart 4

From X-Cart 4 Classic
Revision as of 18:15, 16 October 2013 by Dohtur (talk | contribs) (Created page with '==How to install WordPress in X-Cart== # Download the distribution package from the File Area section of your {{QA}}. The file you need is named like <u>x-cart-wordpress-x.y.z<i…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to install WordPress in X-Cart

  1. Download the distribution package from the File Area section of your X-Cart Account. The file you need is named like x-cart-wordpress-x.y.zedition.tgz, where x, y and z are X-Cart version numbers and the edition portion of the filename is gold for the GOLD edition or goldplus for the GOLD PLUS edition. For example, if you need X-Cart v4.5.5 GOLD edition with WordPress, choose the file x-cart-wordpress-4.5.5gold.tgz.
  2. Unpack and install it as described in the manual at Installing X-Cart Using the Installation Wizard. When the X-Cart installation is complete, you will see this page:
    width="640"
    Click the Next button to proceed to WordPress installation.
  3. Select the directory where you want to install WordPress. Enter the directory name or leave the default value "blog".
    width="640"
    Click the Next button.
    The installation script creates the directory and downloads WordPress package.
    width="640"
    Note: This process may take 1-2 minutes.

    Note: If the directory cannot be created automatically, the error message will be displayed. In this case you can create it manually and reload the page in your browser to continue.
    width="640"
  4. After the package has been downloaded, the confirmation message is displayed:
    width="640"
    Click the Next button to continue.
    The installation script unpacks the WordPress files. After the process is completed, the link to the WordPress installation script will be displayed:
    width="640"
    Click on the link that looks like this: httр://<domain>/<directory>/wp-admin/setup-config.php.
  5. The WordPress page will be opened in a new tab:
    width="640"
    On this page you should specify the MySQL details of your WordPress database.
    Note: For increased security, it is recommended to create a separate MySQL user and MySQL database for your WordPress.

    Note: Do not use the same MySQL user for the two separate databases of your X-Cart and WordPress, because it will cause the database error "table doesn't exist". To resolve this issue, you can append a port number or socket to the MySQL host in the WordPress so that the host name differs from the one in your X-Cart by at least one character.

    Click the Submit button to continue.
  6. WordPress creates the wp-config.php file and writes the MySQL details into it. The confirmation message will be displayed as shown below:
    width="640"
    Click Run the install to continue.
    If the wp-config.php file cannot be created automatically, you should create it manually in the directory of your WordPress and paste the content from the textarea into it:
    width="640"
  7. On the next page you should enter the title of your blog, the e-mail and password of your WordPress admin user:
    width="640"
    Click the Install WordPress button.
  8. On the Success page click the Log In button to login to the WordPress admin area with the username and password entered on the previous page:
    width="640"
  9. In the WordPress admin area, open the Appearance > Themes section, find the Twenty Eleven for X-Cart theme and click on the Activate link under it:
<img class="thumbborder" src="wp_xc_11.png" width="640" alt="" />

Open the Plugins section, find the Integration with X-Cart plugin and click on the Activate link under it:

<img class="thumbborder" src="wp_xc_12.png" width="640" alt="" />
  • In the X-Cart admin area open the Tools > Maintenance page, find the Clear templates/X-Cart cache section and click the Clear button.
  • If the .htaccess file cannot be updated automatically, the warning message will be displayed by the installation script. You should copy the lines from this message, edit the .htaccess file in your X-Cart directory and insert the lines before the Clean URLs section:
    <img class="thumbborder" src="wp_xc_error_02.png" width="640" alt="" />
    # WordPress in X-Cart [[[
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^blog/index.php blog.php [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^blog/(.*) blog.php [L]
    </IfModule>
    # /WordPress in X-Cart ]]]
    

  • Visit your blog page to make sure it is displayed correctly. For example, if the "Ideal Comfort" skin is used in your X-Cart, the blog should look like this:
    <img class="thumbborder" src="wp_xc_13.png" width="640" alt="" />