Guest hostwes Posted March 16, 2009 Share Posted March 16, 2009 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 Quote Link to comment Share on other sites More sharing options...
Robsta Posted March 16, 2009 Share Posted March 16, 2009 You'll need to include the description in the SQL select statement in the PHP file, and you'll need to include {TXT_DESCRIPTION} in the template file. Quote Link to comment Share on other sites More sharing options...
Guest hostwes Posted March 16, 2009 Share Posted March 16, 2009 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! Quote Link to comment Share on other sites More sharing options...
goober999 Posted March 17, 2009 Share Posted March 17, 2009 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 Quote Link to comment Share on other sites More sharing options...
Guest hostwes Posted March 17, 2009 Share Posted March 17, 2009 Got ya Goober. Figured it out yesterday, along with the prices. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.