Jump to content
  • 0
Sign in to follow this  
code47

How to add values from modules to invoice using module hooks?

Question

Hello,

I am creating a module for invoice to display data from database. I want to know how to add that fetch value from module to invoice using hooks.

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By lamjed001
      From WHMCS 8.0 i noticed that Custom Field of type password become encrypted, how ?
      when i get Custom Field ( type password ) value via my module to make account with this password i saw that password is encrypted
      i used decrypt($password) it works fine
      but when i change the custom field type to text so decrypt($password) will not work because password already decoded ( original value )
      So my question is : how to get password from custom field ( type text btw this is not encrypted ) and from custom field ( type password encrypted ) because i need my addon to be compatible with both types

      Note : custom field of type text do not encrypt
      custom field of type password it become encrypted
    • By Ardeshir
      WA module will add additional notification for your clients using Whatsapp Messenger. Module source code is unencrypted. Feel free to view and open possibility to self-customize.
       
      Some notifications which are currently available:
      Login Alert Password Reset Invoice Information Payment Confirmation Payment Reminder & Overdue Notification Invoice Cancellation Service Activation, Suspension, Reactivation and Termination New Client Registration/Greeting Ticket Notification to client and admin/support team Account Anniversary  
      Additional capabilities:
      Notification when Mobile Phone used for notification is offline Reminder to recharge if battery is low Autoreply (if not using WA Business) Separate autoreply message template for unsubscribe keyword Forward incoming message to another Whatsapp number Notification Template can be set for dual language (for local language and general/english)  
      NEW!
      Send Invoice PDF to your client's Whatsapp (optional add-on) API Call to send Whatsapp Message from other application Available in two modes: Realtime (using remote SQL), or Pooling mode (can be used without remote SQL)
       
      Compatible with WHMCS v7.10, v8.0 and 8.1
       
      WHMCS Whatsapp Notification Module - Developed By BUANA dotnet
       
        



    • By karlfrankeser
      Hello,
      I am new to this community!
      I am setting up a hook that allows me to pass new client data to Zapier in order to update our Marketing automation software.
      This is the code I have been testing now:
      add_hook('ClientAdd', 1, function ($vars) { $userid = $vars['userid']; $firstname = $vars['firstname']; $lastname = $vars['lastname']; $email = $vars['email']; $phone = $vars['phonenumber']; $city = $vars['city']; $country = $vars['country']; $postcode = $vars['postcode']; $company = $vars['companyname']; $state = $vars['state']; $params = '?userid='.$userid.'&firstname='.$firstname.'&lastname='.$lastname.'&email='.$email.'&phonenumber='.$phone.'&city='.$city.'&country='.$country.'&postcode='.$postcode.'&companyname='.$company.'&state='.$state.'&source=WHMCS'; $url = 'https://hooks.zapier.com/hooks/catch/zzz/rrrr/'.$params; $options = array( 'CURLOPT_POST' => 0 ); $response = curlCall($url,$postfields,$options); logActivity('logged addClient with params: ' . $params . 'following is the result: ' . $request, $userid); }); I also tried to send this via file_get_contents but it does not seem to work, by composing the url together with real world values gotten from the LOG in the admin area the request works on Zapier's end, I suppose that the problem lies within WHMCS and the request. The Zapier request has been altered for privacy reasons.
       
      Can anyone point me in the right direction?
    • By aperture
      Hi,
      I've been unable to find other posts on the topic, should there be any I am sorry for posting.
      I am looking for a way to place orders that will be flagged as fraud. This is in order to test some post fraud check hooks.
      I have tried Maxmind/Fraudlabs with bogus zip codes, hotmail email, high risk countries. Orders just pass trough as OK.
      If anyone has any suggestions as to triggering fraud check with automatic listing as fraud-order please share.
      Setting a order to fraud manually is not an option, as certain hooks does not trigger with this behavior.
       
      Cheers
    • By BunnyBloYT_Hosting
      Hey, is anyone here able to create a simple addon that simply changes email_verified under a client in the database to 1. Based on its user id.
      It need to be working like this:
      1. I enter the user id into a widget on admin homepage-
      2. It changes email_verified under a client who is having the user id in the database to 1.
  • Recently Browsing   0 members

    No registered users viewing this 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