Jump to content

WHMCS Smarty product description variable?


iBlacK

Recommended Posts

Hello, anyone knows the WHMCS Smarty variable for the product description?

 

I'm trying to display the product description at the configuration form (...cart.php?a=confproduct...), but still no success.

 

I've tried with several variables, but maybe I'm doing it wrong?

 

I remember trying with {$product.description} and a few more.

 

Thanks in advance.

Link to comment
Share on other sites

If you are on a live installation and want to avoid leaking data via debug, do something like this;

 

In your theme's header.inc between the head sections, add (replacing MY-IP with your actual IP address):

 

{if $ipaddress eq 'MY-IP'}<meta name="test2" content="76e3{$token}"/>{/if}

{if $token eq 'MY_TOKEN_HERE'}{debug}{/if}

 

Now view source on your browser and replace MY_TOKEN_HERE with your actual token (less the extra 'be69' characters we threw on the beginning to partially obfuscate the token). You could do the same with just IP address or add it as a second factor in the debug statement, but I find it is now as reliable on some pages. Of course, it is better not to do this on a live site, and don't leave the code there except when you need it (not even over night).

 

Edit Note: $ipaddress is so unreliable you may have to click on a few pages to get it to fire.

Edited by gPowerHost
clarification
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