How to import rules via function / api
-
Hi,
Is there an easy way to programmatically adjust / edit the rules?
My site manages prices automatically from an external database and I need to link the bulk discount rules to this, any suggestions?
I have found previous mentions of these:
WDP_Importer::import_rules //which appears to be calling return \ADP\Factory::callStaticMethod('Admin_Importer', 'importRules', $data, $resetRules);I can’t get either of these functions to accept rule json, they both throw critical errors no matter what I pass in, any idea what I’m doing wrong?
Kind Regards,
Bob
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘How to import rules via function / api’ is closed to new replies.