Jump to content

hogava

Member
  • Posts

    59
  • Joined

  • Last visited

Everything posted by hogava

  1. Please advise on how to create a ticket through a hook.
  2. Hello, I need to send a ticket to every clients, after their next order. After each order, it should be checked whether this ticket has been sent to them before or not and send if not already sent. Please help me about how can do this?
  3. this hook worked for me: <?php use WHMCS\Database\Capsule; add_hook('ClientAreaPageCart', 1, function($vars) { $clientsdetails = $vars['clientsdetails']; $userid = $clientsdetails['userid']; $cxid = Capsule::table('tblcustomfieldsvalues')->where('fieldid','343')->where('relid',$userid)->value('value'); // 343 is the field that needs to be filled. if ($cxid == '') { header("Location: clientarea.php?action=details"); exit; }else {} }); ?>
  4. Hello, I added new custom client field, now I need to have everybody complete that field before than order complication. how can take user to profile edit page if client not completed custom field? thanks
  5. Hi, In the past, I used the mail function to send mail in the hook. but now I changed my host and that mail function disabled. I searched the community and saw some methods, but none of them did not work for me. Please send me PHP code for this that works. Thanks
  6. And how can add limit for minimum allowed amount is 10 ?
  7. Hi customer see product and add that to card, Now I want in card (cart.php?a=view) default quantity be 10 instead 1. (ind see 10 prices.) how I can do it?
  8. Hi I have product and that have several addon. when customer order, he/she can chose multiple quantities. I need multiple just apply to product and not to addons. thanks.
  9. how I can have that relid when invoicepaid for use in hook?
  10. Hi Please Help me ablout relid in customfieldsvalues table?
  11. Exactly I want to add a value to a product custom field when invoice paid, that shown in order or invoice page. Thanks for your help. <?php add_hook('InvoicePaid', 1, function($vars) { // Perform hook code here... });
  12. Hi I want add a value to "Custom Field" of product, during order process. how i can do this with hook?
  13. Hi, in clientareainvoices page how can increase invoice from 25 to 100 ?
  14. with this method, any time that i refresh page, i get new value!
  15. Now how can I apply this limitation about payment gateway in viewinvoice.php page too?
  16. Thanks for the explanation. Yes I use standard_cart with customized template. This JQuery code solved my problem: jQuery("input:radio[name=paymentmethod]:visible")[0].checked=true;
  17. Hi, I need use other gateway when card total is more than 400$, with this hook othergateway shown when total is more than 400$ but that is not selected and if customer doesn't select othergateway then redirected to paypal. How can change default selected gateway from hook? function cart_gateway_detection($vars) { if ($vars['templatefile']=='viewcart'){ $gateways = $vars['gateways']; $total = $vars['total']->toNumeric(); if ($total <= 400){ unset($gateways['paypal']); } else { unset($gateways['othergateway']); } return array("gateways" => $gateways); } } add_hook("ClientAreaPageCart", 1, "cart_gateway_detection");
  18. I have a RESTFUL API for sending SMS, and that need just a message and a phone number for sending SMS. I didn't find any plugins. I want all users to be checked every day, and send SMS to users who were eligible (based on what I write.) For this needed cronjobs. this must written as hook?
  19. Hi, I want to give customers feedback after X days from their first order (by sending a poll link via SMS) please help me about this.
  20. how can i use $smarty variable in custom php page?
  21. THANKS uid is id of client or is for whmcs admins?
  22. Someone can help me on how to use condition for WHMCS's logged-in admin in custom php page.
×
×
  • 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