# ---------------------------------------------------------------------- */ $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'; }else{ $button_status = '0'; } }else{ $button_status = '0'; } $countries = $_shop_detail_get->get_country(); $_condition = $_shop_detail_get->view_condition($product->type_sizefit); ?>