Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Extend Web services API to include exists method - Example product.exists
 
ShopGuy
Guru
 
Total Posts:  462
Joined:  2008-09-07
 

It would be nice to be able to determine if a product exists or not. This way, you know whether a product is added or not. This is what I was thinking:

$callArgs = array(
                             
'sku'                    => 'product_sku'
                        
);
                    
                        
$client->call($sessionId'product.exist'$callArgs);

In the above “sku” could be any product attribute or even multiple attributes. For example, you could have both “sku” and “name” as an argument. If any product matched ANY attribute / value, then it would return true else false.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top