Skip to content

Instantly share code, notes, and snippets.

@bartwind
Last active October 12, 2021 22:06
Show Gist options
  • Save bartwind/753e9718358f2e544f5c3bc2ef87d46a to your computer and use it in GitHub Desktop.
Save bartwind/753e9718358f2e544f5c3bc2ef87d46a to your computer and use it in GitHub Desktop.
Webkul QuickBooks plugin PrestaShop - missing functionality to import products with combination
<?php
public function ajaxProcessCreateQbProductOnPs()
{
//...
if (!$mappedDetail['id_ps_product_attribute'])
{
$objProductMap->createUpdatePsProduct($product, $mappedDetail['id_ps_product']);
$logger->logInfo($this->l($product['Id'] . 'Updated successfully.'));
$data = array(
'status' => 'ok',
'msg' => 'Product Updated successfully.'
);
}
else
{
$logger->logInfo($this->l($product['Id'] . 'Product can not be update. Becuase it have combinations on prestashop.'));
$data = array(
'status' => 'error',
'msg' => 'Product can not be update. Becuase it have combinations on prestashop.'
);
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment