I would like to reuse a product “snapshot” across multiple areas of my site. Is it possible to just create an HTML (phtml) file and pass variables to it from another HTML file? So in something like /catalog/product/list.phtml I’d like to loop over each product, but rather than place the product display info in that file, I’d like to pull it into a separate file that I can then use in other templates. Make sense?
So a piece of my /catalog/product/list.phtml file might look something like this:
foreach ($_productCollection as $_product)
render_product_snapshot($_product); //this being the area that I'm not sure how to achieve
For my purposes, all of my products are simple, so nothing complex is necessary.
Any help/thoughts would be greatly appreciated. Thanks!