Return min qty with basket api

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Return min qty with basket api

Post by traiyani75 » 27 Apr 2020, 05:15

Hello,

We are using JSON api for android and iOS applications. We have defined min qty of product to add in the basket. It is working fine. Product details API is returning min qty as well. So, we are checking at the time of adding into the basket.

But into the basket screen, we have a plus-minus option on qty too. But, In API to get basket details don't have a parameter for the minimum quantity of product. So, we are not able to set condition over there. How do we fix this? How do we return min qty parameter with basket API in every product?

Thanks

User avatar
aimeos
Administrator
Posts: 7893
Joined: 01 Jan 1970, 00:00

Re: Return min qty with basket api

Post by aimeos » 28 Apr 2020, 07:04

You have extended the mshop_product table for minimum quantity?
The order product items are a condensed data set that does only contain the values really required for ordering a product. You can extend the mshop_order_base_product table as well for your additional data and you should extend the copyFrom() method of the order base product item to add the value to the item.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply