$url = $drop_button . $edit_button; } else { $url = $this->block->generate_view_link(site_url('pi/product/view', array($product->pid)), array(), TRUE, 'main-content-detail', 'main-content'); } $item = array(block_image($product->image_url), $product->sku, $product->name_cn . br() . $product->name_en, $product->market_model, $product->shelf_code); if (product_can_write('price') or product_can_read('price')) { $item[] = $product->price; } if (product_can_write('stock_count') or product_can_read('stock_count')) { if (in_array($product->sku, $abroad_skus)) { $stock_count_html = "SZ : {$product->stock_count}" . "<br/>" . "UK : {$product->uk_stock_count}" . "<br/>" . "DE : {$product->de_stock_count}" . "<br/>" . "AU : {$product->au_stock_count}" . "<br/>" . "YB : {$product->yb_stock_count}" . "<br/>"; $item[] = $stock_count_html; } else { $item[] = "SZ : {$product->stock_count}" . "<br/>"; } $item[] = fetch_makeup_sku_count($product->sku); } if (product_can_write('min_stock_number') or product_can_read('min_stock_number')) { $item[] = $product->min_stock_number; } if (product_can_write('sale_in_7_days') or product_can_read('sale_in_7_days')) { $item[] = $product->sale_in_7_days; } if (product_can_write('sale_in_15_days') or product_can_read('sale_in_15_days')) { $item[] = $product->sale_in_15_days; } if (product_can_write('sale_in_30_days') or product_can_read('sale_in_30_days')) { $item[] = $product->sale_in_30_days; } if (product_can_write('sale_in_60_days') or product_can_read('sale_in_60_days')) { $item[] = $product->sale_in_60_days;
break; case 'US': $min_stock_number_html .= ' DE : ' . form_input($config_de) . '<br/><br/>'; break; case 'AU': $min_stock_number_html .= ' AU : ' . form_input($config_au) . '<br/><br/>'; break; case 'YB': $min_stock_number_html .= ' YB : ' . form_input($config_yb) . '<br/><br/>'; break; default: break; } } $data[] = array($this->block->generate_required_mark(lang('min_stock_number')), $min_stock_number_html); $data[] = array(lang('make_sku_stock_count'), fetch_makeup_sku_count($product->sku)); } $options_p = array(); foreach ($all_out_packing as $out_packing) { $options_p[$out_packing->status_id] = lang($out_packing->status_name); } if (product_can_read('packing_or_not')) { $data[] = array($this->block->generate_required_mark(lang('packing_or_not')), isset($product->packing_or_not) && isset($options_p[$product->packing_or_not]) ? $options_p[$product->packing_or_not] : lang('no_packing')); } if (product_can_read('packing_material')) { $options = array('01' => '01', '02' => '02', '03' => '03', '04' => '04', '05' => '05', '06' => '06', '07' => '07', '08' => '08', '09' => '09', '10' => '10', '11' => '11', '12' => '12', '13' => '13', '14' => '14', '15' => '15', '16' => '16', '17' => '17', '18' => '18', '19' => '19', '20' => '20'); $data[] = array($this->block->generate_required_mark(lang('packing_material')), form_dropdown('packing_material', $options, $product ? $product->packing_material : '01')); } /** * Product ebay field . */