Differences between revisions 3 and 4
Revision 3 as of 2018-08-01 02:05:18
Size: 2995
Editor: sam
Comment:
Revision 4 as of 2018-08-01 03:55:55
Size: 3031
Editor: sam
Comment:
Deletions are marked like this. Additions are marked like this.
Line 50: Line 50:
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 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
Line 52: Line 56:
then run 'fdb2log -Bbrcode -a8 -a9' then run
{{{
fdb2log -Bbrcode -a8 -a9
}}}
Line 54: Line 61:
then run log2woocomm -C note that -C is important it mean creating a new shop. after that the online shop shoule be populated.
then run
{{{
log2woocomm -C
}}}

note that -C is important it mean creating a new shop. after that the online shop should be populated.

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.

4, Receiving Orders.

woocommerce (last edited 2018-10-04 00:24:02 by fuzzy)