Untitled
unknown
plain_text
3 years ago
2.5 kB
2
Indexable
if ($import_type == 'new_customer') { if (empty($address_matches)) { $contact_id = ['new']; } else { if (!empty($existing_addresses)) { echo "Skipping row " . ($q + 1) . "<br/>"; $contactIds[] = 0; continue; } else { $contact_id = ['new']; } } } if ($import_type == 'existing_address') { if(empty($address_matches)) { throw new Exception('Empty address identifier'); } if (empty($existing_addresses)) { echo "Skipping row " . ($q + 1) . "<br/>"; $contactIds[] = 0; continue; } if (empty($matches) || empty($ids)) { if (empty($ids)) { echo "Skipping row " . ($q + 1) . "<br/>"; $contactIds[] = 0; continue; } $contact_id = ['new']; } else { echo "Skipping row " . ($q + 1) . "<br/>"; $contactIds[] = 0; continue; } } if ($import_type == 'existing_customer') { if (empty($ids)) { echo "Skipping row " . ($q + 1) . "<br/>"; $contactIds[] = 0; continue; } else { $contact_id = $ids; } }
Editor is loading...