During customization,
I customized the listing template for product reviews (tpl_product_reviews_default.php), and matters seemed well in hand. Of course I stored the customized template in my templates override directory. The reviews listing displayed exactly as I had expected. Then, though, I noticed that *occasionally* the default listing template reappeared. After some head-scratching, I noticed that the default listing template displayed only when I clicked the "Read Reviews" button on the template page for writing a review (tpl_product_reviews_write_default.php). I discovered that the "Read Reviews" link on this latter template pointed to a different listing template (tpl_reviews_default.php).
So to my query: What are the differences in purpose between the tpl_reviews_default.php and tpl_product_reviews_default.php files? On my ZC installation at least, both default templates render exactly the same. I did study the differences in the file codings (best I could, given my limping ability with php), and I see the *coding* differences, but my ZC installation doesn't show any *rendered* differences. The two templates look just the same when rendered.
My query isn't just academic. As I mentioned, the two separate files caused my customized reviews listing not to show from the Write Reviews page. Rather than customize the second reviews listing template (tpl_reviews_default.php) to match the first one that I customized (tpl_product_reviews_default.php), I just changed the link on the Write Reviews template to go to the tpl_product_reviews_default.php. After making this change, though, I realized that I might be doing something stupid by making this change without fully understanding the file relations. Hence my query.
Thanks in advance for any direction sent my way,
Ken Baker


Reply With Quote
