Jump to content

Define ProductCustomField Variable on Template where not showing in Debug


Recommended Posts

Hi All,

 

We are trying to display the output of the ProductCustomField variable on a template page in WHMCS, but the variable isn't currently showing when we run Debug.

 

I realise we need to create a connection to the database and pull the information from the table directly, but I am not overly sure how to do this - any advice would be greatly appreciated.

 

Am I right in saying we require a PHP include along the lines of this:

 

{php}<?php
$query = "SELECT * FROM `tblcustomfieldsvalues` WHERE 1"; 
$result = mysql_query($query);
while ($data = mysql_fetch_array($result))
{
$id = $data["fieldid"];
$value = $data["value"];
}

?>{/php}

 

The information we are trying to display is from a custom field called Additional IP Addresses if that helps.

 

Thanks in advance for your help,

 

Matthew

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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