ErrorException [ Notice ]: Undefined index: discount_price

APPPATH/views/site/pages/v_one_product.php [ 53 ]

48 ?>
49 <script>
50   gtag('event', 'view_item', {
51     'send_to': 'AW-405070479',
52     'user_id': '<?=$userId?>',
53     'value': '<?= number_format($product['discount_price'] !== '0' ? $product['discount_price'] : $product['price'], 2, '.', '') ?>',
54     'items': [{
55       'id': '<?=$product['id']?>',
56       'google_business_vertical': 'retail'
57     }]
58   });
  1. APPPATH/views/site/pages/v_one_product.php [ 53 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)