Difference between revisions of "X-Cart:Blog system in X-Cart 4"
m (→Overview) |
m |
||
Line 1: | Line 1: | ||
==Overview== | ==Overview== | ||
− | WordPress in X-Cart is a product that extends your X-Cart store with a fully functional blog using the most popular blogging software in the world | + | WordPress in X-Cart is a product that extends your X-Cart store with a fully functional blog using the most popular blogging software in the world. |
− | + | The add-on module allows you to add WordPress features to your existing X-Cart store. | |
− | |||
− | The add-on module allows you to add WordPress features to your existing X-Cart store | ||
− | == | + | ==System requirements== |
− | To install the | + | To be able to successfully install and use the WordPress in X-Cart module, you need a working copy of X-Cart version 4.5.0 or later installed on your server. Make sure that the version of the module is the same as the version of the installed copy of X-Cart. |
− | # Download the distribution package from the File Area section of your {{QA}}. The file | + | {{Note1|Note: If you do not remember the version of the installed copy of X-Cart, you can find it in the <u>Environment info</u> section of the [[X-Cart:Summary_Page |Summary]] page in X-Cart Admin area.}} |
− | # | + | |
− | # Select the directory where you want to install WordPress. Enter the directory name or leave the default value "'''blog'''".<br />[[File: | + | ==Installation== |
− | # After the package has been downloaded, | + | To install the module: |
− | # The WordPress page will be opened in a new tab:<br />[[File:Wp_xc_06.png|border|640px]]<br />On this page you should specify the MySQL details of your WordPress database.<br />{{Note1|'''Note''': For increased security, it is recommended to create a separate MySQL <u>user</u> and MySQL <u>database</u> for your WordPress | + | # Download the distribution package from the File Area section of your {{QA}}. The distribution package is archived in the file '''wordpress-in-xcart-x.y.z.tgz''', where '''x''', '''y''' and '''z''' are the module version numbers. Make sure the version of the module matches the version of your installed copy of X-Cart.<br /><br /> |
+ | # Copy the distribution package to the X-Cart root directory on your server or hosting account. | ||
+ | #* If you are using a Windows-based server, or a UNIX-based server without terminal access: | ||
+ | #: a) Extract the contents of the archive with the WordPress in X-Cart add-on module files to a directory on your system using your favorite compression program (WinZIP or any other archiver that supports TAR files). | ||
+ | #: b) Use an FTP client to upload all the files extracted from the archive (retaining the directory structure) to the X-Cart root directory on your server or your hosting account. | ||
+ | #* If you are using a UNIX-based server with terminal access: | ||
+ | #: a) Use an FTP client to upload the archive with the WordPress in X-Cart add-on module distribution package to the X-Cart root directory on your server or your hosting account. | ||
+ | #: b) Decompress the package using the following command: | ||
+ | #: <pre>tar -xzvf wordpress-in-xcart-x.y.z.tgz</pre> | ||
+ | #: (Replace <u>x</u>, <u>y</u> and <u>z</u> with the actual version numbers). | ||
+ | # In a web browser, run the installation script http://www.example.com/install-wordpress-in-xcart.php replacing the "www.example.com" with the actual domain name of your X-Cart store. This will start the installation wizard. | ||
+ | # Carefully read the License agreement, enter the [[X-Cart:FAQs#What_is_Auth_code_and_where_can_I_find_it.3F|Auth code]] for your X-Cart installation into the Auth code field and select the "I accept the License Agreement" check box. | ||
+ | # Click '''Next''' to continue. The installation process will start. The installer will make the necessary changes to your X-Cart installation, and the module will be activated. | ||
+ | # Once the process is completed, click '''Next'''. This will open the next screen where you will be asked whether you wish a new system fingerprint to be generated. | ||
+ | # Make your selection (Yes/No) and click '''Next'''. If you have chosen to generate a new system fingerprint, it will be generated. The process of generating a system fingerprint may take up as long as a few minutes. Once the generation process is completed, click '''Next'''. If you have chosen to skip the generation of a system fingerprint, you will be taken to the next step. | ||
+ | # If you yet have to install WordPress, skip to next step. If you have WordPress already installed, enter the name of the directory where it is installed.<br />[[File:Wp_xc_select_dir.png|640px|border]]<br />Click '''Next'''. The installation script checks if WordPress exists in the directory you have specified and, if it is there, displays a confirmation message like the following:<br />[[File:Wp_xc_conf_msg.png|640px|border]]<br />Click '''Next''' to use the existing WordPress and complete the installation. Skip to the configuring the WordPress step. | ||
+ | # Select the directory where you want to install WordPress. Enter the directory name or leave the default value "'''blog'''".<br />[[File:Wp_xc_select_dir.png|640px|border]]<br />Click the '''Next''' button.<br /><br />The installation script creates the directory and downloads WordPress package.<br/>[[File:Wp_xc_03.png|border|640px]]<br />{{Note1|'''Note''': This process may take 1-2 minutes.}} | ||
+ | # After the package has been downloaded, a confirmation message like the following is displayed:<br />[[File:Wp_xc_04.png|border|640px]]<br />Click '''Next''' to continue.<br /><br />The installation script unpacks the WordPress files. After the process is completed, the link to the <u>WordPress installation script</u> will be displayed:<br/>[[File:Wp_xc_05.png|border|640px]]<br />Click on the link that looks like this: '''httр://<<i>domain</i>>/<<i>directory</i>>/wp-admin/setup-config.php'''.<br /><br /> | ||
+ | # The WordPress page will be opened in a new tab:<br />[[File:Wp_xc_06.png|border|640px]]<br />On this page you should specify the MySQL details of your WordPress database.<br />{{Note1|'''Note''': For increased security, it is recommended to create a separate MySQL <u>user</u> and MySQL <u>database</u> for your WordPress.}}<br />Click '''Submit''' to continue.<br /><br /> | ||
# WordPress creates the '''wp-config.php''' file and writes the MySQL details into it. The confirmation message will be displayed as shown below:<br />[[File:Wp_xc_07.png|border|640px]]<br />Click '''Run the install''' to continue.<br/><br />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:<br />[[File:Wp_xc_08.png|border|640px]]<br /><br /> | # WordPress creates the '''wp-config.php''' file and writes the MySQL details into it. The confirmation message will be displayed as shown below:<br />[[File:Wp_xc_07.png|border|640px]]<br />Click '''Run the install''' to continue.<br/><br />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:<br />[[File:Wp_xc_08.png|border|640px]]<br /><br /> | ||
# On the next page you should enter the ''title'' of your blog, the ''e-mail'' and ''password'' of your WordPress admin user:<br />[[File:Wp_xc_09.png|border|640px]]<br />Click the '''Install WordPress''' button.<br /><br /> | # On the next page you should enter the ''title'' of your blog, the ''e-mail'' and ''password'' of your WordPress admin user:<br />[[File:Wp_xc_09.png|border|640px]]<br />Click the '''Install WordPress''' button.<br /><br /> | ||
Line 32: | Line 48: | ||
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: | 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: | ||
:[[File:Wp_xc_13.png|border|640px]] | :[[File:Wp_xc_13.png|border|640px]] | ||
+ | |||
+ | ==Uninstallation== | ||
+ | Uninstallation permanently removes all the data related to the WordPress in X-Cart add-on module from your store. | ||
+ | |||
+ | To uninstall the module: | ||
+ | # In a web browser, run the installation script http://www.example.com/install-wordpress-in-xcart.php replacing the "www.example.com" with the actual domain name of your X-Cart store. This will start the installation wizard. | ||
+ | # At the first step of the uninstall process, select "Uninstall the module", enter the [[X-Cart:FAQs#What_is_Auth_code_and_where_can_I_find_it.3F|Auth code]] for your X-Cart installation into the Auth code field and select the "I accept the License Agreement" check box. | ||
+ | # Click '''Next''' to continue. The uninstallation process will start. | ||
+ | # Once the installation script has removed the WordPress in X-Cart module files and deactivated the module, click '''Next''' to complete the uninstallation. | ||
+ | # Edit the '''.htaccess''' file in the X-Cart directory and remove the following lines from it: | ||
+ | <pre> | ||
+ | # 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 ]]] | ||
+ | </pre> | ||
+ | |||
+ | In the WordPress admin area, do the following: | ||
+ | # Open the <u>Appearance</u> > <u>Themes page</u>. Choose one of the available themes and click on the <u>Activate</u> link next to it. Find the '''''Twenty Eleven for X-Cart''''' theme, click on the <u>Theme Details</u> link and then click on the <u>Delete</u> link. | ||
+ | # Open the <u>Plugins</u> page. In the list of plugins find the '''''Integration with X-Cart''''' item, click on the <u>Deactivate</u> link next to it and then click on the <u>Delete</u> link next to it. |
Revision as of 14:39, 12 March 2014
Overview
WordPress in X-Cart is a product that extends your X-Cart store with a fully functional blog using the most popular blogging software in the world. The add-on module allows you to add WordPress features to your existing X-Cart store.
System requirements
To be able to successfully install and use the WordPress in X-Cart module, you need a working copy of X-Cart version 4.5.0 or later installed on your server. Make sure that the version of the module is the same as the version of the installed copy of X-Cart.
Installation
To install the module:
- Download the distribution package from the File Area section of your X-Cart Account. The distribution package is archived in the file wordpress-in-xcart-x.y.z.tgz, where x, y and z are the module version numbers. Make sure the version of the module matches the version of your installed copy of X-Cart.
- Copy the distribution package to the X-Cart root directory on your server or hosting account.
- If you are using a Windows-based server, or a UNIX-based server without terminal access:
- a) Extract the contents of the archive with the WordPress in X-Cart add-on module files to a directory on your system using your favorite compression program (WinZIP or any other archiver that supports TAR files).
- b) Use an FTP client to upload all the files extracted from the archive (retaining the directory structure) to the X-Cart root directory on your server or your hosting account.
- If you are using a UNIX-based server with terminal access:
- a) Use an FTP client to upload the archive with the WordPress in X-Cart add-on module distribution package to the X-Cart root directory on your server or your hosting account.
- b) Decompress the package using the following command:
tar -xzvf wordpress-in-xcart-x.y.z.tgz
- (Replace x, y and z with the actual version numbers).
- In a web browser, run the installation script http://www.example.com/install-wordpress-in-xcart.php replacing the "www.example.com" with the actual domain name of your X-Cart store. This will start the installation wizard.
- Carefully read the License agreement, enter the Auth code for your X-Cart installation into the Auth code field and select the "I accept the License Agreement" check box.
- Click Next to continue. The installation process will start. The installer will make the necessary changes to your X-Cart installation, and the module will be activated.
- Once the process is completed, click Next. This will open the next screen where you will be asked whether you wish a new system fingerprint to be generated.
- Make your selection (Yes/No) and click Next. If you have chosen to generate a new system fingerprint, it will be generated. The process of generating a system fingerprint may take up as long as a few minutes. Once the generation process is completed, click Next. If you have chosen to skip the generation of a system fingerprint, you will be taken to the next step.
- If you yet have to install WordPress, skip to next step. If you have WordPress already installed, enter the name of the directory where it is installed.
Click Next. The installation script checks if WordPress exists in the directory you have specified and, if it is there, displays a confirmation message like the following:
Click Next to use the existing WordPress and complete the installation. Skip to the configuring the WordPress step. - Select the directory where you want to install WordPress. Enter the directory name or leave the default value "blog".
Click the Next button.
The installation script creates the directory and downloads WordPress package.Note: This process may take 1-2 minutes. - After the package has been downloaded, a confirmation message like the following is displayed:
Click Next to continue.
The installation script unpacks the WordPress files. After the process is completed, the link to the WordPress installation script will be displayed:
Click on the link that looks like this: httр://<domain>/<directory>/wp-admin/setup-config.php. - The WordPress page will be opened in a new tab:
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.
Click Submit to continue. - WordPress creates the wp-config.php file and writes the MySQL details into it. The confirmation message will be displayed as shown below:
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: - On the next page you should enter the title of your blog, the e-mail and password of your WordPress admin user:
Click the Install WordPress button. - 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:
- 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:
- Open the Plugins section, find the Integration with X-Cart plugin and click on the Activate link under it:
- 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 following 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:
# 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:
Uninstallation
Uninstallation permanently removes all the data related to the WordPress in X-Cart add-on module from your store.
To uninstall the module:
- In a web browser, run the installation script http://www.example.com/install-wordpress-in-xcart.php replacing the "www.example.com" with the actual domain name of your X-Cart store. This will start the installation wizard.
- At the first step of the uninstall process, select "Uninstall the module", enter the Auth code for your X-Cart installation into the Auth code field and select the "I accept the License Agreement" check box.
- Click Next to continue. The uninstallation process will start.
- Once the installation script has removed the WordPress in X-Cart module files and deactivated the module, click Next to complete the uninstallation.
- Edit the .htaccess file in the X-Cart directory and remove the following lines from it:
# 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 ]]]
In the WordPress admin area, do the following:
- Open the Appearance > Themes page. Choose one of the available themes and click on the Activate link next to it. Find the Twenty Eleven for X-Cart theme, click on the Theme Details link and then click on the Delete link.
- Open the Plugins page. In the list of plugins find the Integration with X-Cart item, click on the Deactivate link next to it and then click on the Delete link next to it.