Plugin Directory

Changeset 3306316


Ignore:
Timestamp:
06/04/2025 10:41:56 AM (10 months ago)
Author:
netgsm
Message:

Adding the new features

Location:
netgsm
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • netgsm/tags/2.9.55/index.php

    r3306205 r3306316  
    66Author: Netgsm
    77Author URI: www.netgsm.com.tr
    8 Version: 2.9.54
     8Version: 2.9.55
    99
    1010
     
    605605                       // Daha önce kayıt var mı kontrolü
    606606                    $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",
    608608                        $phone,
    609609                        $product_id
     
    645645                    return;
    646646                }
    647                 // Ürün daha önce outofstock mıydı? Bu bilgiyi saklamak gerekir.
    648                 $previous_status = get_post_meta($product_id, '_previous_stock_status', true);
    649647                // 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') {
    651649                 
    652650                    $control         = esc_html(get_option("netgsm_product_waitlist1_control"));
     
    685683                                 $data['first_name']= $customer->get_first_name();
    686684                                 $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();
    688686                                 $data['user_email']= $customer->get_email();
    689687                                 $data['kullanici_adi']= $customer->get_username();
     
    697695                        }
    698696
    699                         if ($bulkBody !="") {
     697                        if ($bulkBody =="") {
    700698                             return;
    701699                        }
     
    703701                        $json = $netgsm->sendBulkSMS($bulkBody);
    704702                        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);
    707703                            // sms gonderildi olarak guncelle
    708704                            $wpdb->update($table, ['notified' => 1], ['product_id' => $product_id]);
  • netgsm/tags/2.9.55/pages/index.php

    r3306205 r3306316  
    7878                <div class="col-md-6 text-right">
    7979                    <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; ?>
    8383                    </div>
    8484                </div>
  • netgsm/tags/2.9.55/readme.txt

    r3306205 r3306316  
    55Requires at least: 3.0
    66Tested up to: 6.8
    7 Stable tag: 2.9.54
     7Stable tag: 2.9.55
    88Requires PHP: 7.4.33
    99License: GPLv2 or later
     
    8989
    9090== Changelog ==
     91= 2.9.55 =
     92* Sürüm revizasyonu
    9193= 2.9.54 =
    92 * login olundugunda kalan sms,opt ve bakiye bilgilerinin gosterilmesi
     94* login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi
    9395= 2.9.53 =
    9496* Sürüm revizasyonu
     
    120122=======
    121123== Changelog ==
     124= 2.9.55 =
     125* Sürüm revizasyonu
    122126= 2.9.54 =
    123 * login olundugunda kalan sms,opt ve bakiye bilgilerinin gosterilmesi
     127* login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi
    124128= 2.9.53 =
    125129* Sürüm revizasyonu
     
    152156* Hata düzeltmesi yapıldı.
    153157== Changelog ==
     158= 2.9.55 =
     159* Sürüm revizasyonu
    154160= 2.9.54 =
    155 * login olundugunda kalan sms,opt ve bakiye bilgilerinin gosterilmesi
     161* login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi
    156162= 2.9.53 =
    157163* Sürüm revizasyonu
  • netgsm/trunk/index.php

    r3306205 r3306316  
    66Author: Netgsm
    77Author URI: www.netgsm.com.tr
    8 Version: 2.9.54
     8Version: 2.9.55
    99
    1010
     
    605605                       // Daha önce kayıt var mı kontrolü
    606606                    $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",
    608608                        $phone,
    609609                        $product_id
     
    645645                    return;
    646646                }
    647                 // Ürün daha önce outofstock mıydı? Bu bilgiyi saklamak gerekir.
    648                 $previous_status = get_post_meta($product_id, '_previous_stock_status', true);
    649647                // 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') {
    651649                 
    652650                    $control         = esc_html(get_option("netgsm_product_waitlist1_control"));
     
    685683                                 $data['first_name']= $customer->get_first_name();
    686684                                 $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();
    688686                                 $data['user_email']= $customer->get_email();
    689687                                 $data['kullanici_adi']= $customer->get_username();
     
    697695                        }
    698696
    699                         if ($bulkBody !="") {
     697                        if ($bulkBody =="") {
    700698                             return;
    701699                        }
     
    703701                        $json = $netgsm->sendBulkSMS($bulkBody);
    704702                        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);
    707703                            // sms gonderildi olarak guncelle
    708704                            $wpdb->update($table, ['notified' => 1], ['product_id' => $product_id]);
  • netgsm/trunk/pages/index.php

    r3306205 r3306316  
    7878                <div class="col-md-6 text-right">
    7979                    <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; ?>
    8383                    </div>
    8484                </div>
  • netgsm/trunk/readme.txt

    r3306205 r3306316  
    55Requires at least: 3.0
    66Tested up to: 6.8
    7 Stable tag: 2.9.54
     7Stable tag: 2.9.55
    88Requires PHP: 7.4.33
    99License: GPLv2 or later
     
    8989
    9090== Changelog ==
     91= 2.9.55 =
     92* Sürüm revizasyonu
    9193= 2.9.54 =
    92 * login olundugunda kalan sms,opt ve bakiye bilgilerinin gosterilmesi
     94* login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi
    9395= 2.9.53 =
    9496* Sürüm revizasyonu
     
    120122=======
    121123== Changelog ==
     124= 2.9.55 =
     125* Sürüm revizasyonu
    122126= 2.9.54 =
    123 * login olundugunda kalan sms,opt ve bakiye bilgilerinin gosterilmesi
     127* login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi
    124128= 2.9.53 =
    125129* Sürüm revizasyonu
     
    152156* Hata düzeltmesi yapıldı.
    153157== Changelog ==
     158= 2.9.55 =
     159* Sürüm revizasyonu
    154160= 2.9.54 =
    155 * login olundugunda kalan sms,opt ve bakiye bilgilerinin gosterilmesi
     161* login olundugunda kalan sms,otp ve bakiye bilgilerinin gosterilmesi
    156162= 2.9.53 =
    157163* Sürüm revizasyonu
Note: See TracChangeset for help on using the changeset viewer.