Jump to content

Vivek Nair

Member
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Vivek Nair

  1. Hello, I have been trying to integrate a new payment method with WHMCS and have done it successfully. However I cannot make use of the mass payment option. Payment is occurring successfully but the invoices are not being updated. How can we manage to do that? Please note that i am using gateway_link() function. <?php ----------- ------------------ $htmlOutput = '<form method="post" action="' . $paya_cc_url . '">'; $htmlOutput .= "<input type='hidden' name='merchantid' value='{$merchantid}'>"; $htmlOutput .= "<input type='hidden' name='systemurl' value='{$systemurl}'>"; $htmlOutput .= "<input type='hidden' name='merchantkey' value='{$merchantkey}'>"; $htmlOutput .= "<input type='hidden' name='devid' value='{$devid}'>"; $htmlOutput .= "<input type='hidden' name='devkey' value='{$devkey}'>"; $htmlOutput .= "<input type='hidden' name='url' value='{$url}'>"; $htmlOutput .= "<input type='hidden' name='amount' value='{$amount}'>"; $htmlOutput .= "<input type='hidden' name='action' value='display_cc_form'>"; $htmlOutput .= "<input type='hidden' name='paytype' value='{$paytype}'>"; $htmlOutput .= "<input type='hidden' name='invoiceid' value='{$invoiceid}'>"; $htmlOutput .= "</form>"; return $htmlOutput;
  2. Hello, You can always the system URL from the following table. Please use the following query : $url = Capsule::table('tblconfiguration')->where('setting','='SystemURL')->first(); $system_url = $url->value; Hope this helps. Cheers
  3. Hello, I have been working on a project with quotes on WHMCS. Now a new requirement has come up and I have come up with a solution for it. But i am stuck now at a page. I have been relying on the hooks mainly for this project. In order to write custom jquery code in admin area pages i generally use in this format : add_hook('AdminAreaPage', 1, function($vars) { $jquery_code = $vars['jquerycode']; $jquery_code .= ' $(document).ready(function(){ });'; $return = array(); $return['jquerycode'] = $jquery_code; return $return; }); This works on all pages,but somehow in this page domain.com/quotes.php?action=loadprod&id=xxx it is not working. I tried like this in the page : add_hook('AdminAreaPage', 1, function($vars) { if($_GET['action'] == 'loadprod'){ $jquery_code = $vars['jquerycode']; $jquery_code .= ' $(document).ready(function(){ alert(); });'; $return = array(); $return['jquerycode'] = $jquery_code; return $return; } }); Could someone guide me or help me through this ? Thanks in advance
  4. Hello, As you mentioned, there are no direct ways to include the quantity. One way you can do is that for each product even if it's the same one qty should be 1 and it can be show in a different row which you might already know. Another option you have is to add a configurable option from Setup -> Product/Service -> Configurable option. There you can set option for quantity for products. You might have to use hooks to override the carttotal but you will have this quantity value in the db in tblhostingconfigoptions. Hope it helps. Regards
  5. Hello, You might have solved this already. Anyway, from what I understood you need to know number of active hosting products. Here is a way you can do that : You can write a query like this : $Data = Capsule::table('tblhosting')->where('domainstatus', '=', ''Active')->count(); You will get the number you required. Please clear me if this is not what you meant. Thank you
  6. Hello ishtiaque, I have downloaded the files you provided above, but seems like config details are missing. Can you provide them so that i can test it ? The details needed for aamarpay_config. Waiting for your update. 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