toppings & options #95
-
Excited for v3.x soon! However, I would like to know how to understand what the codes are for the toppings and options so that i can "build my own" pizza. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
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(menu.menu..., {depth:3}); |
Beta Was this translation helpful? Give feedback.
-
Sadly not yet. You can look at the menu and sort of figure it out because
many items have the defaults written out.
Also... If you wanted too... You could go to the website, look at the
requests as you change the toppings and make a note... Or even just make
some basic notes from the obvious ones in the menu, like P is pepperoni.
If you were to write a table or even just a list in an Options markdown, I
would totally merge it into v3 and people would forever love you and your
delicious opensource contribution.
Insert image of sad puppy and a multitude of obscenely cute kittens here...
…On Sun, Feb 28, 2021, 3:50 PM lastraum ***@***.***> wrote:
Thanks for the quick reply. So there's no reference to what each code is?
X = sauce
C = cheese
Etc
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#95 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC2DEJYUWEYBMTRPE2GW6LTBLJDNANCNFSM4YIAYF3A>
.
|
Beta Was this translation helpful? Give feedback.
-
Even if you just wrote a for loop to process all of the options in the returned menu object, that would be a big help |
Beta Was this translation helpful? Give feedback.
-
I found a URL that can help figure this out. https://order.dominos.com/power/store/8278/menu?lang=en I removed the structured arg from the end and got an unstructured data dump. |
Beta Was this translation helpful? Give feedback.
-
Also, I just realized that all of the options exist on the |
Beta Was this translation helpful? Give feedback.
Here's an example from v3, options format has not changed though.
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.