Search the Community
Showing results for tags 'product details'.
-
Is there any way I can create a Custom Page just for product details using hooks. Example: I offer 3 SSL Certificates as products. Under my Order Now button , I have a " Details Page" link/button. On clicking the link I am redirected to a custom Page which displays all the details about my selected product. Is there an option to add Long Description(new column) to every product and display it in my custom Page. How can i achieve it using Hooks? P.S : I didnt find any useful links from internet.
-
Hi, I am using latest Twenty-One theme of WHMCS. In landing page has following code: {foreach $productGroups as $productGroup} <div class="mb-5"> <div class=" text-center"> <h3 class="card-title pricing-card-title"> {$productGroup->name} </h3> <p>{$productGroup->tagline}</p> <a href="{$productGroup->getRoutePath()}" class="btn btn-outline-primary my-3"> {lang key='browseProducts'} </a> </div> </div> {/foreach} Which is listing all Product Groups. I want to display all products under each product groups. For that I got below code through Support. function homepage_products_hook($vars) {// print_r($vars);// $client = Menu::context('client'); $products = Capsule::table('tblproducts') ->join('tblpricing', 'tblproducts.id', '=', 'tblpricing.relid') ->select('tblproducts.*','tblpricing.*') ->where('tblpricing.type', 'product') ->where('tblproducts.hidden','0') ->where('tblproducts.gid','x') ->groupBy('tblproducts.order') ->get(); $encodedata = json_encode($products); $decodedata = json_decode($encodedata, true); return array("myproducts" => $decodedata);}add_hook("ClientAreaPageHome", 1, "homepage_products_hook"); Which is returning null array. But when I change x to 1 or 2 in ->where('tblproducts.gid','x') I get products of product group id 1 or 2 statically. I would like to know how I can get respective product group Product Details in loop. What value to be passed in place of x in ->where('tblproducts.gid','x') so that product output remains dynamic. Will appreciate a working solution. Thanks Regards, Shubhajeet Saha
-
The client area product details page changes when single sign-on is enabled, and it looks like this: http://docs.whmcs.com/CPanel_Single_Sign-On#Customising_Single_Sign-On_Shortcuts Rather than doing all the customizing work, I'd prefer to keep using the old look and forget about the integration. Is there an option for this, besides hacking the code for clientareaproductdetails.tpl?
- 2 replies
-
- client area
- product details
-
(and 1 more)
Tagged with:
-
Newbie here so please be kind! Is there anyway of directing a client directly to their product details page i.e. to http://mydomain.com/clientarea.php?action=productdetails after logging in? If I redirct to http://mydomain/clientarea.php?action=productdetails, I get the error 'Unauthorized Access Attempt' despite successful login. Presumbaly there is an easy way around? Any help very much appreciated! SK
