Hi DML,
you are right, it's a nice little plug-in, so let's see if we can get it to work for you. To get to the root of the problem, let's calrify this: When you say "nothing happens" and you are looking at a page where "tpl_tabular_display.php" is being used, then you are looking for example at the product listing of a certain category which has Bookx-type products in the listing, yes? If BookX is working correctly, you should then see extra infos for these BookX products in the listing, for example an author or the ISBN. To test this further you could make a category in the admin backend called "bookx testing" and add one Bookx-type product there: "Bookx Test Product".
Now when you are listing the category "bookx testing" in your shop, it shows "Bookx Test Product" but in your case no extra book-info like number of pages or ISBN or author etc?
If this is the case then you are correct, the BookX plugin is not working correctly in your setup.
Why do you assume, that "tpl_tabular_display.php" is the problem? The BookX plugin tries to modify the ZC code as little as possible, so it is using the "notifier" functionality of ZC, which then calls the file [YOUR_ZC_INSTALLATION]/includes/classes/observers/class.bookx_observers.php. In the case of tpl_tabular_display.php there was no "notifier" which is why it has to be inserted manually. It must be placed anywhere in the file BEFORE the variable $list_box_contents is being used, because the Bookx Observer inserts the extra book info into $list_box_contents before it is then output into HTML.
If you want to test functionality of Bookx with a debugger, try setting a breakpoint inside [YOUR_ZC_INSTALLATION]/includes/classes/observers/class.bookx_observers.php to see if this file is being called. If it isn't then check if you have really copied all the BookX php files in the correct places or if maybe one is missing.
For example the function "update" around line 154 inside class.bookx_observers.php is a good place for a break point, because that function is called every time the BookX plugin is inserting something somewhere. For tpl_tabular_display.php it should stop at the "switch" option "NOTIFY_TEMPLATE_PRODUCT_LISTING_TABULAR_DISPLAY_BEGIN" which is the notifier you inserted into tpl_tabular_display.php.
Let's see what all this does for you :)
Regards,
p.
Bookmarks