Exchange FAQs: How Do I Show the Product Featured Image on Archive/Category Pages

From IThemes Codex
(Difference between revisions)
Jump to: navigation, search
(See Also)
 
(5 intermediate revisions by one user not shown)
Line 21: Line 21:
 
<br />
 
<br />
  
 +
__NOTOC__
 
__NOTOC__
 
__NOTOC__
 
==See Also==
 
==See Also==
  
 +
*[[:Exchange_FAQs:_Do_I_Have_to_Use_an_iThemes_Theme_with_Exchange|Do I Have to Use an iThemes Theme with Exchange]]
 +
*[[:Exchange_FAQs:_How_Do_I_Change_State_to_Province_in_the_Billing_and_Shipping_Address_Forms|How Do I Change State to Province in the Billing and Shipping Address Forms]]
 +
*[[:Exchange_FAQs:_How_Do_I_Change_Where_the_User_Redirects_to_After_Logging_Out|How Do I Change Where the User Redirects to After Logging Out]]
 +
*[[:Exchange_FAQs:_How_Do_I_Create_a_Custom_Product_Category_Page|How Do I Create a Custom Product Category Page]]
 +
*[[:Exchange_FAQs:_How_Do_I_Create_Custom_Styles_for_Exchange|How Do I Create Custom Styles for Exchange]]
 +
*[[:Exchange_FAQs:_How_Do_I_Edit_My_Template_Files|How Do I Edit My Template Files]]
 +
*[[:Exchange_FAQs:_How_Do_I_Resolve_a_Theme_Conflict|How Do I Resolve a Theme Conflict]]
 
*[[:Exchange_FAQs:_How_Do_I_Setup_My_Store_Page/Display_My_Products|How Do I Setup My Store Page/Display My Products]]
 
*[[:Exchange_FAQs:_How_Do_I_Setup_My_Store_Page/Display_My_Products|How Do I Setup My Store Page/Display My Products]]
 
*[[:Exchange_FAQs:_How_Do_I_Show_the_Product_Featured_Image_on_Archive/Category_Pages|How Do I Show the Product Featured Image on Archive/Category Pages]]
 
*[[:Exchange_FAQs:_How_Do_I_Show_the_Product_Featured_Image_on_Archive/Category_Pages|How Do I Show the Product Featured Image on Archive/Category Pages]]
 
+
*[[:Exchange_FAQs:_Troubleshooting_the_PayPal_Add-ons|Troubleshooting the PayPal Add-ons]]
 
==Quick Links==__NOEDITSECTION__
 
==Quick Links==__NOEDITSECTION__
  

Latest revision as of 09:31, April 9, 2015

The Archive/Category pages of your site are controlled by your theme, not by Exchange. This means, by default, those pages won't pull in the featured images for your products.

To have them do this, either in your archive.php or category.php file (whichever file your theme calls, for instance Twenty Eleven calls archive.php), enter the following code right after your loop starts:

<?php it_exchange_set_product( $post->ID ); ?>

Then, where you want the image to show, enter this code:

<?php it_exchange( 'product', 'featured-image', array( 'size' => 'thumbnail' ) ); ?>

So it'll look something like this (example is from the Twenty Eleven archive.php file):


ShowProductFeaturedImages.png



See Also

Quick Links

Resources

  • Tutorials - Short video tutorials to help you become an Exchange expert.

Support

Report & Request


← Back to Exchange Codex Home

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox