Skip to content

toppings & options #95

Answered by RIAEvangelist
lastraum asked this question in Q&A
Feb 26, 2021 · 5 comments · 1 reply
Discussion options

You must be logged in to vote

Here's an example from v3, options format has not changed though.

import {Item} from 'dominos';

const cheesePizza=new Item(
    {
        ID:1,
        code:'14SCREEN',
        options:{
            // this says, for the whole pizza put sauce on it
            X: {'1/1' : '1'}, 
            
            //this says for the whole pizza put double cheese
            C: {'1/1' : '2'}
        }
    }
)

if you console.dir out the products your are interested you will see the options string in there. you just have to sort of poke around. I never got too deep into them. If you want to look into it and learn more, I would take any documentation, code samples or whatever.

console.dir(menu.menu..., {

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lastraum
Comment options

Answer selected by RIAEvangelist
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants