Guest davscot Posted December 12, 2005 Share Posted December 12, 2005 Hello all cc's, I need to add the {TXT_PRODCODE} to the view catagory page. I looked to see how it's working on the view product page and everything points back to the viewProd.inc.php. So I went into the viewCat.inc.php and tried to edit in a line, but not know php I'm at a lost as to how to complete this mod. This is where I need help with the php. Please HELP! Quote Link to comment Share on other sites More sharing options...
convict Posted December 12, 2005 Share Posted December 12, 2005 Open viewCat.inc.php and search for $view_cat->assign("TXT_TITLE",validHTML($productResults[$i]['name'])); paste after $view_cat->assign("TXT_PRODCODE",$productResults[$i]['productCode']); paste {TXT_PRODCODE} in appropriate viewCat.tpl to <!-- BEGIN: products --> section :) Quote Link to comment Share on other sites More sharing options...
Guest davscot Posted December 12, 2005 Share Posted December 12, 2005 You are awesome Convict! I tried pasting the same test but I was putting it in the wrong spot. :) Quote Link to comment Share on other sites More sharing options...
convict Posted December 12, 2005 Share Posted December 12, 2005 You are welcome :) Quote Link to comment Share on other sites More sharing options...
Guest tuscanblue2 Posted January 8, 2006 Share Posted January 8, 2006 Works perfectly thankyou for your instruction Quote Link to comment Share on other sites More sharing options...
convict Posted January 8, 2006 Share Posted January 8, 2006 Glad to help you tuscanblue2 ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted January 10, 2006 Share Posted January 10, 2006 I searched a long time, but finally you give the answer. Thank you Convict :) Quote Link to comment Share on other sites More sharing options...
Guest ssppaarree Posted January 31, 2006 Share Posted January 31, 2006 Convict, Thank you very much. I have spent hours, searched everywhere, and eventually gave up. This works wonderfully. :w00t: Quote Link to comment Share on other sites More sharing options...
convict Posted January 31, 2006 Share Posted January 31, 2006 Glad to help :w00t: Quote Link to comment Share on other sites More sharing options...
Guest pasher Posted February 23, 2006 Share Posted February 23, 2006 Searched the forum for "TXT_PRODCODE", found this thread with the answer to my exact 'how do I" question The next search wasn't so forthcoming, so I'll ask here - How do I do the same sort of thing so that I can display the Product Stock Level from the viewCat.tpl template? Thanks Pash Quote Link to comment Share on other sites More sharing options...
Guest ssppaarree Posted February 24, 2006 Share Posted February 24, 2006 Searched the forum for "TXT_PRODCODE", found this thread with the answer to my exact 'how do I" question The next search wasn't so forthcoming, so I'll ask here - How do I do the same sort of thing so that I can display the Product Stock Level from the viewCat.tpl template? Thanks Pash I haven't done it but IMO, the steps would be to query the Product Stock Level from the db, assign it a name in the viewCat.inc.php and then place that name where you want it in the viewCat.tpl file. Good luck Quote Link to comment Share on other sites More sharing options...
Guest pasher Posted February 24, 2006 Share Posted February 24, 2006 Thanks for the response - I've just worked it out for m'sen Include this line as well as the one above - $view_cat->assign("TXT_INSTOCK",$productResults[$i]['stock_level']); Cheers Pa 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.