Beispiel #1
0
# ----------------------------------------------------------------------
# CALL FUNCTION
# ----------------------------------------------------------------------
*/

$product       = $_shop_detail_get->get_product($product_alias, $type_alias);
$default_image = $_shop_detail_get->get_default_image($product->type_id);
$ready_stock   = $_shop_detail_get->get_data_stock($product->type_id);
$_on_hold      = $_shop_detail_get->count_item_order_status($product->type_id, 'Unpaid', 'Open');

$_on_hold_class = '';

$_count_on_holds = $_shop_detail_get->count_item_hold($product->type_id, 'Open', 'Unpaid');

if($_count_on_holds->rows > 0){
   $_data_on_holds = $_shop_detail_get->get_item_hold($product->type_id, 'Open');
   $_cart_time     = $_cron->check_on_hold($_data_on_holds->order_date);
   
   if($_cart_time->second > 86400){
      $_on_hold_class  = '';
	  $_on_hold_button = ' hidden';
   }else{
      $_on_hold_class  = ' hidden';
	  $_on_hold_button = '';
   }
   
}else{
   
   $count_on_holds_buy = $_shop_detail_get->count_item_hold_buy($product->type_id);
   
   if($count_on_holds_buy->rows > 0){