Ejemplo n.º 1
0
            $type_active = $tempProductType->type_active;
            $type_delete = $tempProductType->type_delete;
            $type_alias = $tempProductType->type_alias;
            $page_title = $tempProductType->page_title;
            $page_description = $tempProductType->page_description;
            $language_code = 'EN';
            $_cron->updateProductTypeLang($id_param, $product_id, $type_code, $type_name, $type_price, $color_id, $type_description, $type_sizefit, $type_information, $type_weight, $type_new_arrival, $type_image, $type_order, $type_sold_out, $type_visibility, $type_active, $type_delete, $type_alias, $page_title, $page_description, $language_code);
        }
    }
}
/* --- CART --- */
if (count($_SESSION['cart_type_id']) > 0) {
} else {
    unset($_SESSION['cart']);
}
$getCartItem = $_cron->getCartItem();
foreach ($getCartItem as $CartItem) {
    $time = date('Y-m-d H:i:s');
    $getCurrentStock = $_cron->get_product_stock($CartItem->TYPE_ID, $CartItem->STOCK);
    $cartTime = $_cron->check_on_hold($CartItem->LAST_UPDATE);
    if ($cartTime->second > 14400) {
        $currentStock = $getCurrentStock->stock_quantity;
        $tempStock = $currentStock + $CartItem->QTY;
        $_cron->order_update_stock($tempStock, $getCurrentStock->stock_id);
        $_cron->updateCart($time, -1, $CartItem->CART_HASH);
        $_cron->updateCartItem($time, -1, $CartItem->CART_HASH);
    }
}
if (isset($_SESSION['cart']['hash'])) {
    $cartHash = $_SESSION['cart']['hash'];
    $getCart = $_cron->getCart($cartHash);