Woocommerce Online Store Management by LocalHost Woo sync ... · stores with a product number of...
Transcript of Woocommerce Online Store Management by LocalHost Woo sync ... · stores with a product number of...
Woocommerce Online Store Management by LocalHost
Woo sync guide v0.1
Contents
Installation
Installation .................................................................................................................... 1
Settings
Plugin Settings Page ....................................................................................................... 4
woo sync target ...................................................................................................... 7
FTP Settings .................................................................................................................... 8
Internal Server Error On Wamp ............................................................................................ 9
Download Products
Download Tab ............................................................................................................... 10
Publish List
Publish Tab .................................................................................................................. 12
Contents ⏫ 1
Installation:
In order to set up this plugin, first, set up a localhost on your personal computer and install the
WordPress on it. Use one of the WAMP or XAMPP software and consequently, install the
WordPress on it. The complete installation tutorial of both software is provided below:
XAMPP and WordPress Installation Tutorial
WAMP and WordPress Installation Tutorial
After installing the localhost completely and performing the necessary settings, enter into the
WordPress Dashboard(LocalHost) and install the Woocommerce Plugin from the Plugins section.
Read this tutorial if you are not familiar with how to install the WordPress Plugin.
Then, install the woo sync plugin in 1-Plugins folder that you have already purchased.
Contents ⏫ 2
Contents ⏫ 3
After installing and activating the plugin, a new menu is added to the menus in the WordPress
Dashboard.
Now, click on the new menu (woo Synchronizer) to access the plugin setting.
Contents ⏫ 4
Settings :
1. Target Store URL: Enter your store address in this section. Make sure to enter the store address
as the following example and avoid placing / at the end of the address:
https://example.com
2. Target Store Consumer Key; and
3. Target Store Consumer Secret: go to the following path in your online store to get a consumer
key and Secret:
Contents ⏫ 5
WooCommerce > Settings > Advanced > REST API
Click on Create API Key or Add Key:
Contents ⏫ 6
A. Description: Choose an optional name for API
B. User: Select the site admin as an API user.
C. Permissions: Set this section on reading and writing mode.
D. Click on Generate API Key option.
As you can see, the consumer key and secret are created in this section. Now, just copy the
consumer key in the “Target Store Consumer Key” field in the woo sync settings and the consumer
secret in the “Target Store Consumer Secret” field in the plugin settings. Then, click on the “Test
REST API Connection” option.
If all the settings are entered correctly, after clicking on the test connection, the message of “The
connection to the target store is established.” will be displayed. Otherwise, if the connection is not
established, the description related to resolving possible problems in the program will be displayed
to fix the problem.
6. *Woo Sync Target* Access Code: The "woo sync target" is a complementary plugin installed
on the target site. However, what is the use of this plugin and does it need to be installed?
Woo sync target
Contents ⏫ 7
Woo Sync Target
If you have only one admin who edits or adds products to the site and you want to apply all changes
to the products, categories, attributes, and tags by the localhost hereafter, there is no need to install
the woo sync target plugin. However, if you are working on your site products by a few admins,
make sure to install this plugin to save time.
Why?
When you download the products in your store into the localhost, it is very important that you
receive the latest changes to your store after complete downloading; in fact, any change occurred
in your online store will also apply to the local host. For this purpose, after the products have been
downloaded completely, an update option appears in the product download section and you can
always update the store’s information by clicking this option. Nevertheless, the problem is that
this update will be very time-consuming because the program must request to receive all data from
your site and check which data is available and which is unavailable. This issue will take times for
stores with a product number of over 1000 products. As a result, if you install the woo sync target
plugin on your online store, the last changes on your store are saved and you can update your local
products in a few minutes in the "Update before Publish" section in the localhost Publish list.
Woo sync target has no specific settings, the installing of which on your online store gives you an
access code; you just need to enter your access code in the “*woo sync target* access code” field
available in the “woo sync” setting page.
Contents ⏫ 8
immediate change options :
7. Products : If you enable this option, any changes to the product or the creation and removal of
the product will be applied immediately to your target store.
8. Categories : If you enable this option, any changes to the categories or the creation and removal
of categories will be applied immediately to your target store.
9. Tags : If you enable this option, any changes to the Tags or the creation and removal of Tags
will be applied immediately to your target store.
10. Attributes : If you enable this option, any changes to the attributes or the creation and removal
of attributes will be applied immediately to your target store.
11. Local Host: This plugin can be used on both the localhost and the server. Enable this option if
you are working on localhost. If this option is enabled, the following options will appear:
ftp
Contents ⏫ 9
FTP Settings
A. FTP Port: In most cases, this port is equal to 21; if the hosting or server administrator of
your store changes your server setting, enter the new value in this field. Otherwise, put the
value of 21 in this field.
B. FTP Username: The username of your server ftp account.
C. FTP Password: The password of your server ftp account.
D. Then, click on the “test FTP connection”. If the settings are correct, the message of
“connection was successful” will be displayed. Otherwise, the FTP information is
undoubtedly incorrect; ask your hosting or server administrator to provide FTP
information.
Contents ⏫ 10
Internal server error
Note: In the case of using WAMP, if you click on the Connection Test option and encountered an
Internal Server Error, the FTP settings in php.ini are unlikely not set.
To this end, go to the WAMP path (for example, if WAMP is installed on drive C):
C:\wamp64\bin\php\php7.2.10\php.ini
and search extension=ftp. As you can see, there is a semicolon at the beginning of the expression:
;extension=ftp → extension=ftp
Delete the semicolon and save the file.
Now you have to go to another path where a shortcut of the php.ini file is available and edit that
file like this one.
Go to the path:
c:\wamp64\bin\apache\apache2.4.35\bin\php.ini
and repeat changes you made in the previous step at this point. Then, save the file
Close the WAMP program once and run it again.
Then, log into the plugin and retry the FTP connection test.
Click on the Save Changes button after entering the above values. The plugin is now fully enabled
and you can start downloading your store products.
Contents ⏫ 11
Download products
This section enables you to download all your store products. Just click the “Download Products
of target store” button.
All program reactions to download and creation functions will be shown visually and when the
download finishes, the message of “All Down!” will be displayed. Please wait until the download
is completed.
Important points:
Depending on the speed of the Internet, as well as the power and speed of your system, the
download time may be fast or slow. In the download process, if the Internet connection is
disconnected, the app automatically checks your network status every 5 seconds, and if the
connection is reconnected, the download process continues.
Contents ⏫ 12
If you have to shut down your system in the middle of the Create Products process, you can close
the download page without any problems. The download process stops with the page closing or
refreshing, but when you re-enter this section, a new option called “Continue” appears that you
can continue to process from where you stopped Creating.
After downloading all the products, instead of the *Download Products of target store* button, the
following options will appear:
Option 1. Clear download history: By pressing this key, all downloaded data will be deleted and
the download process will start from begining. Using this option will empty the download history
of plugin and will not delete products. Use this option only when you have cleared all the products
and you want to re-download your site products.
Option 2. Update: To update the latest changes to the target store products
Option 3. Continue: If some database information is not created in the local host due to an error,
or if you stopped the creation process, this option will appear and is responsible for continuing the
process of Create Product.
Contents ⏫ 13
Publish list
If you are working offline on localhost products, all changes to products, categories, tags, and
attributes will be listed in this section. Obviously, if you enable the option related to the immediate
changes of products, categories, tags, and attributes, each of which with the immediate changes
checkmark will not be listed in the release list in the case of any change on that section and will
be immediately applied to the target store.
All changes are saved in your Publish list and you can apply the new changes to the target site by
clicking the cancel option of products in the list.
If you enable the woo sync target plugin on the target site and put the access code in the woo sync
settings, two options of “update latest changes” and “Clear latest changes log” appear above the
release list. Previously, the function of the Update option was explained in the Settings section.
However, what is the “Clear latest changes log” option?
Contents ⏫ 14
When the number of changes made to the target site is too high, the update will be long. Thus,
whenever you click on the update and get the latest changes to your online store, click on the
“Clear latest changes log” option to empty the last changes list, in order to accelerate the update
process in the next times.
Note: If you have installed the woo sync target, make sure to click on the update option whenever
you want to Punlish the items in the list, in order to avoid interrupting the order of the store changes
with the localhost.
IMPORTANT NOTE: It is highly recommended that you check the list before clicking the option
of release items in the list so that you do not delete or add a product by mistake.