marellocommerce / magento2-marello-bridge Goto Github PK
View Code? Open in Web Editor NEWMarello Bridge Extension for Magento 2
License: Other
Marello Bridge Extension for Magento 2
License: Other
Update order fails because of not exposed workflow. Error at line 77.
Hello,
I am not able to run your code in Magento CE. You are using RMA classes which I cannot find like
Magento\Rma\Model\RmaRepository
Magento\Rma\Model\ResourceModel\Item\Collection
Magento\Rma\Model\ResourceModel\Item\CollectionFactory
Is this a EE Module?
[Magento\Framework\Exception\LocalizedException]
Area code is already set
marello:app:status
The process in EntityQueueManagement.php stops with limit of batch size without iteration through the queue.
This code loads queue fully with setting current page for collection
/**
* {@inheritdoc}
* @return $this
*/
protected function getQueueCollection($curPage = 1)
{
$entityQueueCollection = $this->entityQueueFactory->create()->getCollection();
$entityQueueCollection->addFilter('processed', ['eq' => 0]);
return $entityQueueCollection->setPageSize($this->getBatchSize())->setCurPage($curPage);
}
/**
* {@inheritdoc}
* @return bool
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function processQueue()
{
$allLoaded = FALSE;
$curPage = 1;
$i = 1;
while(!$allLoaded) {
$collection = $this->getQueueCollection($curPage);
if($collection->getSize() >= $i) {
try {
foreach ($collection as $queueItem) {
$eventType = $queueItem->getEventType();
$processor = null;
if ($eventType) {
$processor = $this->getEntityProcessor($eventType);
}
$entityData = $this->getEntityData($queueItem);
$result = $processor->process($entityData);
var_dump($result);
if ($result) {
$queueItem->setProcessed(1);
$queueItem->setProcessedAt(new \DateTime('now'));
$this->entityQueueRepository->save($queueItem);
}
$i++;
}
} catch (\Exception $e) {
throw new \Magento\Framework\Exception\LocalizedException(__('Could not process Queue item'));
return false;
}
$curPage++;
} else {
$allLoaded = TRUE;
}
}
return true;
}
After installation row "marello_export_status" is missing in sales_order_grid. Placing order is not possible.
I have experienced a special case where customer creation stopped. The default store ID becomes "0" in some cases. I have only loaded one default store with ID "1".
I have added these lines in CustomerDataConverter:
$websiteId = $order->getStore()->getWebsite()->getId();
$customer = $this->customerRepository->get($order->getCustomerEmail(), $websiteId);
Now it works without problems
Please update magento/framework in composer.json to "100.1.*"
Add sequence Magento_Sales to module.xml to ensure your module is loaded after Magento_Sales.
<sequence>
<module name="Magento_Sales"/>
</sequence>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.