How to add stock availability options in magento programmatically

I got a problem while trying to change a value in stock availability in product list. I attach my code, where i tried to make a new if-option, in which i am trying to check the qty of a product in database and if it is exactly the price i want to, then it enters the first and right "if" and shows the right message.

how to add stock availability options in magento programmatically

By posting your answer, you agree to the privacy policy and terms of service. Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list.

how to add stock availability options in magento programmatically

Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us. Log In Sign Up. Join the Stack Overflow Community.

Programmatically create a configurable Magento product

Stack Overflow is a community of 7. Join them; it only takes a minute: Magento Change Stock Availability Programmatically Ask Question. Thanks for your help.

how to add stock availability options in magento programmatically

Guerra 2, 1 12 Thanks for your answer. I will try that. But i want to check that quantity price if it is the right one. Sign up or log in StackExchange.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

WebGL Jobs

Stack Overflow works best with JavaScript enabled. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

Rating 4,4 stars - 680 reviews
inserted by FC2 system