Create Card with Card ID : “WooCommerce” (or any) - this card as imaginary customer
Create special Card Type for this Imaginary customer
Link this Card ID in WooCoomerce Upload Task : Parameter ContractCardID
Create Webhook to trigger when contract Activated Or Ended
*For just Web customers:
Enabled : Yes
Custom Mode : Yes
Fire on Changed : Yes
Data Type : Contract
Url : dummy
Criteria : [Workflow Status.Name] In ('Active', 'Closed') And ([All Customers] = True Or [Card Contracts][[Card.Card ID] = 'WooCommerceWOOCOMMERCECARDID'] And [Workflow Status.Name] In ('Active', 'Closed'Or [Card Type] = 'WOOCOMMERCECARDTYPE')
Property Changed : WorkflowStatus
Contents : {FUNCTION:WooCommerceContractUpdateProduct}
*For Web Customers and All customer in Readysell:Criteria :
[Workflow Status.Name] In ('Active', 'Closed') And ([All Customers] = True Or [Card Contracts][[Card.Card ID] = 'WooCommerce'] Or [Card Type] = 'WC')Create a contract with this imaginary customer only (OR AllCustomers OR Card Type)
-- Note: only would be pick up by Webhook if match Card ID or Card Type in WebhookAdd Product and set active contract
Task product upload will update this product
Result in WooCommerce
a. Beforec. After
When contract ended, Webhook will trigger and Task will run on schedule to update the product to WooCommerce
...