Jump to content

JesusSuarz

Member
  • Content Count

    49
  • Joined

  • Last visited

Community Reputation

4 Neutral

About JesusSuarz

  • Rank
    Newbie

Recent Profile Visitors

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

  1. This works fine. However I made a ticket to whmcs, because I wanted to get a clear answer directly from whmcs to solve this, and the answer was very absurd. They said you had to use jquery to achieve this. It was very silly to ask. (the support answer is very ridiculous and absurd). It is also very frustrating to know that whmcs has no clear answer on how to solve this. I am quite disappointed this time from whmcs. Also, I haven't gotten whmcs to answer this topic either. Very bad whmcs. At this point I'm not sure if it's a good idea to use whmcs v8.
  2. Hello, in our case we do not allow geolocation of coins when the user has logged in or is connected. In other words, this solution works if the client is not connected. In our case, that solution works.
  3. After working 2 days on this, I will leave a video of how I did it on my whmcs v8.0.2 https://www.loom.com/share/ebdc977fedf94823abb707748b166a68
  4. and if you want to use the variable: {$currency.code} in your smarty template in whmcs v8 just add the following hook and you can use it anywhere. currency_active.php <?php function hook_currency_active($vars) { $currencyid = (isset($_SESSION["currency"]) ? $_SESSION["currency"] : ""); if (empty($_SESSION["uid"])) { $currency = getCurrency($userid, $currencyid); } else { $currency = getCurrency($userid); } $smartyvalues = array(); $smartyvalues["currency"] = $currency; return $smartyvalues; } add_hook('ClientAreaPage', 1, 'hook_currency_active');
  5. After thinking a lot, I think I found the solution. I have created the following hook, which allows to obtain the currency that is in use or active in WHMCS V8.0.2 <?php add_hook('ClientAreaHeadOutput', 1, function($vars) { $currencyid = (isset($_SESSION["currency"]) ? $_SESSION["currency"] : ""); if (empty($_SESSION["uid"])){ $currency = getCurrency($userid, $currencyid); } else { $currency = getCurrency($userid); } $smartyvalues["currency"] = $currency; var_dump($smartyvalues["currency"]); });
  6. Hello, @bellafronte I've tried been solution, however, as expected, I don't get anything inside cart.php in whmcs 8.0.2 I will probably have to contact whmcs to review why they have removed this very important variable.
  7. Greetings @Brian this works if you have a GET parameter on the cart.php file However if you go directly to cart.php the variable $currency disappears. Can you try again to see the list of products without any parameter? I spent several hours last night trying to figure this out to no avail.
  8. this is very unfortunate, Now I don't know what to do, this is causing me a lot of problems with several of my plugins. any solution? I had a long time trying to look for the variable $ currency everywhere, It is not in the session variable, neither in the smarty debug, nor is it inside the $ vars variable In other words I don't see any way to get the variable for the currency that is in use.
  9. hi, Does anyone know of any hook or module that allows only to show prices in Bitcoin / btc?
  10. now I have greatly improved my hook. see what the history of fund payments looks like. https://www.loom.com/share/954a7ce4913a496fb2384ee7e3bd0371
  11. wow! thanks very much!! you are a genius, thanks for your help. I want to show you what I did. https://www.loom.com/share/dcf11cb01aef4692b2db0d1d18875002 As I said before, it is a hook that shows the history of the account's funds transactions. includes, date, description and amount.
  12. thanks however this only returns the last value found in the foreach. it doesn't return all the values to me 😞
  13. I hope you can help me. I am creating a hook to bring the history of the balance recharges. I already have it ready. however I have created the following function to print the data and pass it through setBodyHtml() or setFooterHtml() function saldo($saldo_convert) { foreach ($saldo_convert as $item) { $saldo_fecha = $item["date"]; $saldo_descripcion = $item["description"]; $saldo_monto = $item["amount"]; echo '<tr> <td>'.$saldo_fecha.'</td> <td>'.$saldo_descripcion.'</td> <td>'.$saldo_monto.'</td> </tr>'; } } $imprime_saldos = saldo($saldo_convert); the problem is that the data is immediately printed in the header (top) of the page and not where I have declared the variable. someone has idea because I can't print the variable of the function inside setBodyHtml() or setFooterHtml()
  14. The problem is that I do not know how to verify who made the payment if the paypal and whmcs mail are different. is there any way?
  15. a few days ago I made a request to whmcs. https://requests.whmcs.com/topic/invoice-number-in-description-of-the-purchase-paypal basically the invoice number does not appear for recurring payments within the paypal notes. So I have no way of knowing who is paying. is there any way to create a hook or modify the plugin?
×
×
  • 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