WordPress.org

Forums

WP E commerce plugin issue -modify "Out of stock" functionality (1 post)

  1. cocolin
    Member
    Posted 2 years ago #

    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'";
    else
    return '';

Topic Closed

This topic has been closed to new replies.

About this Topic