Jump to content

add {TXT_PRODCODE} to viewCat.tpl


Guest davscot

Recommended Posts

Guest davscot

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!

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
  • 4 weeks later...

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

Link to comment
Share on other sites

Guest ssppaarree

Searched the forum for "TXT_PRODCODE", found this thread with the answer to my exact 'how do I" question :D

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

Link to comment
Share on other sites

Thanks for the response - I've just worked it out for m'sen :D

Include this line as well as the one above -

$view_cat->assign("TXT_INSTOCK",$productResults[$i]['stock_level']);

Cheers

Pa

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...