by
7,300 14

Create a raw magento collection

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/120431/Create-a-raw-magento-collection?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
foreach($rawScheduleCollection as $key => $rawSchedule) { $scheduleObject = new Varien_Object(); $scheduleObject->setPosition($currentItemPosition); $scheduleObject->setTaskType($taskType); $scheduleObject->setTaskId($rawSchedule->getTaskId()); $scheduleObject->setCustomerName($rawSchedule->getCustomerName()); $scheduleObject->setCustomerTelephone($rawSchedule->getCustomerTelephone()); $scheduleObject->setTaskAddress($rawSchedule->getTaskAddress()); $scheduleObject->setTaskItem($rawSchedule->getTaskItem()); $scheduleObject->setTaskTime($rawSchedule->getTaskTime()); $scheduleObject->setScheduleItemRemarks($rawSchedule->getScheduleItemRemarks()); $scheduleObject->setAmtToCollect(number_format($itemTotalPrice, 2, '.', '')); $totalScheduleAmt += $itemTotalPrice; $processedScheduleCollection->addItem($scheduleObject); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus