|
Size: 1900
Comment:
|
Size: 3031
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| [[https://github.com/UCF/WP-Allowed-Hosts]] | https://github.com/UCF/WP-Allowed-Hosts |
| Line 11: | Line 11: |
| coaad->page 2->"Online Store" set to 'W' stand for woocommerce. | * coaad->page 2->"Online Store" set to 'W' stand for woocommerce. ignore all the other webshop related option in the same page its not needed in woocommerce * gencont->E-Commerce->"Location for webshop 1" set to the location that interface with woocommerce. * smaad->add a sales person then put it in brctrl->webshop location 1->online->"Online Store Salesperson" * draad->add a customer then put it in brctrl->webshop location 1->online->"Default Online Store Customer" * also fill in the "Online Transaction are orders of sales" and "Till number for online store payment" option in the same page. * put the woocommerce url with out any tailling '/' in to brctrl->webshop location 1->online->"Online Store Data source" * note that "Online Store URL" is not needed for woocmmerce but you can saftly copy it from "Online Store Data source" * "Online Image URL" is needed , it shoule be a URL allow read of child files from woocommerce site that link to $CCDIR/(comp_code)/images/ * igrore "Online Store login name" and "Online Store login password" as they are not needed for woocommerce for detail see nest section * enter a " number of second before time out " if needed. * Magento related options on the same page can be ignored. |
| Line 13: | Line 23: |
| gencont->E-Commerce->"Location for webshop 1" set to the location that interface with woocommerce. smaad->add a sales person then put it in braad->webshop location 1->online->"Online Store Salesperson" draad->add a customer then put it in braad->webhsop location 1->online->"Default Online Store Customer" also fill in the "Online Transaction are orders of sales" and "Till number for online store payment" option in the same page. Magento related options on the same page can be ignored. 1, add woocommerce api key to grand control access. |
2, add woocommerce api key to grand control access. |
| Line 41: | Line 41: |
| 2, expose images direcotry to woocomerce. | = 3, Dumping Data. = making sure online id on different master is clean |
| Line 43: | Line 44: |
| woocomerce greb image from url specified in its call, so a external link expose all the images from control is needed. | clean debtor online_id drcidrep clean cat onine_id catrep->E (note left the "set show online" field blank it will not touch it on the stock record) copy a clean dblog.dat to company run {{{ fdb2log -c37 -a23 -a22 -a47 }}} 37 is for stcont 23 is for branch 22 for colour and 47 for size. woocommerce api allow update colour size and taxs informations then run {{{ fdb2log -Bbrcode -a8 -a9 }}} then run {{{ log2woocomm -C }}} note that -C is important it mean creating a new shop. after that the online shop should be populated. |
| Line 47: | Line 70: |
| = 3, Dumping Data. = |
1, Installation.
install a blank woocommerce site.
depending on network , may need to install the following plugin to enable woocommerce to pull images from control.
https://github.com/UCF/WP-Allowed-Hosts
2, Configuration.
1, setup control to use woocommerce
coaad->page 2->"Online Store" set to 'W' stand for woocommerce. ignore all the other webshop related option in the same page its not needed in woocommerce
gencont->E-Commerce->"Location for webshop 1" set to the location that interface with woocommerce.
smaad->add a sales person then put it in brctrl->webshop location 1->online->"Online Store Salesperson"
draad->add a customer then put it in brctrl->webshop location 1->online->"Default Online Store Customer"
- also fill in the "Online Transaction are orders of sales" and "Till number for online store payment" option in the same page.
put the woocommerce url with out any tailling '/' in to brctrl->webshop location 1->online->"Online Store Data source"
- note that "Online Store URL" is not needed for woocmmerce but you can saftly copy it from "Online Store Data source"
- "Online Image URL" is needed , it shoule be a URL allow read of child files from woocommerce site that link to $CCDIR/(comp_code)/images/
- igrore "Online Store login name" and "Online Store login password" as they are not needed for woocommerce for detail see nest section
- enter a " number of second before time out " if needed.
- Magento related options on the same page can be ignored.
2, add woocommerce api key to grand control access.
- first login to woocommerce site as admin then click the left hand side menu
woocommerce->setting
- then click the
Advanced -> REST API
- then click the "Add Key" button.
- set the permission to Read/Write
- then click the "Generate API Key" button it will bring you to a "Key Details" page.
- open a file in $CCDIR/(company code)/woocomtoken/(branch code).token
- copy the the "Customer key" field from the "Key Details" page into the token file.
- then add a ':' after the customer key
- after that copy the "Customer secret" field from the "Key Details" page into the token file after the ':'
- so the whole file look like the following
- customer_key:customer_secret
- note that there are not end of line char.
- save the file.
3, Dumping Data.
making sure online id on different master is clean
clean debtor online_id drcidrep
clean cat onine_id catrep->E (note left the "set show online" field blank it will not touch it on the stock record)
copy a clean dblog.dat to company
run
fdb2log -c37 -a23 -a22 -a47
37 is for stcont 23 is for branch 22 for colour and 47 for size. woocommerce api allow update colour size and taxs informations
then run
fdb2log -Bbrcode -a8 -a9
then run
log2woocomm -C
note that -C is important it mean creating a new shop. after that the online shop should be populated.
