How to display Option List in wishlist sidebar magento -


How to display the options list in the wish list sidebar magenta? I use this code! However, thanks in advance it is not working.

  & lt ;? Php if ($ _options = $ this-> GetOptionList ()):? & Gt; & Lt; div class = "truncated" & gt; & Lt; div class = "truncated_full_value" & gt; & Lt; dl class = "item-option" & gt; & Lt ;? php foreach ($ _options $ _options) as: & Gt; & Lt; Dt & gt; & Lt ;? php echo $ this- & gt; escapeHtml ($ _ option ['label'])? & Gt; & Lt; / Dt & gt; & Lt; dd & gt; & Lt ;? Php if (is_array ($ _ option ['value'])):? & Gt; & Lt ;? Php echo nl2br (implode ("\ n", $ _option ['value']))? & Gt; & Lt ;? Php else:? & Gt; & Lt ;? php echo $ _option ['value']? & Gt; & Lt ;? Php endif; ? & Gt; & Lt; / Dd> & Lt ;? php endforeach; ? & Gt; & Lt; / DL & gt; & Lt; / Div & gt; & Lt; a href = "#" onclick = "return false;" Class = "description" & gt; & Lt ;? php echo $ this- & gt; __ ('description')? & Gt; & Lt; / A & gt; & Lt; / Div & gt; & Lt ;? Php endif; ? & Gt;    

Try this:

  & lt; php $ option = $ this- & gt; GetOptionList (); ? & Gt; & Lt ;? Php if ($ option):? & Gt; & Lt; div class = "truncated" & gt; & Lt; div class = "truncated_full_value" & gt; & Lt; div class = "item-option" & gt; & Lt; P & gt; & Lt ;? Php echo $ this- & gt; __ ('Option Description'); ? & Gt; & Lt; / P & gt; & Lt; DL & gt; & Lt ;? php foreach ($ option as option $):? & Gt; & Lt; Dt & gt; & Lt ;? php echo $ this- & gt; escapeHtml ($ option ['label'])? & Gt; & Lt; / Dt & gt; & Lt; dd & gt; & Lt ;? Php if (is_array ($ option ['value'])):? & Gt; & Lt ;? Php echo nl2br (implode ("\ n", $ option ['value']))? & Gt; & Lt ;? Php else:? & Gt; & Lt ;? php echo $ option ['value']? & Gt; & Lt ;? Php endif; ? & Gt; & Lt; / Dd> & Lt ;? php endforeach; ? & Gt; & Lt; / DL & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; a href = "#" onclick = "return false;" Class = "description" & gt; & Lt ;? php echo $ this- & gt; __ ('See details')? & Gt; & Lt; / A & gt; & Lt; / Div & gt; & Lt ;? Php endif? & Gt;    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -