Support » Plugins » Hacks » WP E commerce plugin issue -modify "Out of stock" functionality

  • Hi,
    I want to modify a little bit the “Out of stock” product functionality.
    I want to change it into “Available to order” which means that the products can be added to chart like “In stock” possibility.
    I’ve tried to modify this part of code from wpsc_the_variation_out_of_stock() function (product-template.php) by removing the “disabled=’disabled'” part ..should i change it into enable ??Please help me out ..thnk

    $stock = $stock[0];
    if ( $stock < 1 ) {
    $out_of_stock = true;

    if ( $out_of_stock == true )
    return “disabled=’disabled'”;
    return ”;

  • The topic ‘WP E commerce plugin issue -modify "Out of stock" functionality’ is closed to new replies.