How to get Custom Options Programmatically in Magento

前端 未结 7 2195
天涯浪人
天涯浪人 2020-12-09 05:20

I have a couple products at checkout that I need to be able to get all of the custom options that are selected for them through code.

Any help is much appreciated! <

7条回答
  •  攒了一身酷
    2020-12-09 05:57

    Please note that

    $product->hasCustomOptions()
    

    in "Knowledge Craving"'s solution does always return false (at least in my case, Magento 1.6.2). Therefore the if-condition is never fulfilled and the block below is not executed.

提交回复
热议问题