1

I'm Trying to check whether product has custom options or not in code (my code runs sales_order_place_after event). I have try below code but it does not returning anything. $product->hasCustomOptions() and $product->hasOptions()

Please let me know what i'm missing

  • @Marius You have answered similar question at here stackoverflow.com/questions/25745879/… So may be you can help me – androidjunky Apr 4 '15 at 10:25
  • 2
    Are you sure you are loading the $product model correctly? Maybe you should show more of your code in context? – fantasticrice Apr 4 '15 at 19:49
  • +1, can you show us more of the code to provide more detail please – Ash Smith Apr 8 '15 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.