Page 1 of 1

Magento Integration - Web Enabled products

PostPosted: Wed Jul 19, 2017 5:11 pm
by kyra
Hi,

I have a modified trigger setup in the database to only export JIWA products that are "Web Enabled" which is working fine.

My question is: how can I now reference the "Web Enabled" value in the CreateOrUpdateMagentoProductsFromJiwa method to update Magento product statuses accordingly?

Eg.

if (inventory.webEnabled == true)
{
productData.status = "1"; // set item as active in Magento
}
else
{
productData.status = "0"; // set item as inactive in Magento
}

Thanks,

Re: Magento Integration - Web Enabled products  Topic is solved

PostPosted: Wed Jul 19, 2017 5:19 pm
by Scott.Pearce
Your example looks correct to me, other than capitalisation ("webEnabled" should be "WebEnabled").