Integrating into custom template
-
Hello, I am trying to integrate wp ecommerce into my custom theme. I am using the product display loop, but I am only getting the page title displayed as a product, rather than products themselves. Any help appreciated Thank you
https://ww.wp.xz.cn/plugins/wp-e-commerce/
<?php while (wpsc_have_products()) : wpsc_the_product(); ?> <?php if(wpsc_show_thumbnails()) :?> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 shop-item"> <?php if(wpsc_the_product_thumbnail()) :?> <a rel="<?php echo wpsc_the_product_title(); ?>" class="<?php echo wpsc_the_product_image_link_classes(); ?>" href="<?php echo esc_url( wpsc_the_product_image() ); ?>"> <img class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(); ?>"/> </a> <?php else: ?> <a href="<?php echo esc_url( wpsc_the_product_permalink() ); ?>"> <img class="no-image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php esc_attr_e( 'No Image', 'wpsc' ); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo WPSC_CORE_THEME_URL; ?>wpsc-images/noimage.png" width="<?php echo get_option('product_image_width'); ?>" height="<?php echo get_option('product_image_height'); ?>" /> </a> <?php endif; ?> </div> <?php endif; ?> <?php endwhile; ?>
The topic ‘Integrating into custom template’ is closed to new replies.