class: SmartyResource mimetype: text/html Menu Item Edit {if $resource->redirect eq 'yes'} {/if} {if $resource->refresh eq 'yes'} {/if} {literal} {/literal} home

Menu Type {$resource->menu_type_name|escape} {if $resource->item_id neq NULL}

{else} {/if} item name:
external id:
short name:
description:


priority:
active:

prices:

{foreach from=$resource->sizes key=sizekey item=sizeval} {assign var=sid value=$sizeval.size_id} {assign var=sizeprice_id value=$resource->size_prices.$sid.item_size_id} {assign var=active value=$resource->size_prices.$sid.active} {assign var=price value=$resource->size_prices.$sid.price} {assign var=external_id value=$resource->size_prices.$sid.external_id} {assign var=itemsize_priority value=$resource->size_prices.$sid.priority} {if $price eq null} {assign var=price value="0.00"} {assign var=active value="N"} {assign var=itemsize_priority value=$sizeval.priority} {/if} {/foreach}
size idsize nameactivepriceexternal_idpriorityitem_size_id
{$sizeval.size_id}{$sizeval.size_name}{$sizeprice_id}
{if $resource->merchant_id eq '0'}

update/create daughter price records: {/if}

{foreach from=$resource->modifier_groups key=groupkey item=groupval} {assign var=modifier_group_id value=$groupval.modifier_group_id} {assign var=item_modifier_group_map_id value=$resource->allowed_modifier_groups.$modifier_group_id.map_id} {if $item_modifier_group_map_id neq null} {assign var=checked value="checked"} {assign var=display_name value=$resource->allowed_modifier_groups.$modifier_group_id.display_name} {assign var=min value=$resource->allowed_modifier_groups.$modifier_group_id.min} {assign var=max value=$resource->allowed_modifier_groups.$modifier_group_id.max} {assign var=price_override value=$resource->allowed_modifier_groups.$modifier_group_id.price_override} {assign var=price_max value=$resource->allowed_modifier_groups.$modifier_group_id.price_max} {assign var=priority value=$resource->allowed_modifier_groups.$modifier_group_id.priority} {assign var=combo_tag value=$resource->allowed_modifier_groups.$modifier_group_id.combo_tag} {assign var=unchecked value=""} {else} {assign var=checked value=""} {assign var=display_name value=$groupval.modifier_group_name} {assign var=min value=""} {assign var=max value=""} {assign var=price_override value="0.00"} {assign var=price_max value=""} {assign var=priority value=$groupval.priority} {assign var=combo_tag value=""} {assign var=unchecked value="checked"} {/if} {if $resource->merchant_id eq '0' || $checked eq 'checked'} {/if} {/foreach}
modifier groupalloweddisplay nameminmax$ override$ maxprioritycombo tag
{$groupval.modifier_group_name|escape} merchant_id neq '0'}disabled{/if}/>
{if $resource->merchant_id eq '0'}

Apply these Item Modifier Group Map Setting to all items in the menu type? (note: this will erase all existing IMGM records for the other items) {/if}

ITEM COMES WITH

{assign var=count value=0} {foreach from=$resource->allowed_modifier_groups key=allowedgroupskey item=allowedgroupsval} {assign var=allowed_modifier_group_id value=$allowedgroupskey} {foreach from=$allowedgroupsval.modifier_items key=modifieritemindex item=modifieritemval} {assign var=modifier_item_id value=$modifieritemval.modifier_item_id} {assign var=item_modifier_item_map_id value=$resource->comes_with_modifier_items.$modifier_item_id.map_id} {assign var=item_modifier_item_min value=$resource->comes_with_modifier_items.$modifier_item_id.mod_item_min} {if $item_modifier_item_map_id eq null} {assign var=checked value=""} {assign var=unchecked value="checked"} {assign var=lockchecked value=""} {else} {assign var=checked value="checked"} {assign var=unchecked value=""} {/if} {assign var=count value=$count+1} {/foreach} {/foreach}
Group: {$resource->modifier_group_name_array.$allowed_modifier_group_id}
    modifier itemcomes with
{$modifieritemval.modifier_item_name} merchant_id neq '0'}disabled{/if}/>merchant_id neq '0'}disabled{/if}/>