But its not time issue because if i uncheck the product after 2 weeks, or month its still not being uncheck. and i have checked in my config.php there is no memcache. i have not installed memcache.
I think some issue here - As i dont know about coding.. but i think some problem here functions.php . tell me if i am wrong
echo '<div class="control-group">';
echo '<label class="control-label" for="sSold">' . __('Item Sold', 'delta') . '</label>';
echo '<div class="controls"><input type="checkbox" name="sSold" id="sSold" ' . ($item_extra['i_sold'] == 1 ? 'checked' : '') . ' /></div>';
echo '</div>';
or here
// CHECK IF ITEM MARKED AS SOLD-UNSOLD
function del_check_sold(){
$conn = DBConnectionClass::newInstance();
$data = $conn->getOsclassDb();
$comm = new DBCommandClass($data);
$status = Params::getParam('markSold');
$id = Params::getParam('itemId');
$secret = Params::getParam('secret');
$item_type = Params::getParam('itemType');
if($status <> '' && $id <> '' && $id > 0) {
$item = Item::newInstance()->findByPrimaryKey($id);
if( $secret == $item['s_secret'] ) {
//Item::newInstance()->dao->update(DB_TABLE_PREFIX.'t_item_delta', array('i_sold' => $status), array('fk_i_item_id' => $item['pk_i_id']));
$comm->update(DB_TABLE_PREFIX.'t_item_delta', array('i_sold' => $status), array('fk_i_item_id' => $item['pk_i_id']));
if (osc_rewrite_enabled()) {
$item_type_url = '?itemType=' . $item_type;
} else {
$item_type_url = '&itemType=' . $item_type;
}
header('Location: ' . osc_user_list_items_url() . $item_type_url);
}
}
}
osc_add_hook('header', 'del_check_sold');