– Was made for internal Use. Starts Pricelist sync to Fortnox on the main shops server. Waits for 30 minutes for each pricelist to finish. NOTE: Add airtableToken & main server authorizationLink to make it work. (async function() { var localMode = typeof addEventListener === “undefined” && typeof input === “undefined” ? true : false; …
Tag: airtable
update-currency-rates (Airtable)
Finds pricelists on Airtable on all bases by checking 2 tables: Pricelist & (*). (*) tables contains all the currency rates in this format: (Please note that SEK is master currency) Code. Rate —- —- SEK 1.0000000 USD 0.0972745 AED 0.3572467 AFN 8.4328730 ALL 10.0878786 AMD 37.8046774 ANG 0.1755555 AOA 49.2695078 ARS 20.5039556 AUD 0.1440093 …
import-from-woocommerce-to-fortnox-cron-v1
v1.js
Cron to perform multiple imports from woocommerce to fortnox. Imports orders to fortox.
Should be run with command line arguments.
Example:node import-from-woocommerce-to-fortnox-cron-v1.js \
conf-airtable-base-name= \
conf-airtable-table-name= \
conf-airtable-view-name= \
conf-airtable-api-key= \
conf-airtable-table-key= \
conf-airtable-key-name= \
conf-airtable-key-value= \
type=order \
fn-api-url= \
fn-client-secret= \
fn-access-token= \
optional:console-key=my-console-key
console-prefix=import-from-woocommerce-to-fortnox-v1
Check also: https://console.ylo.one/
Airtable configuration schema table example: https://airtable.com/shrOSB0DFqir5c46L/tblL26Ms8WZWh6Uh0
Help: Coming soon! 😀
An app bundled by ac-bundle-app, published by ac-bundle-module. namespace: import-from-woocommerce-to-fortnox-cron
Available Methods: start, startUps, workerStartUps, callbacks, api, build, cron, parseArgv, console, exit, consoleColors, camelCase, properCase, workers, enhance, publish, utils, has
ac-apps-minimal-utils-airtable
utils/airtable.js
Utilities for airtable.
Example:app.utils.airtable.getOptions(options, prefix);
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: getOptions
import-from-airtable-to-woocommerce-cron-v1
v1.js
Cron to perform multiple imports from airtable to woocommerce. Imports products to woocommerce.
Should be run with command line arguments.
Example:node import-from-airtable-to-woocommerce-cron-v1.js \
conf-airtable-base-name= \
conf-airtable-table-name= \
conf-airtable-view-name= \
conf-airtable-api-key= \
conf-airtable-table-key= \
conf-airtable-key-name= \
conf-airtable-key-value= \
cron-airtable-base-name= \
cron-airtable-table-name= \
cron-airtable-view-name= \
cron-airtable-api-key= \
cron-airtable-table-key= \
cron-airtable-key-name= \
cron-airtable-key-value= \
console-key is read from airtable column itself. console-prefix is built automatically using both conf and cron keys.
Check also: https://console.ylo.one/
Airtable configuration schema table example: https://airtable.com/shrOSB0DFqir5c46L/tblL26Ms8WZWh6Uh0
Airtable cron schema table example: https://airtable.com/shrgvXVaLXQX1R7kU/tblyc4T3h51AxaUf8
Help: Coming soon! 😀
An app bundled by ac-bundle-app, published by ac-bundle-module. namespace: import-from-airtable-to-woocommerce-cron
Available Methods: start, startUps, workerStartUps, callbacks, api, build, cron, parseArgv, consoleColors, camelCase, properCase, workers, enhance, publish, utils, has
import-from-airtable-to-woocommerce-v1
v1.js
Imports from airtable to woocommerce. Imports products to woocommerce.
Should be run with command line arguments.
Example:node import-from-airtable-to-woocommerce-v1.js \
wc-api-url=https://SITE/wp-json/wc/v3 \
wc-consumer-key= \
wc-consumer-secret= \
type=product \
airtable-base-name= \
airtable-table-name=Pricelist \
airtable-view-name=wordpress \
airtable-table-key=Model \
airtable-key-name=wp \
airtable-key-value=publish \
import-fields=Model+sku,regular_price_sek+regular_price \
airtable-api-key=keyUuJlo2wY5OZBxg
optional:console-key=my-console-key
console-prefix=import-from-airtable-to-woocommerce-v1
Help: Coming soon! 😀
An app bundled by ac-bundle-app, published by ac-bundle-module. namespace: import-from-airtable-to-woocommerce
Available Methods: start, startUps, workerStartUps, callbacks, api, build, parseArgv, console, exit, consoleColors, camelCase, properCase, workers, enhance, publish, sync, utils, has
ac-apps-minimal-api-airtable
api/airtable.js
Makes it easy to work with the Airtable API and perform tasks such as fetching and updating records. Fetches all records if page number not provided.
Example:app.api.woo.getProducts(options);
app.api.woo.updateProduct(options, product);
A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal
Available Methods: getRecords