FancyBox Product Details from Category page
Posted: Wed Aug 25, 2010 5:05 pm
I would like to show product details in a fancybox modal window when a product is clicked from the category page.
Ive got this working using an iframe fancybox linked to the product template, but would prefer not to use the actual product page and iframes.
I am attempting to reference the product details as inline content in the category template, but I dont know how to pass specific product information into the fancybox div.
For example, say my category is T Shirts and I have three products. Blue Shirt, Red Shirt and White Shirt. When you click the Blue Shirt image from the T Shirts category page, a fancybox opens with the Blue Shirt popup images, price, description, related products and add to cart button, etc.
In the product template you can just use <?php echo $price; ?> and whatnot. How can I grab that specific product information in the category template? Do I need to define it somehow in the category controller?
Im no php expert, so just doing the best I can to hack together the features Im hoping to implement : ) Thanks for your help!
Ive got this working using an iframe fancybox linked to the product template, but would prefer not to use the actual product page and iframes.
I am attempting to reference the product details as inline content in the category template, but I dont know how to pass specific product information into the fancybox div.
For example, say my category is T Shirts and I have three products. Blue Shirt, Red Shirt and White Shirt. When you click the Blue Shirt image from the T Shirts category page, a fancybox opens with the Blue Shirt popup images, price, description, related products and add to cart button, etc.
In the product template you can just use <?php echo $price; ?> and whatnot. How can I grab that specific product information in the category template? Do I need to define it somehow in the category controller?
Im no php expert, so just doing the best I can to hack together the features Im hoping to implement : ) Thanks for your help!