WP e-Commerce Related Products
Product images different size depending on the category (2 posts)

  1. moodytryme
    Posted 3 years ago #

    Hi !

    In the file wpec-related-product.php, is there a way to show different heights and weights of the product images depending on the category to which the product belong ?
    Is there a dynamical way to ask that : if a related product belongs to a specific category, the product image would have a different size ?

    Example : I have this book in product category Poems, and an another book in product category Novel.
    I would like that when they appear as related product, the product images of category Poem have the size 100*120 and the product images from category Novels show the size 150*130.

    Thanks !


  2. moodytryme
    Posted 3 years ago #

    <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(100, $height); ?>"/>Ligne 98 wpec-related-product.php

    How can I say "If my product is in category XX, then the product thumbnail will have a specific height/weight" ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP e-Commerce Related Products
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic