- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
foreach ($item as $prop) {
if ($prop['tag']==$this->props[0]){
$new_item['sku']=(int)$prop['value'];
} else {
if ($prop['tag'] == $this->props[1]) {
$new_item['name']=$prop['value'];
} else {
if ($prop['tag'] == $this->props[2]) {
$new_item['price']=(float)$prop['value'];
} else {
if ($prop['tag'] == $this->props[3]) {
$new_item['is_spec']=(float)$prop['value'];
} else {
if ($prop['tag'] == $this->props[4]) {
$new_item['spec_price']=(float)$prop['value'];
} else {
if ($prop['tag'] == $this->props[5]) {
$new_item['old']=(float)$prop['value'];
}
}
}
}
}
}
}