Jump to content

Add Description to Popular Products


Guest hostwes

Recommended Posts

Guest hostwes

Need some help here! I need to know what line of code to insert into 'randomProd.inc.php' to display the product description in the 'randomProd.tpl' template file.

I have tried the following but doesn't work!

$box_content->assign("TXT_DESCRIPTION",$prodArray[0]['description']);

Please, I need your help. Let me know!

Thanks,

Wes Peery

Link to comment
Share on other sites

Guest hostwes

I know that part. What would the line of code be?

Ok, wait.. I might be able to figure it out. If anyone else can help, please do.

Will keep this thread updated.

Thanks!

Link to comment
Share on other sites

I know that part. What would the line of code be?

Ok, wait.. I might be able to figure it out. If anyone else can help, please do.

Will keep this thread updated.

Thanks!

Hi,

First the line of your code is wrong. the line should be

$box_content->assign("TXT_DESCRIPTION",$randProd[0]['description']);


After you fix that,



add I.description to the $sql = line so it would look like this




$sql	= sprintf("SELECT I.name, I.image, I.productId, I.description FROM %1\$sCubeCart_inventory ...

Good Luck

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.

×
×
  • Create New...