manifest / integrations / tektone-acumatica-order-status
TekTone Acumatica Order Status Prototype
Wordpress plugin to fetch order status
by TekTone · github.com/dnickelstek/tektone-acumatica-order-status
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/dnickelstek/tektone-acumatica-order-status/archive/refs/heads/main.zipReadme
TekTone Acumatica Order Status Prototype
This prototype creates:
- A shortcode:
[tektone_order_status] - A public WordPress REST endpoint:
/wp-json/tektone/v1/order-status - Server-side Acumatica username/password login
- A PUT call to
/entity/TekTone/24.200.001/OrderStatusPackageData?$expand=Result - A sanitized response rendered on the page
Install
- Upload the
tektone-acumatica-order-statusfolder towp-content/plugins/. - Add the constants below to
wp-config.php. - Activate the plugin in WordPress.
- Create a WordPress page and add this shortcode:
[tektone_order_status]
wp-config.php constants
Put these above the "That's all, stop editing" line.
define('TEKTONE_ACU_BASE_URL', 'https://tektone.acumatica.com');
define('TEKTONE_ACU_ORDER_STATUS_PATH', '/entity/TekTone/24.200.001/OrderStatusPackageData?$expand=Result');
define('TEKTONE_ACU_USERNAME', 'YOUR_API_USER');
define('TEKTONE_ACU_PASSWORD', 'YOUR_API_PASSWORD');
define('TEKTONE_ACU_COMPANY', 'YOUR_TENANT_NAME');
define('TEKTONE_ACU_BRANCH', '');
define('TEKTONE_ACU_LOCALE', 'en-US');
define('TEKTONE_ACU_CACHE_TTL', 60);
define('TEKTONE_ACU_RATE_LIMIT_COUNT', 20);
define('TEKTONE_ACU_RATE_LIMIT_WINDOW', 600);
Add fields later
Most changes should be made in these two PHP methods:
summary_fields()result_columns()
Example:
'newField' => array(
'label' => 'New Field',
'source' => 'AcumaticaFieldName',
),
The JavaScript renders the table dynamically from the columns returned by PHP.