Changeset 3306316
- Timestamp:
- 06/04/2025 10:41:56 AM (10 months ago)
- Location:
- netgsm
- Files:
-
- 6 edited
- 1 copied
-
tags/2.9.55 (copied) (copied from netgsm/trunk)
-
tags/2.9.55/index.php (modified) (6 diffs)
-
tags/2.9.55/pages/index.php (modified) (1 diff)
-
tags/2.9.55/readme.txt (modified) (4 diffs)
-
trunk/index.php (modified) (6 diffs)
-
trunk/pages/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
netgsm/tags/2.9.55/index.php
r3306205 r3306316 6 6 Author: Netgsm 7 7 Author URI: www.netgsm.com.tr 8 Version: 2.9.5 48 Version: 2.9.55 9 9 10 10 … … 605 605 // Daha önce kayıt var mı kontrolü 606 606 $exists = $wpdb->get_var($wpdb->prepare( 607 "SELECT COUNT(*) FROM $table_name WHERE phone = %s AND product_id = %d ",607 "SELECT COUNT(*) FROM $table_name WHERE phone = %s AND product_id = %d AND notified = 0", 608 608 $phone, 609 609 $product_id … … 645 645 return; 646 646 } 647 // Ürün daha önce outofstock mıydı? Bu bilgiyi saklamak gerekir.648 $previous_status = get_post_meta($product_id, '_previous_stock_status', true);649 647 // Yeni stok durumu "instock" VE daha önceki durum "outofstock" ise SMS gönder 650 if ($stock_status === 'instock' && $previous_status === 'outofstock') {648 if ($stock_status === 'instock') { 651 649 652 650 $control = esc_html(get_option("netgsm_product_waitlist1_control")); … … 685 683 $data['first_name']= $customer->get_first_name(); 686 684 $data['last_name']= $customer->get_last_name(); 687 $data['phone']= $customer->get_billing_phone() ;;685 $data['phone']= $customer->get_billing_phone() =="" ? $customerNotification->phone : $customer->get_billing_phone(); 688 686 $data['user_email']= $customer->get_email(); 689 687 $data['kullanici_adi']= $customer->get_username(); … … 697 695 } 698 696 699 if ($bulkBody !="") {697 if ($bulkBody =="") { 700 698 return; 701 699 } … … 703 701 $json = $netgsm->sendBulkSMS($bulkBody); 704 702 if (array_key_exists('gorevid', $json)) { 705 // Güncel stok durumunu sakla (gelecek karşılaştırmalar için)706 update_post_meta($product_id, '_previous_stock_status', $stock_status);707 703 // sms gonderildi olarak guncelle 708 704 $wpdb->update($table, ['notified' => 1], ['product_id' => $product_id]); -
netgsm/tags/2.9.55/pages/index.php
r3306205 r3306316 78 78 <div class="col-md-6 text-right"> 79 79 <div <?php if ($cevap->href != "") { ?>onclick="window.open('<?php echo esc_url($cevap->href); ?>','_blank');" <?php } ?> class="alert alert-<?php echo esc_attr($cevap->durum); ?>" id="bakiye" style="display:inline-block;"> 80 < i class='fa <?php echo esc_attr($cevap->icon); ?>'></i><?php echo rtrim(wp_kses_post($cevap->mesaj), ':');?> </br>81 < i class='fa <?php echo esc_attr($cevap->icon); ?>'></i><?php echo rtrim(wp_kses_post($cevap->mesajPaket), ':');?> </br>82 < i class='fa <?php echo esc_attr($cevap->icon); ?>'></i><?php echo rtrim(wp_kses_post($cevap->mesajKredi), ':');?>80 <?php if (!empty($cevap->mesaj)) : ?> <i class='fa <?php echo esc_attr($cevap->icon); ?>'></i> <?php echo rtrim(wp_kses_post($cevap->mesaj), ':'); ?><br><?php endif; ?> 81 <?php if (!empty($cevap->mesajPaket)) : ?> <i class='fa <?php echo esc_attr($cevap->icon); ?>'></i> <?php echo rtrim(wp_kses_post($cevap->mesajPaket), ':'); ?><br><?php endif; ?> 82 <?php if (!empty($cevap->mesajKredi)) : ?> <i class='fa <?php echo esc_attr($cevap->icon); ?>'></i> <?php echo rtrim(wp_kses_post($cevap->mesajKredi), ':'); ?><br><?php endif; ?> 83 83 </div> 84 84 </div> -
netgsm/tags/2.9.55/readme.txt
r3306205 r3306316 5 5 Requires at least: 3.0 6 6 Tested up to: 6.8 7 Stable tag: 2.9.5 47 Stable tag: 2.9.55 8 8 Requires PHP: 7.4.33 9 9 License: GPLv2 or later … … 89 89 90 90 == Changelog == 91 = 2.9.55 = 92 * Sürüm revizasyonu 91 93 = 2.9.54 = 92 * login olundugunda kalan sms,o ptve bakiye bilgilerinin gosterilmesi94 * login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi 93 95 = 2.9.53 = 94 96 * Sürüm revizasyonu … … 120 122 ======= 121 123 == Changelog == 124 = 2.9.55 = 125 * Sürüm revizasyonu 122 126 = 2.9.54 = 123 * login olundugunda kalan sms,o ptve bakiye bilgilerinin gosterilmesi127 * login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi 124 128 = 2.9.53 = 125 129 * Sürüm revizasyonu … … 152 156 * Hata düzeltmesi yapıldı. 153 157 == Changelog == 158 = 2.9.55 = 159 * Sürüm revizasyonu 154 160 = 2.9.54 = 155 * login olundugunda kalan sms,o ptve bakiye bilgilerinin gosterilmesi161 * login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi 156 162 = 2.9.53 = 157 163 * Sürüm revizasyonu -
netgsm/trunk/index.php
r3306205 r3306316 6 6 Author: Netgsm 7 7 Author URI: www.netgsm.com.tr 8 Version: 2.9.5 48 Version: 2.9.55 9 9 10 10 … … 605 605 // Daha önce kayıt var mı kontrolü 606 606 $exists = $wpdb->get_var($wpdb->prepare( 607 "SELECT COUNT(*) FROM $table_name WHERE phone = %s AND product_id = %d ",607 "SELECT COUNT(*) FROM $table_name WHERE phone = %s AND product_id = %d AND notified = 0", 608 608 $phone, 609 609 $product_id … … 645 645 return; 646 646 } 647 // Ürün daha önce outofstock mıydı? Bu bilgiyi saklamak gerekir.648 $previous_status = get_post_meta($product_id, '_previous_stock_status', true);649 647 // Yeni stok durumu "instock" VE daha önceki durum "outofstock" ise SMS gönder 650 if ($stock_status === 'instock' && $previous_status === 'outofstock') {648 if ($stock_status === 'instock') { 651 649 652 650 $control = esc_html(get_option("netgsm_product_waitlist1_control")); … … 685 683 $data['first_name']= $customer->get_first_name(); 686 684 $data['last_name']= $customer->get_last_name(); 687 $data['phone']= $customer->get_billing_phone() ;;685 $data['phone']= $customer->get_billing_phone() =="" ? $customerNotification->phone : $customer->get_billing_phone(); 688 686 $data['user_email']= $customer->get_email(); 689 687 $data['kullanici_adi']= $customer->get_username(); … … 697 695 } 698 696 699 if ($bulkBody !="") {697 if ($bulkBody =="") { 700 698 return; 701 699 } … … 703 701 $json = $netgsm->sendBulkSMS($bulkBody); 704 702 if (array_key_exists('gorevid', $json)) { 705 // Güncel stok durumunu sakla (gelecek karşılaştırmalar için)706 update_post_meta($product_id, '_previous_stock_status', $stock_status);707 703 // sms gonderildi olarak guncelle 708 704 $wpdb->update($table, ['notified' => 1], ['product_id' => $product_id]); -
netgsm/trunk/pages/index.php
r3306205 r3306316 78 78 <div class="col-md-6 text-right"> 79 79 <div <?php if ($cevap->href != "") { ?>onclick="window.open('<?php echo esc_url($cevap->href); ?>','_blank');" <?php } ?> class="alert alert-<?php echo esc_attr($cevap->durum); ?>" id="bakiye" style="display:inline-block;"> 80 < i class='fa <?php echo esc_attr($cevap->icon); ?>'></i><?php echo rtrim(wp_kses_post($cevap->mesaj), ':');?> </br>81 < i class='fa <?php echo esc_attr($cevap->icon); ?>'></i><?php echo rtrim(wp_kses_post($cevap->mesajPaket), ':');?> </br>82 < i class='fa <?php echo esc_attr($cevap->icon); ?>'></i><?php echo rtrim(wp_kses_post($cevap->mesajKredi), ':');?>80 <?php if (!empty($cevap->mesaj)) : ?> <i class='fa <?php echo esc_attr($cevap->icon); ?>'></i> <?php echo rtrim(wp_kses_post($cevap->mesaj), ':'); ?><br><?php endif; ?> 81 <?php if (!empty($cevap->mesajPaket)) : ?> <i class='fa <?php echo esc_attr($cevap->icon); ?>'></i> <?php echo rtrim(wp_kses_post($cevap->mesajPaket), ':'); ?><br><?php endif; ?> 82 <?php if (!empty($cevap->mesajKredi)) : ?> <i class='fa <?php echo esc_attr($cevap->icon); ?>'></i> <?php echo rtrim(wp_kses_post($cevap->mesajKredi), ':'); ?><br><?php endif; ?> 83 83 </div> 84 84 </div> -
netgsm/trunk/readme.txt
r3306205 r3306316 5 5 Requires at least: 3.0 6 6 Tested up to: 6.8 7 Stable tag: 2.9.5 47 Stable tag: 2.9.55 8 8 Requires PHP: 7.4.33 9 9 License: GPLv2 or later … … 89 89 90 90 == Changelog == 91 = 2.9.55 = 92 * Sürüm revizasyonu 91 93 = 2.9.54 = 92 * login olundugunda kalan sms,o ptve bakiye bilgilerinin gosterilmesi94 * login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi 93 95 = 2.9.53 = 94 96 * Sürüm revizasyonu … … 120 122 ======= 121 123 == Changelog == 124 = 2.9.55 = 125 * Sürüm revizasyonu 122 126 = 2.9.54 = 123 * login olundugunda kalan sms,o ptve bakiye bilgilerinin gosterilmesi127 * login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi 124 128 = 2.9.53 = 125 129 * Sürüm revizasyonu … … 152 156 * Hata düzeltmesi yapıldı. 153 157 == Changelog == 158 = 2.9.55 = 159 * Sürüm revizasyonu 154 160 = 2.9.54 = 155 * login olundugunda kalan sms,o ptve bakiye bilgilerinin gosterilmesi161 * login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi 156 162 = 2.9.53 = 157 163 * Sürüm revizasyonu
Note: See TracChangeset
for help on using the changeset viewer.