Search the Community
Showing results for tags 'Product Name'.
-
Is there a way to show the product name, product price and product description on custom whmcs page without using the javascript data feed?
- 41 replies
-
- custom whmcs page
- product description
-
(and 1 more)
Tagged with:
-
I'm just not having much luck, frig! Thanks in advance for anything you can share with me to help! I'd like to display the value field from table tblcustomfieldsvalues in the Client Area Home Panel Active Products/Services on WHMCS 7.4.1 with stock template. I visit example.com/whmcs/configproducts.php?action=edit&id=40 and put {$cf46} (or even {$customfields.0.value}) in the "Product Name" field so clientarea dashboard home panel will display name and custom field data. If I goto example.com/clientarea.php?action=productdetails&id=999 I see that the data is being display because I put {debug} into the clientareaproductdetails.tpl file. Why am I not able to display custom field id #46 array data in the product name field? I thought I could tweak the hook from a previous post by brian too, but no good. <?php use Illuminate\Database\Capsule\Manager as Capsule; function display_custom_field_46($vars) { $client = Menu::context('client'); $cf46 = Capsule::table('tblcustomfieldsvalues') ->where('value', $client->id) // compare ->where('fieldid', $vars['fieldid']) ->get(); $encodedata = json_encode($cf46); $decodedata = json_decode($encodedata, true); return array("cf46" => $decodedata); } add_hook("ClientAreaPage", 1, "display_custom_field_46"); ?> p.s. - this post too, was not helpful either. i tried copy / paste into hook folder and use custom field #46 but it did not work when I pasted {$customFields[$service.id]} into Product Name field.
- 4 replies
-
- configproducts.php
- client area
- (and 4 more)
