$_SESSION['shop']['alias'] = $product_alias; $_SESSION['shop']['type'] = $type_alias; $_SESSION['shop']['type_id'] = $product->type_id; $asd = $_shop_detail_get->push_breadcrumbs($product->category_alias, $product->category_id, 'top'); /* # ---------------------------------------------------------------------- # DEFAULT STOCK NON SOLD OUT # ---------------------------------------------------------------------- */ $default_stock = $_shop_detail_get->get_default_size($product->type_id, 0, 1); /* # ---------------------------------------------------------------------- # ON HOLD # ---------------------------------------------------------------------- */ $_count_on_hold = $_shop_detail_get->count_buy_now($default_stock->stock_id, $product->type_id); if($_count_on_hold->rows > 0){ $buy = $_shop_detail_get->get_buy_now($default_stock->stock_id, $product->type_id); if($buy->status == 1 && $buy->stock_quantity > 0){ $button_status = '1';