Ürün Paketleri (WooCommerce tarafından)
Eklenti URL'si: https://woocommerce.com/products/product-bundles/
Yeni uyarlama: https://currency-switcher.com/product-bundles-by-somewherewarm/
- Dosyada \wp-içerik\eklentiler\
woocommerce-ürün-paketleri\ kod ekle:içerir\class-wc-pb-product- fiyatlar.php if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); if ($WOOCS->is_multiple_allowed) { $indirimli_fiyat = $indirimli_fiyat / $currencies[$WOOCS->current_currency]['oran']; } } }
- dosyada \wp-içerik\eklentiler\
woocommerce-ürün-paketleri\ kod ekle\class-wc-pb-display içerir. php $is_multiple = 1; if (class_exists('WOOCS')) { global $WOOCS; if (!$WOOCS->is_multiple_allowed) { $is_multiple = 0; $sonek = ""; } }
- VE bu satırı ekleyin https://c2n.me/3Q92BCO.png
'woocs_is_multiple' => $is_multiple - Dosyada \wp-içerik\eklentiler\
woocommerce-ürün-paketleri\ kod eklevarlıklar\js\sepete ekle-paket. js /*woocs*/ if (woocs_current_currency != tanımsız && woocs_current_currency['rate'] != undefined && wc_bundle_params.woocs_is_multiple == 0) { fiyat = wc_pb_number_round(price * woocs_current_currency); }
- Dosyada \wp-içerik\eklentiler\
woocommerce-ürün-paketleri\ kod ekleşablonlar\tek ürün\ paketlenmiş-öğe-opsiyonel.php if (class_exists('WOOCS')) { global $WOOCS; $_price = $bundled_item->product->get_price(); if ($WOOCS->current_currency != $WOOCS->default_currency) { $currencies = $WOOCS->get_currencies(); if ($WOOCS->is_multiple_allowed) { $price_html = $WOOCS->wc_price($_price / $currencies[$WOOCS->current_currency]['oran'], false); } } }