shopify developer account https://accounts.shopify.com/login kafu@creativecomputing.com.au c0ntr6l

demo phone shopify demo store https://crecomphone.myshopify.com/admin kafu@creativecomputing.com.au c0ntr6l

Step to setup shopify.

1, login to the developer account. click the shopify partner link and login with ths same account as the developer account.

2, choose the store link in the left hand side then click add store.

3, after created the store in the shopify store's backend -> app and sales channel ->develop app->create an app->api credentials->generate the admin api access token->grand all the scope.

4, save the generated access token in CCDIR/shopifytoken/branchcode.token in the following form

5, put the store domain on the branch online store datasource field. if not wroking, try to find a tab called domain in the shopify setting and look at anyother domain in it, there maybe redirection domain try using that

6, expost the images and shopifyorder.cgi to outside world

if on sam create a dir under company directory, inside the shop dir it should have shopifyorder.cgi and images direcotry in it to exposted to the outside world , link the shop dir to /var/html/www/shopifytest/shopname then it will have a outside accessable url as https://shopify.creativecomputing.com.au/shopname/images and https://shopify.creativecomputing.com.au/shopname/shopifyorder.cgi

7, save the image directory to braad online image url

8, setup the first online location on gencont

9, set up braad online sales person and online customer

10, set up drcont next customer number so integration can create customer

11, run sturep and catrep to clear all online id.

12,set the one want to be online to yes.

13, check the tax setting on shopify and config gencont to match

14a,coaad need to set company to dump to dblog

14b,fdb2log -B onlinelocation -a8 -a9 , then log2webshop// on dump after the tax setting as it will affect every item

15, in the store backend ->online store navigation ->setup main menu to include all the category, this step can only be done manually

16, setup webhook so control will receive order when is done online.

a, create a terminal conset it to the online company and online branch

b, there is a file /u/ccr.16/std/shopify/samplewebhook , make a copy of it, and change the address to the shopifyorder.cgi that get exposted to the world. append the ?TERMINALcode to the address.

c, there is a file /u/ccr.16/std/shopify/registerwebhook, run it as follow

registerwebhook <tokenfile> <store domain> <samplewebhook>

e.g. registerwebhook /u/ccr.16/PHONDEMO/shopifytoken/SYDNEY.token crecomphone.myshopify.com samplewebhook

*note that if something appear missing from the above, make sure you are using a recent browser under windows. menu items can potentially not show up under linux/mac

Starting and stopping log2webshop:

Old environment:

initctl stop dumpodbc
initctl start dumpodbc

New environment:

systemctl stop dumpodbc
systemctl start dumpodbc

On either environment:

the script called by the above is in $CCDIR/binl/incremental_magento

This file would call log2webshop (and other log2* programs, such as magento and sql mirror log2odbc)

shopify (last edited 2025-03-06 03:04:03 by KafuWong)