• I’m trying to change the quantity selector based on the catagory ID in Wp E commerce.

    if(wpsc_product_category_id()==4){
    echo $cupcakes;}

    Naturally I thought that code would work because the next one works.
    I don’t want to use the below code 20 plus times and then when I come to add new products to that category, have to add the id like below

    if(wpsc_the_product_id()==267){
    echo $cupcakes;}

    Any one have any ideas what I’m doing wrong ?

  • The topic ‘WP E-Commerce If statement on category ID’ is closed to new replies.