Jump to content

rabijit

Member
  • Posts

    36
  • Joined

  • Last visited

About rabijit

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

rabijit's Achievements

Member

Member (2/3)

0

Reputation

  1. Hello, After upgrading to 8.4.1 my whmcs announcement friendly url stopped working. I am using NGINX web server and the code below worked in whmcs 8.1.3. location ~ /announcements/?(.*)$ { rewrite ^/(.*)$ /index.php?rp=/announcements$1; } Help me if you have any latest code.
  2. Hello, I want to send customer data to a 3rd party webhook (Pabbly Connect) after checkout complete. I have written the following <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); // Your pabbly webhook endpoint $webhook_url = 'https://connect.pabbly.com/workflow/sendXXXXXXXXXXXXXXXXX'; /** * Post the request to pabbly webhook endpoint */ function sendData($vars){ $ch = curl_init($webhook_url); $jsonData = array( 'OrderId' => $vars['orderid'], 'amount' => $vars['amount'] ); $jsonDataEncoded = json_encode($jsonData); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); $result = curl_exec($ch); logModuleCall('Pabbly-WHMCS', 'Send response to pabbly webhook endpoint', json_encode($jsonDataEncoded), print_r($output, true)); curl_close($ch); } add_hook("ShoppingCartCheckoutCompletePage", 1, function($vars) { if($vars['ispaid'] == true) { sendData($vars); } }); I am getting the following logs in module log but nothing in pabbly end point. Can someone check and let me know if I miss anything? Thanks in advance.
  3. It is invisible recptcha and I did not know the issue at the time of talking screenshot and took a partial screenshot.
  4. No, it is not for server side issue. It is recaptcha issue. I disabled recaptcha on checkout page and issue is gone.
  5. @Kian how you implement it then? @samad909 above code works fine for me. It is triggering purchase event in cart complete page with price and currency(I have hard coded it). I am triggering all fb pixel event via google tag manager and only purchase event via hooks.
  6. @samad909 Sorry to activate a old thread but how to add currency in Purchase event?
  7. Also now I switched to WHMCS captcha from Google invisible recaptcha
  8. Hi John, I was using default six theme without any customization or add on. Now downgraded to WHMCS 7.X for the time being.
  9. I am facing a critical issue, my whmcs complete order page stuck in chrome browser. The complete order button keep on loading and don't redirect to gateway page. Attached pic for reference. It is working fine in Mozilla firefox, opera browser. In the console, I am getting the following "[DOM] Multiple forms should be contained in their own form elements; break up complex forms into ones that represent a single action: (More info: https://goo.gl/9p2vKq) <form method=?"post" action=?"https:?/?/?myule.com/?folder ?cart.php?a=checkout&submit=1" name=?"orderfrm" id=?"frmCheckout">?…?</form>?"
  10. Hello, I want to add a custom code in checkout page, so I add following code in header.tpl {if $templatefile == 'checkout'} ================= {/if} But, it is not working. What is the exact template file name of checkout page?
  11. Thanks for the reply. I was testing with my facebook Id and my email is public still it isn't fetching my email.
  12. No, I am talking about new registration.
  13. Hello, I set up facebook integration, but only first name and last name retrieved. Is it normal? or it should fill email, phone no, address. Thanks
×
×
  • 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