marty.net message board
    About cpshop >> Customization Help >> Message started by: carolinaswagger on 04/12/13 at 22:00:57

Title: Hung Up on Hooks
Post by: carolinaswagger on 04/12/13 at 01:33:55
SSI Includes, easy, Hooks....TBA

Followed the guide at:

1- Created a TXT file called: cpshop.cgi.pno.16826273.banner.txt

2-Created a folder called: cphooks

3- In the TXT file I put:

Code:
<table border="0">
 <tr>
   <td bgcolor="#FF0000"><strong>Hook Test Appear Here </strong><br />
   <img src="http://www.websitename.com/images/image-name.png" width="502" height="79" /></td>
 </tr>
</table>


4- In the CP Template, at the very top of the page hook code insert as:  
Code:
<div><[hook:banner]></div>


5- On the Admin page, 'Process Hooks in Template and Code' is selected.

: Result:
Nothing

Could the DIVs be messing things up? The file name seems to be correct...


Title: Re: Hung Up on Hooks
Post by: oph3lia on 04/12/13 at 22:00:57
cpshop.cgi.pno.16826273.banner.txt

Did you literally name it that? If so, you need to change the example number to one of your own products.

Also, you might be missing it because that hook is formatted for an individual product page (pno = product number) so it will only show up on that one page, if you were looking anyplace else it won't show.



marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright 2000-2001, X-Null. All Rights Reserved.