function product_buy(req) {

  app.preloader.show();

  localStorage.removeItem('f01_product');  

  $.ajax({

    type: "get",

    url: base_url + 'product_buy',

    data: req,

    success: (res) => {

      if (res.success) {

        app.preloader.hide();

        localStorage.setItem('f01_product', JSON.stringify({

          data: res.results

        }))

        app.views.main.router.navigate('/product/');

      } else {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Add product_trx Error');

      }

    }

  })

}