Skip to content
  • 2024
  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 2004
  • 2003
  • 2002
  • 2001
  • 2000
  • 1999
  • 1998
  • 1997
  • 1996
  • 1995
Timeline
Linkedin page opens in new window
Mihai MATEI
Software Engineer
Mihai MATEIMihai MATEI
  • Home
  • Portfolio
  • Blog
  • Gazduire Domenii
  • Oferte
  • Contact
Search:
  • Home
  • Portfolio
  • Blog
  • Gazduire Domenii
  • Oferte
  • Contact

Daily Archives: 20/04/2017

You are here:
  1. Home
  2. 2017
  3. April
  4. 20

Magento add new attribute options programatically and return the option id

MagentoBy admin20/04/2017Leave a comment

Insert attribute option and return option id in Magento 1.x This article presents three methods to add attribute options in a loop and return the inserted option_id correctly. If you do this in a loop to add the options, you may find out that if you just try to getOptionId($value) on the attribute will return…

Mihai MATEI
(C) 2017 Mihai MATEI
  • 2024
  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 2004
  • 2003
  • 2002
  • 2001
  • 2000
  • 1999
  • 1998
  • 1997
  • 1996
  • 1995
Timeline
Go to Top