WOOCS - WooCommerce Para Birimi Değiştirici


Giftware - WooCommerce Hediye Kartları

Eklenti bağlantısıhttps://makewebbetter.com/product/giftware-woocommerce-gift-cards/

  • Dosyada \wp-content\plugins\woocommerce-nihai-gift-card\function\woocommerce-nihai-gift-card-function.php sonraki kodu ekle:
    if (class_exists('WOOCS')) { global $WOOCS; $currency = $WOOCS->current_currency; $currencies = $WOOCS->get_currencies(); $oran = $para birimleri[$para birimi]['oran']; if (isset($_POST['mwb_wgm_price']) AND floatval($_POST['mwb_wgm_price']) != 0.0) { $_POST['mwb_wgm_price'] = floatval($_POST['mwb_wgm_price']) / $rate } }

  • $oran = 1; if (class_exists('WOOCS')) { global $WOOCS; //$order_id=$item->get_order_id(); //$order_currency = get_post_meta($order_id, '_order_currency', true); //woocs $order_currency = $WOOCS->current_currency; $currencies = $WOOCS->get_currencies(); $oran = $para birimleri[$order_currency]['oran']; }

  • $total_discount = $mwb_ugc_discount/$oran;

  • $total_discount = $mwb_ugc_discount/$oran;

  • if (class_exists('WOOCS')) { global $WOOCS; $cur_cur = $WOOCS->current_currency; $WOOCS->reset_currency(); $args['tutar'] = wc_price($mwb_wgm_common_arr['couponamont']); $WOOCS->set_currency($cur_cur); }

  • //woocs $currency_symbol = get_woocommerce_currency_symbol(); if (class_exists('WOOCS')) { global $WOOCS; $currency = $WOOCS->default_currency; $currencies = $WOOCS->get_currencies(); $currency_symbol = $currency[$currency]['symbol']; } $mesaj = str_replace('KUPONAMOUNT', $para birimi_sembol .$kalan_tutar, $mesaj);