TheExtensionLab / MegaMenu

Magento MegaMenu extension
27 stars 6 forks source link

Attribute List Option Position Does Not Work #17

Closed sprankhub closed 8 years ago

sprankhub commented 8 years ago

If I use something like this:

{{widget type="theextensionlab_megamenu/widget_attribute_list" category_id="23" option_ids="{\"133\":[{\"position\":\"20\"}],\"131\":[{\"position\":\"10\"}]}" display_on="small,medium,large" list_columns="1" template="theextensionlab/megamenu/attributes/list.phtml"}}

The position attribute is ignored. Option 133 will be shown before 131.

JamesAnelay commented 8 years ago

This is now fixed (on dev branch) (looks like I was thinking ahead by putting the positon in the grid but never acctuly impelmented it)

If you've extended the template(s) you will need to replace $optionIds = json_decode($this->getOptionsIds,true); with $optionIds = $this->getOptionIds();

Will wait on your reply to the other issue before making a new release.

sprankhub commented 8 years ago

Nice, thanks!