title: TypeError: Cannot read property "price" from undefined in <eval> at line number
body: <p>someone wrote this JS for me and it worked earlier but now it does not; I cannot get hold of that person so I am reaching out for assistance. I had spent numerous hours trying to correct this but I am not experienced enough with JS . </p>
  
  <p>I am receiving this error:</p>
  
  <p>TypeError: Cannot read property "price" from undefined in  at line number 67</p>
  
  <pre><code>// Create input variables
  var orderItems = [];
  var rowsArray = ${rows([]);object(of=json)};
  var auxObj = {
  'Lip Balm - Orange Coconut': ${lipBalmOrangeCoconut(0)},
  'Lip Balm - Raspberry Vanilla': ${lipBalmRaspberryVanilla(0)},
  'Bath Bomb - Assorted - 50 mg THC': ${bathBombAssorted50MgThc(0)},
  'Buddha Buddha - 200 mg THC': ${buddhaBuddha200MgThc(0)},
  'Top Lemon Balm Salve': ${topLemonBalmSalve(0)},
  'Buddha Bar - 300 mg THC': ${buddhaBar300MgThc(0)},
  'BC Skunk - Hybrid': ${bcSkunkHybrid(0)},
  'Blue King - Hybrid': ${blueKingHybrid(0)},
  'CBD Treat - Hybrid': ${cbdTreatHybrid(0)},
  'Dr. Krippling - Indica': ${drKripplingIndica(0)},
  "God's Blue Cough - Hybrid": ${godsBlueCoughHybrid(0)},
  'Island Sweet Skunk - Sativa': ${islandSweetSkunkSativa(0)},
  'Lemon Sour Diesel - Hybrid': ${lemonSourDieselHybrid(0)},
  'MI-O - Sativa': ${mioSativa(0)},
  'OG Kush - Hybrid': ${ogKushHybrid(0)},
  'Strawberry Skunk - Hybrid': ${strawberrySkunkHybrid(0)},
  'Bubble Hash ': ${bubbleHash(0)},
  'CBD - 2 capsules per package': ${cbd2CapsulesPerPackage(0)},
  'CBD - 30 capsules per bottle': ${cbd30CapsulesPerBottle(0)},
  'CBD Phoenix Tears ': ${cbdPhoenixTears(0)},
  'THC Phoenix Tears ': ${thcPhoenixTears(0)},
  'THC grape seed oil (indica) 900 mg / 30 ml': 
  ${thcGrapeSeedOilindica900Mg30Ml(0)},
  'THC grape seed oil (sativa) 900 mg / 30 ml': 
  ${thcGrapeSeedOilsativa900Mg30Ml(0)},
  '1:1 THC:CBD grape seed oil 200 mg / 30 ml': 
  ${11ThccbdGrapeSeedOil200Mg30Ml(0)},
  'CBD grape seed oil 150 mg / 30 ml': ${cbdGrapeSeedOil150Mg30Ml(0)},
  'Chocolate Chip Cookie - 15 mg THC': ${chocolateChipCookie15MgThc(0)},
  'Ginger Chew Cookie - 30 mg THC': ${gingerChewCookie30MgThc(0)},
  'Red Licorice Bites - 125 mg THC': ${redLicoriceBites125MgThc(0)},
  'Double Dose Peanut Butter Cup - 200 mg THC': 
  ${doubleDosePeanutButterCup200MgThc(0)},
  'Cherry - 125 mg THC (hybrid)': ${cherry125MgThchybrid(0)},
  'Rootbeer - 125 mg THC (sativa)': ${rootbeer125MgThcsativa(0)},
  'Watermelon - 125 mg THC (hybrid)': ${watermelon125MgThchybrid(0)},
  'Cherry - 120 mg (indica)': ${cherry120Mgindica(0)},
  'Blue Raspberry - 120 mg (indica)': ${blueRaspberry120Mgindica(0)},
  'Peach  - 120 mg (sativa)': ${peach120Mgsativa(0)},
  'Strawberry Banana - 120 mg (sativa)': ${strawberryBanana120Mgsativa(0)},
  'Lollipops - Assorted Flavors - 150 mg THC': 
  ${lollipopsAssortedFlavors150MgThc(0)},
  'Cotton Candy - Original - 180 mg THC': ${cottonCandyOriginal180MgThc(0)},
  'Cotton Candy - Tutti Fruitti - 180 mg THC': 
  ${cottonCandyTuttiFruitti180MgThc(0)},
  'Cranberry Ice Tea Apothecary - 60 mg THC': 
  ${cranberryIceTeaApothecary60MgThc(0)},
  'Lemon Ice Tea Apothecary - 60 mg THC': ${lemonIceTeaApothecary60MgThc(0)},
  'Mango Ice Tea Apothecary - 60 mg THC': ${mangoIceTeaApothecary60MgThc(0)},
  'Peach Ice Tea Apothecary - 60 mg THC': ${peachIceTeaApothecary60MgThc(0)},
  'Coconut Oil - 500 mg THC': ${coconutOil500MgThc(0)},
  'Olive Oil - 400 mg THC': ${oliveOil400MgThc(0)},
  'House Strain - Hybrid': ${houseStrainHybrid(0)},
  };
  
  // Create a "lookup table" for stock nr. and price
  var lookup = {};
  for (var i = 0, len = rowsArray.length; i &lt; len; i++) {
  lookup[rowsArray[i].formName] = rowsArray[i];
  }
  
  var amount = 0,
  subtotal = 0,
  tax = 0,
  shipping = 20,
  total = 0;
  
  for (var key in auxObj) {
  if (auxObj[key] !== 0) {
      amount = auxObj[key] * lookup[key].price;
      orderItems.push({
          'value': auxObj[key],
          'name': key,
          'stock': lookup[key].stock,
          'price': lookup[key].price,
          'amount': amount
      });
      subtotal += amount;
  }
  }
  tax = subtotal * 0.05;
  total = subtotal + tax + shipping;
  
  
  // Return output variables
  var result = {
  'orderItems' : orderItems,
  'subtotal': subtotal,
  'tax': tax,
  'total': total
  };
  result;
  </code></pre>
  
  <p>Line 67 'price' has the error.
  I don't know if this amount of code is enough, if you need the full code then please ask.
  I don't know why the error is happening (keep in mind I'm not exp. w/JS) and how to fix it to run.</p>