FFOX Posted August 21, 2020 Share Posted August 21, 2020 Hello! I have a question: how can I use a hook to add a partner to an order? I know that you can add a partner via the WHMCS admin area on the order page, but I need the same functionality via a hook. Can you tell me which direction to go? Is it enough to create an entry in the affiliatesaccounts table? Or there is a ready-made function, for example, as in WHMCS I noticed a query: jQuery("#affiliatefield").html(jQuery("#affid option:selected").text()); jQuery("#modalAffiliateAssign").modal("hide"); WHMCS.http.jqClient.post( "orders.php", { action: "affassign", orderid: 307, affid: jQuery("#affid").val(), token: "" } ); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.