KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: gabrielpadurean on December 23, 2008, 01:22:34 am

Title: how to update a product
Post by: gabrielpadurean on December 23, 2008, 01:22:34 am
hi,
I need to update a product's quantity in the class EditCartSubmitAction, but I'm confused and don't find anything to do this.
something like 
product.setQuantity(0);
save(product)

would be very useful.

How do you suggest me to do it? where to look?

thanks,
gabi
Title: Re: how to update a product
Post by: trevor on December 23, 2008, 08:10:41 am
There is an application API call ( updateInventory() ) to adjust the inventory with respect to an order.

To edit the product quantity directly, you must have administrator privileges and use the Admin API. Call getProduct(), edit the quantity and then call editProduct().
Title: Re: how to update a product
Post by: sachchidanandm31 on November 27, 2017, 10:40:39 am
Hello,

I want to update my product from api/services for all language in konakart. Could you please tell me the service name which updates automatically in all language corresponding to product.


Thanks,
sachchidanand
Title: Re: how to update a product
Post by: julie on November 28, 2017, 11:03:28 am
You can use the KKAdminIf API call, editProductWithOptions().
Title: Re: how to update a product
Post by: sachchidanandm31 on November 28, 2017, 02:10:58 pm
Thanks julie for the update,

Can we pass each language id in editProductswithOption() service. We have 4 language defined at konakart admin end. I want to update each product language tabs.

Could you please suggest me the same.

Thanks
Title: Re: how to update a product
Post by: julie on November 29, 2017, 04:11:03 pm
You pass an array of description objects. One for each language.