Return min qty with basket api
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Return min qty with basket api
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
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
Re: Return min qty with basket api
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.
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, give us a star
If you like Aimeos, give us a star