Jump to content

FFOX

Member
  • Posts

    6
  • Joined

  • Last visited

About FFOX

FFOX's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hello! My task is to send a letter to a client and attach a specific file to the letter (the file is different for each client). How can I do this? It doesn't work through the SendEmail API in any way.
  2. Hello! Is there any way for a certain partner to make a unique percentage on a certain product? For example, I want to make 30% deductions from the payment for aff_id == 9 and service_id == 5 I found the hooks AffiliateCommission and CalcAffiliateCommission, but they cannot change the percentage or recalculate. I will be glad to help!
  3. Did you know that if you delete a field in the developer code in the browser, for example Address 2, when placing an order in the registration form,you will still get an error? I think this is unacceptable. Note that NULL is passed in this case: WHMCS\\User\\User->createClient('Ivan', 'Test 2', '', 'fjmfmejujnnbhh@...', 'fsdfjerjfer', NULL, Although in later versions it worked. All my non-standard registration forms were sent, unfortunately. I redid everything again and just hid the wrong fields through CSS, but for the sake of interest I tried to explore the element through Google Chrome and deleted a piece of code, tried to place an order and got an error. Complete nonsense! Please note that the error is reproduced only during registration when the order is placed, the error does not appear on the usual registration form, but I did not test it in detail.
  4. Thank you! Is it enough to create an entry in the affiliatesaccounts table? Or there is a ready-made function, for example, as in WHMCS (admin area) 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: "" } );
  5. 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: "" } );
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated