Hi folk,
I'd like to modify the Products All listing so it looks exactly like the regular products listing. (Why it's so different is just one of those How high is the sky? questions that it ain't worth asking.)
I looked at the two relevant files in includes/templates/My_template/templates -- that is: tpl_modules_products_all_listing.php and tpl_modules_product_listing.php -- and decided I'd better not just copy the regular one and replace the All one. That seemed like a Really Bad Idea. The two files are wildly different in structure and even size, the regular one having 66 lines and the All one having 216 lines.
So, I need some help from the PHP savvy. First, is it possible to do that sort of wholesale replacement -- taking care to make sure the references out of the file are correct. Or is there some other method to do what I want?
To broaden the issue: if I ever decide to use the New Products or Specials or any of the other product listings, I'd also want them to look the same, and to be able to control all of them at once from the stylesheet and from admin. (I honestly can't imagine any reason for the lists to be different, but maybe I lack imagination.) So I guess a general solution would be to use the tpl_modules_product_listing.php file to control all product listing tasks in my store.
Any hints, help or laughs greatly appreciated.
Rob






Bookmarks