Support » Plugin: WP e-Commerce Related Products » Product images different size depending on the category

  • 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 !

Viewing 1 replies (of 1 total)
  • <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” ?

Viewing 1 replies (of 1 total)
  • The topic ‘Product images different size depending on the category’ is closed to new replies.