Jump to content


Senior Member
  • Content Count

  • Joined

  • Last visited

Everything posted by IamAQ

  1. In above hook I have updated the query after your recommendation, Now prduct sequence and repeated product issue is resolved. but currencies are still not updating on the page.
  2. Yes, I am querying tblproducts with a join to tblpricing. Here is the hook I am using . <?php use Illuminate\Database\Capsule\Manager as Capsule; function waka_products($vars) { $products = Capsule::table('tblproducts') ->join('tblpricing', 'tblproducts.id', '=', 'tblpricing.relid') ->select('tblproducts.*','tblpricing.*') ->where('tblproducts.gid','10') ->where('tblpricing.currency', '1') ->where('tblpricing.type', 'product') ->orderBy('tblproducts.order') ->get(); $encodedata = json_encode($products); $decodedata = json_decode($encodedata, true); return array("myproducts" => $decodedata); } add_hook("ClientAreaPage", 1, "waka_products"); ?>
  3. I am also concerned about the product's sequence, even if I manage to hide the repeated products, there sequence is not right. as you may see in the image below, But on the deault cart, it has the accuracte sequence , as you may see below.
  4. I am using hook to fetch product details. But while debuging I see the products array has a muliple copies of same product with different currency, (means same product has different index in array for different currencies.) So It display same product table multiple time for multiple currency. like this
  5. Hello again, I am trying to add a currency selector on one of my custom page where I have display the product details. I want to allow my vistor to change the default currency from this custom page and view the product pricing accordingly. I have added this code in my custom.tpl <form method="post" action="" > <input type="hidden" name="token" value="{$LANG.go}"> <select name="currency" onchange="submit()" class="form-control"> <option value="">Change Currency (A$ AUD)</option> {foreach from=$currencies item=listcurr} <option value="{$listcurr.id}"{if $listcurr.id == $currency.id} selected{/if}>{$listcurr.prefix} {$listcurr.code}</option> {/foreach} </select> </form> But it is not working, everyytime I select the currency from dropdown, it refresh the page. but nothing changes, please guide what I am doing wrong. Thanks in advance Aqsa,
  6. So, How can I fix this? How would I know what variables I should use for this? If have fixed the name , price and status issue, but no luck with sslStatus, how can I fix this,?
  7. Thanks for the contribution @brian!, @steven99 Opss... Yes, I get so confused at that moment, I just wanted to configure the registrar reseller account, and read the wrong article for registrar module development, But Its all good now 🙂
  8. Hello, I am trying to add client's products and services list to the custom.php page, I have use the local API and added this code in custom.php file, $command = 'GetClientsProducts'; $postData = array( 'clientid' => '1', 'stats' => true, ); $adminUsername = 'admin'; // Optional for WHMCS 7.2 and later $results = localAPI($command, $postData, $adminUsername); print_r($results); It displays the results in Json format with print_r, but I don't understand how I can use this in .tpl file to display the client's products on the page. Please Help!
  9. Hello, I want to configure ".am" domains with whmcs. Do the reseller club support the ".am" domain registeration? Or building a module is only option for this purpose?
  10. Hello everyone, I have an HTML design which I want to use as my main website, https://massivesites.com/ And WHMCS website is https://massivesites.com/client-area that is for billing etc. I have already integrated the domain search with whmcs website, so when a user land on the main website https://massivesites.com/ and search for the domain, it directs them to the https://massivesites.com/client-area/cart.php?a=add&domain=register with the search results. What I want to ask is, if it is possible to display the DOMAIN SEARCH RESULTS on the main website. If yes how we can do this Waiting for the suggestions. Thank you,
  11. Thank you so much @brian! for all your support and cooperation. I have finally updated the whmcs successfully, It would not be possible without your help. thanks again 😊
  12. may you please elaborate this step? how can I run the upgrade process?
  13. Thank you all for all your support. I have just uploaded the updated files, and now my website is having a 'Down for Maintenance' message. What I do now? I think it is because my database is still having a record for the previous version.? but not sure! How do I resolve this? 😞
  14. yes, we get it from a reseller. Can you please guide how can I complete the update from .zip files of version 7.7.1
  15. I did try multiple time. But didn't understand where the problem lies. 😞
  16. Hello! I am trying to update WHMCS from 7.6.1 to 7.7.1. But I am continuously facing a fatal error, it says, 'A fatal error occurred while fetching the update.Please check to make sure your memory limits and execution time are set to the recommended values.' I have a memory limit set to 256M and max execution time set to 600. I have tried multiple times but didn't help. Can anyone help what thing I might be ignoring? Any suggestion will be a great help. thank you.
  17. I have read this topic earlier and is useful, And It is the one that got me in trouble 😜 as I tried to use hook and fails to understand how to add this on the required page. I have added the hook file but nothing changes. I know it is no longer needed in my case but I want to know what I was missing.
  18. I prefer not to use hooks if at the end I need to editing template too. But I want to know who to use a hook, Is there a need to call hook function? Or it gets loaded automatically. I know we creat hook file inside include/hooks directory. Can we name hook file whatever we want? Or it must be specified, Also Is they get load automatically when the page loads? Or we have to call that hook function in our templates code, where we want to make changes.?
  19. Yes, you are right that's why I want to remove them from the sidebar. It is useless having the same options twice on the page.
  20. Hello everyone, I want to configure Domain Registrars on my WHMCS. I have seen whmcs detailed documentation where they explain Domain Registrars. but I didn't understand where to start. They said ''the configuration function is a required function of all registrar modules" but I didn't find this function. Do we have to create/upload the configure file for this or something? There is also a link provided i.e. https://github.com/WHMCS/sample-registrar-module Do we have to download files from here? Please help and guide on the right track. thanks,
  21. Hello, I am trying to remove sidebar items and add them to navbar especially on the products page. I want to remove categories and action menu from the sidebar and add them to the navbar. I have tried to do this using hooks, but I am unable to do so. I failed to understand how to work with hooks. I need your help in understanding how to use hooks. I have already created a hook file inside include/hooks directory, and have written the function in this file. Is this all we have to done to use a hook or is there something I am missing. Also, Do we have to call a hook function somewhere inside the code? please help! 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