/** * @param $orderID * @param $data */ public function updateOrder($orderID, $data) { global $db; if (isset($data['price'])) { $data['price'] = fn_buckys_get_btc_price_formated($data['price']); } $res = $db->updateFromArray(TABLE_SHOP_ORDERS, $data, ['orderID' => $orderID]); return; }
<span class="l" style="padding-top:3px;"> <input type="radio" name="listing_fee_type" value="<?php echo BuckysShopProduct::LIST_FEE_PAYMENT_TYPE_BTC; ?> " id="listing_fee_btc" <?php if ($view['my_bitcoin_balance'] < SHOP_PRODUCT_LISTING_FEE_IN_BTC) { echo 'disabled="disabled"'; } ?> > </span> <span class="inputholder"><label for="listing_fee_btc" class="r"><?php echo fn_buckys_get_btc_price_formated(SHOP_PRODUCT_LISTING_FEE_IN_BTC, true); ?> BTC <strong>(<?php echo $view['my_bitcoin_balance']; ?> available)</strong></label></span> <div class="clear"></div> </div> <div class="row" style="margin-top:0px;"> <span class="l" style="padding-top:3px;"> <input type="radio" name="listing_fee_type" value="<?php echo BuckysShopProduct::LIST_FEE_PAYMENT_TYPE_CREDIT;
<div class="subtitle"><?php echo $prodData['subtitle']; ?> </div> <!-- <br /> <div class="itemnum">Item Number: <?php echo $prodData['productID']; ?> </div> --> </div> <div class="n3"> <?php echo fn_buckys_get_btc_price_formated($prodData['price']); ?> BTC </div> <div class="n4 red-bold"> <div class="timeleft"> <?php echo $timeLeftStr; ?> </div> </div> <div class="n5"> <div class="actionpart"> <a href="javascript:void(0)" onclick="deleteShopProduct(<?php echo $prodData['productID'];
/** * Add shipping price for a product * * @param integer $productID * @param array $shippingPriceList array (locationID, price) */ public function addShippingPrice($productID, $shippingPriceList) { global $db; if (!is_numeric($productID) || !is_array($shippingPriceList) || count($shippingPriceList) < 1) { return; } foreach ($shippingPriceList as $shippingPrice) { $param = ['productID' => $productID, 'locationID' => $shippingPrice['locationID'], 'price' => fn_buckys_get_btc_price_formated($shippingPrice['price'])]; $db->insertFromArray(TABLE_SHOP_SHIPPING_PRICE, $param); } }
<span class="titles">Listing Fee</span> </div> <div class="row" style="margin-bottom:0px;"> <span class="l" style="padding-top:3px;"> <input type="radio" name="listing_fee_type" value="<?php echo BuckysTradeItem::LIST_FEE_PAYMENT_TYPE_BTC; ?> " id="listing_fee_btc" <?php if ($view['my_bitcoin_balance'] < TRADE_ITEM_LISTING_FEE_IN_BTC) { echo 'disabled="disabled"'; } ?> > </span> <span class="inputholder"><label for="listing_fee_btc" class="r"><?php echo fn_buckys_get_btc_price_formated(TRADE_ITEM_LISTING_FEE_IN_BTC, true); ?> BTC <strong>(<?php echo $view['my_bitcoin_balance']; ?> available)</strong></label></span> <div class="clear"></div> </div> <div class="row" style="margin-top:0px;"> <span class="l" style="padding-top:3px;"> <input type="radio" name="listing_fee_type" value="<?php echo BuckysTradeItem::LIST_FEE_PAYMENT_TYPE_CREDIT; ?> " id="listing_fee_credit" <?php if ($view['my_credit_balance'] < TRADE_ITEM_LISTING_FEE_IN_CREDIT) {
echo fn_buckys_get_btc_price_formated($productData['price'], true); ?> BTC </span> <br/> <?php if (!$productData['isDownloadable']) { ?> <?php if ($view['available_shipping_price'] == null) { $shippingPriceText = '<span style="color:#999999;">Not available </span><a href="/shipping_info.php">(edit shipping info)</a>'; } else { if ($view['available_shipping_price'] == 0) { $shippingPriceText = "Free"; } else { $shippingPriceText = fn_buckys_get_btc_price_formated($view['available_shipping_price'], true) . " BTC"; } } echo $shippingPriceText; ?> <br/> <?php } ?> <a href="/shop/search.php?cat=<?php echo urlencode($productData['categoryName']); ?> "><?php echo $productData['categoryName']; ?>