Creating a Custom MODGRP Chain

Home Forums Knowledge Base Edit Pro Creating a Custom MODGRP Chain

  • This topic has 0 replies, 1 voice, and was last updated 19 years ago by Rob.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1670
    Rob
    Member

    Creating a Custom MODGRP Chain

    You have been working with menu groups, mod groups, and mod sequences for a while now and you’ve developed a pretty good understanding of how they fit together…. What’s that? You haven’t? Well read Styling with Modifier Sequences and return to this tech tip.

    You have been working with menu groups, mod groups, and mod sequences for a while now and you’ve developed a pretty good understanding of how they fit together. Most menus can easily be styled using these features, but every once in a while you run into a situation where you need a little something different. Maybe you need to enter a dollar amount or a weight after the item is selected, or maybe you just want to use a different modifier window for this one item. The secret to doing this is with a custom MODGRP chain.

    When a modifier sequence calls a modifier group, it normally does so by running the MODGRP_X chain. However it first looks for the existence of a chain called MODGRPxx, where xx is the modifier group expressed as a two digit number. By creating a custom chain, you can alter the behavior of a particular modifier group to fit your need. Here are some examples.

    The Custom Window

    [img:ar4fccr7]http://www.possupport.net/dealer/kbase/images/modgrp1.gif[/img:ar4fccr7]

    This is probably the simplest use of a custom MODGRP chain. Suppose a customer wants a red window instead of a blue window for the salad dressing mod group to remind the servers that they need to put the dressing on the salad. Then use a chain that looks something like this.

    ** TouchPRO Instruction Chain **

              — MODGRP01 —

    Window = REDMOD

    Sequence:Populate    ;Fill up autoPLU’s with ModGrp

    If Status>0       ;If PLU’s in this ModGRP?

    Accept Touch

    END IF

    Close 1 window     

    Sequence: Next        ;Perform next ModGRP in sequence

    The Information Window

    [img:ar4fccr7]http://www.possupport.net/dealer/kbase/images/modgrp2.gif[/img:ar4fccr7]

    There don’t actually have to be any PLU’s in the product database assigned to a particular modifier group to use that group. Suppose you want a warning window to pop up for certain steaks reminding them that they are only cooked Well Done. Simply assign those steaks to a mod sequence that runs a mod group with this chain.

    ** TouchPRO Instruction Chain **

              — MODGRP02 —

    Window = WDWARN

    Delay 4 Seconds

    Close 1 window

    Sequence: Next        ;Perform next ModGRP in sequence

    The Dollar Entry Window

    Here is a chain that lets you designate an item as being a miscellaneous item and pops open a window with a 10-key pad to allow you to key in the amount.

    [img:ar4fccr7]http://www.possupport.net/dealer/kbase/images/modgrp3.gif[/img:ar4fccr7]

    ** TouchPRO Instruction Chain **

              — MODGRP03 —

    $ Amount =            ;Initialize Amount

    PLU = HI:PLU          ;Grab PLU number

    Window = MISCENTR    ;Load Amount

    Wait for ‘Move On’                   

    Cancel Item          ;Cancels the item

    ‘@MODSEQ-‘            <img decoding=” title=”Grin” />on’t let the next command trigger a new sequence

    +?: <>    ;Reorder the item with the keyed in price

    ‘@MODSEQ+’            ;Turn mod sequences back on                   

    Close 1 Window     

    Sequence: Next        ;Go to next mod group in sequence

    The Order by Weight Window

    [img:ar4fccr7]http://www.possupport.net/dealer/kbase/images/modgrp4.gif[/img:ar4fccr7]

    I had a customer a few months back that wanted to sell a few items by weight. I wrote this chain, which interprets the price in the product database as the price per pound, then pops up a 10-key pad to let the operator key in the weight. Imagine how slick this would have been with the Scale Interface.

    ** TouchPRO Instruction Chain **

              — MODGRP04 —

    Dollar 1 =            ;Initialize Dollar1

    Window = WEIGHT      ;Load Dollar 1

    Wait for ‘Move On’                     

    PLU = HI:PLU          ;Grab PLU Number

    $ Amount = HI:Price  ;Grab price

    Cancel Item          ;Cancels the item

    $ Amount * Dollar 1  ;Calculate the price

    ‘@MODSEQ-‘            <img decoding=” title=”Grin” />on’t let the next command trigger a new sequence

    +?: <>    ;Reorder the item with the keyed in price

    ‘@MODSEQ+’            ;Turn mod sequences back on

    Close 1 Window     

    Sequence: Next        ;Go to next mod group in sequence

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.