how to add price each size option in add product ?

hi,

how to add price each “size” option in add product ?
like same

Men’s jeans
avvalable size
size (M) , quantity (1) = 20$
size (L) , quantity (2) = 25$
size (XL) , quantity (1) = 30$

and customer can select one size when buy

You may try the follows:

  • Use Lookup Table for user to select product and size, see the tutorial “Dynamic Selection Lists” in the help file.
  • Use AutoFill to fill the price if you use lookup table, see the topic Field Setup → Edit Tag in the help file (look for “Auto-fill”).
  • Use Client Side Events to calculate the price, see the demo project as example: https://phpmaker.dev/demo.php