Hi all,
I'll start this off by saying I am not a developer.
I've started a WooCommerce Subscriptions and Traccar API project on github if anyone would like to contribute.
https://github.com/arguad/traccar-woocommerce-integration/blob/main/functions.php
In this environment, access to Traccar tracking portal is on a subscription basis paid per month, provided by WooCommerce and WooCommerce subscriptions plugin.
The aim is to have WC programmatically interact with Traccar over the API.
Here's the plan. Feel free to provide any feedback.
• Create Traccar User account over API if account does not exist.
• Password can be generated securely. Use hashing.
• Create Traccar Device over API
• Set Traccar User device limit set based on WooCommerce Subscription quantity.
• Link Traccar Device to Traccar User account
There will need to be two updates done to WC subscriptions check out page to support the device identification number being added by the customer
• Add ‘Device Identification Number’ field (also known as the devices imei) to WooCommerce Checkout page.
• Add ‘Device Identification Number’ field(s) dynamically to WC Checkout page based upon the quantity of subscriptions the customer is purchasing during the checkout process.
The code is designed to go into your wordpress functions.php.
Hi all,
I'll start this off by saying I am not a developer.
I've started a WooCommerce Subscriptions and Traccar API project on github if anyone would like to contribute.
https://github.com/arguad/traccar-woocommerce-integration/blob/main/functions.php
In this environment, access to Traccar tracking portal is on a subscription basis paid per month, provided by WooCommerce and WooCommerce subscriptions plugin.
The aim is to have WC programmatically interact with Traccar over the API.
Here's the plan. Feel free to provide any feedback.
• Create Traccar User account over API if account does not exist.
• Password can be generated securely. Use hashing.
• Create Traccar Device over API
• Set Traccar User device limit set based on WooCommerce Subscription quantity.
• Link Traccar Device to Traccar User account
There will need to be two updates done to WC subscriptions check out page to support the device identification number being added by the customer
• Add ‘Device Identification Number’ field (also known as the devices imei) to WooCommerce Checkout page.
• Add ‘Device Identification Number’ field(s) dynamically to WC Checkout page based upon the quantity of subscriptions the customer is purchasing during the checkout process.
The code is designed to go into your wordpress functions.php.