$type_description = $tempProductType->type_description; $type_sizefit = $tempProductType->type_sizefit; $type_information = $tempProductType->type_information; $type_weight = $tempProductType->type_weight; $type_new_arrival = $tempProductType->type_new_arrival; $type_image = $tempProductType->type_image; $type_order = $tempProductType->type_order; $type_sold_out = $tempProductType->type_sold_out; $type_visibility = $tempProductType->type_visibility; $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;