• Welcome to KonaKart Community Forum. Please login or sign up.
 

how to update a product

Started by gabrielpadurean, December 23, 2008, 01:22:34 am

Previous topic - Next topic

gabrielpadurean

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

trevor

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().

sachchidanandm31

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

julie

You can use the KKAdminIf API call, editProductWithOptions().

sachchidanandm31

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

julie

You pass an array of description objects. One for each language.