-
-
Save fforres/be3d23df42eb36323fd5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$file = "/var/www/migroupon/app/tmp/importcsv.csv"; | |
print_r($file); | |
$delimiter = empty($this->params['delimiter']) ? ";" : $this->params['delimiter']; | |
$enclosure = empty($this->params['enclosure']) ? '"' : $this->params['enclosure']; | |
$importCoupon = isset($this->params['import_coupon']); | |
$dealRun = true; | |
if (isset($this->params['dealRun'])) { | |
$dealRun = $this->params['dealRun'] == '1'; | |
} | |
$fd = fopen($file, 'r'); | |
$voucherDate = array(); | |
$DealsIds = array(); | |
while($row = fgetcsv($fd, 0, $delimiter, $enclosure)) { | |
$DealsIds[] = $row[9]; | |
} | |
$NewSalesForce = getModel("NewSalesForce"); | |
$DealShippingInformation = $NewSalesForce->getMulliganFlagByDealId($DealsIds); | |
$row = fgetcsv($fd, 0, $delimiter, $enclosure); | |
print_r($row); | |
print_r("////////////////////////"); | |
while($row = fgetcsv($fd, 0, $delimiter, $enclosure)) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment