Magento Integration - Web Enabled products  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Magento Integration - Web Enabled products

Postby kyra » Wed Jul 19, 2017 5:11 pm

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,
kyra
I'm new here
I'm new here
 
Posts: 7
Joined: Wed Dec 21, 2016 10:59 am

Re: Magento Integration - Web Enabled products  Topic is solved

Postby Scott.Pearce » Wed Jul 19, 2017 5:19 pm

Your example looks correct to me, other than capitalisation ("webEnabled" should be "WebEnabled").
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 743
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 11 guests