hareslade is still around, one of you guys really should pull the short straw for the future, because when zencart 1.4 etc comes out, it'll be a long job upgrading this book product, I may not be able to spend the time on it.
But.. johnk.. if you look in product_listing.php around line 113 you'll find
Code:
$zco_notifier->notify('MY_NOTIFY_GOT_PRODUCT_LIST_NAME');
thats where the observer class sticks it's oar in just for a book, in the display list.
A few lines above, there are two entries with
Code:
<!--jph_notify_subtitle-->
The observer class for listings is in class.productBookListing.php ...you find that same bit of code in there.
The observer detects that bit of html and inserts whatever it decides to, replacing that code with the extra html to change things
also it uses the
Code:
<h3 class="itemTitle">
From that you may be able to see how it all works, the original string html that the listing file would have made for a product, is changed by the observer class, just for a book product.
Change php things slowly in the observer class, so you see the various bits doing whatever they do.
You can put extra code 'bits' like the jph_notify_subtitle html, into the product listing file, then alter the observer class to replace that exact bit with the html you want to display.
The trick is, the jph_notify_subtitle is surrounded by the arrows so the non-book products html still carries that 'tag' but doesn't display it, its present in the page's view source.. check it out..
Does that help?
Bookmarks