WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] How to add extra field to certain product category? (1 post)

  1. mustisand
    Member
    Posted 1 year ago #

    Hi,

    I have little problem with WP e-commerce (eCommerce Twenty Eleven theme). I want to add one static extra text/image field for one product category, category slug is dress-formal-slacks.
    And I added section1 to style.css file.
    If I just add <div id="section1">blablabla</div> to single-product.php it displays "blablabla" (on all product pages), but together with php code, it doesnt work at all.
    Maybe I'm missing something, or it is wrong way to solve this? There is only one product in this category and I decided to add few text lines and img src directly to single-product.php file.

    <?php
    if(is_category('dress-formal-slacks')){
    <div id="section1">blablabla</div>;
    }
    ?>

    http://wordpress.org/extend/plugins/wp-e-commerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.