c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #33412
[Bug 834619] Re: export catalogue -> Fault: <Fault 101: 'Product not exists.'>
Hi all,
I have same kind of issue after magento upgrade on 1.6.
It seems that there are difference to get product id on magento side
according to some web_service.
I modify magento core to test for tierce_price.update and product.update and it works.
It seems that it works around product by Id or sku ??
../app/code/core/Mage/Catalog/Model/Product/Attribute/Tierprice/Api.php
/* Magento 1.6 source
protected function _initProduct($productId, $identifierType = null)
{
$product = Mage::helper('catalog/product')->getProduct($productId, $this->_getStoreId($store), $identifierType);
if (!$product->getId()) {
$this->_fault('product_not_exists');
}
return $product;
}
*/
/* My modif */
protected function _initProduct($productId, $identifierType = null)
{
$product = Mage::helper('catalog/product')->getProduct($productId, $this->_getStoreId($store), $identifierType);
if (!$product->getId()) {
if ($identifierType === null) {
$identifierType = 'sku';
$idBySku = $product->getIdBySku($productId);
if ($idBySku) {
$productId = $idBySku;
$product->load($productId);
}
}
if (!$product->getId()) {
$this->_fault('product_not_exists');
}
}
return $product;
}
/**/
../app/code/core/Mage/Catalog/Model/Product/Api.php
/* Magento 1.6 source
public function update($productId, $productData, $store = null, $identifierType = null)
{
$product = $this->_getProduct($productId, $store, $identifierType);
if (!$product->getId()) {
$this->_fault('not_exists');
}
*/
/* My modif */
public function update($productId, $productData, $store = null, $identifierType = null)
{
$product = $this->_getProduct($productId, $store, $identifierType);
if (!$product->getId()) {
if ($identifierType === null) {
$identifierType = 'sku';
$idBySku = $product->getIdBySku($productId);
if ($idBySku) {
$productId = $idBySku;
$product->load($productId);
}
}
if (!$product->getId()) {
$this->_fault('product_not_exists');
}
/**/
Regards.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/834619
Title:
export catalogue -> Fault: <Fault 101: 'Product not exists.'>
Status in Magento OpenERP Connector:
New
Bug description:
after pressing 'export catalogue' in the magento shops form, I get the error:
Fault: <Fault 101: 'Product not exists.'>
It looks like one product of the stack of products that need to be
send to magento, is actually send, but the others not.
what might be wrong?
regards,
Jeroen
To manage notifications about this bug go to:
https://bugs.launchpad.net/magentoerpconnect/+bug/834619/+subscriptions
References