WordPress.org

Support

Support » Plugins and Hacks » [Resolved] How to add extra field to certain product category?

[Resolved] How to add extra field to certain product category?

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

  • The topic ‘[Resolved] How to add extra field to certain product category?’ is closed to new replies.