Jump to content


Senior Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About IamAQ

  • Rank

Recent Profile Visitors

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

  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?
  • 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