Jump to content

Nikil

Member
  • Posts

    8
  • Joined

  • Last visited

About Nikil

Nikil's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. @brian! could you please have a look at the above.
  2. Hi @brian! and other, Kindly have a look at this following screenshot http://prntscr.com/y0v9xv This is language file from admin/lang/ I would like to know if there a possibility to add the highlighted piece of code from modules/addons/addonmodule/lang/english.php file. or any other way to add a new status translation inside addon module. Thanks in Advance.
  3. Hi there, I would like to get current registrar specific details (id, name or any) on my custom frontend addon module page. I need to sent registrar data as post value in a 3rd party api. Api related flow are covered. but i didn't find any way to get current registrar details. Could any one please help me with this?
  4. Hi @brian! Thanks for all those suggestion. In our scenario we need both Pending and WIP. So, We updated the order status using InvoicePaid hook. using that order's status we changed ClientAreaPageDomains and ClientAreaPageDomainDetails output variables add_hook('ClientAreaPageDomains', 1, function($vars) { $newClient = $vars['client']; $orderIds = []; $domainsCollection = $newClient->domains; foreach ($domainsCollection as $domain) { $orderIds[$domain->id] = $domain->orderid; } if (!(count($orderIds) > 0)) { return $vars; } foreach ($vars['domains'] as $key => $domain) { $orderid = $orderIds[$domain['id']]; $orderStatus = Capsule::table('tblorders')->where('id',$orderid)->value('status'); if ($orderStatus == 'WIP') { $domain['status'] = $orderStatus; $domain['statusClass'] = $orderStatus; $domain['rawstatus'] = $orderStatus; $domain['statustext'] = $orderStatus; } $vars['domains'][$key] = $domain; } return $vars; }); It may be a dirty way but works fine for our requirement.
  5. Hi @brian! Thanks for that explanation. After trying those out i am came to an understanding. I need to change product(domain) status into WIP once payment ccompleted. I tried with same hook InvoicePaid using it's invoiceid i got the orderid from tblorders. With that orderid i loaded tbldomains and updated status. But custom status not updating for products. I like to show that "WIP" status in Front-end My Domains and Domains detail page for payment completed Products(domains). Could you please let me know how to meet my requirements?
  6. https://whmcs.community/topic/285777-a-hook-that-runs-just-before-the-payment-is-done-or-just-before-an-invoice-is-paid/?do=findComment&comment=1289021 @brian! Can i meet my requirement with this following hook ? I see only invoiceid param available. But i need to update order status once payment completed. Can you please share your thoughts?
  7. Hi there, I am pretty new to WHMCS. I wonder if someone could help with there thought. I will be grateful. It is related to order status. i have created new status WIP (work in progress) from admin side. Is there any possible way to make that status update once the order's payment completed. I like automate the WIP status update once payment completed. Is there any hook which could help me with this? or any other possible work around? Thanks in Advance.
  8. Hi, In between "Add to cart" and "Checkout" http://prntscr.com/t4xo8x I want a custom action which on click redirect to a Addon module page. Addon module page for some data to be upload to a API. So, Anybody please let me know how to achieve this redirect. Thanks in Advance.
×
×
  • 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