Plugin Directory

Changeset 3188917


Ignore:
Timestamp:
11/14/2024 05:34:54 PM (17 months ago)
Author:
softound
Message:

version 1.6.0

Location:
woo-custom-stock-status
Files:
30 added
4 edited

Legend:

Unmodified
Added
Removed
  • woo-custom-stock-status/trunk/includes/class-wc-stock-product.php

    r3169052 r3188917  
    722722            }
    723723
    724             $stock_status = $this->get_custom_stock_status($product);
     724            if (isset($_GET['wc-ajax']) && $_GET['wc-ajax'] === 'get_variation') {
     725                // Block the stock message temporarily
     726                return $price;  // You can return the price without adding the stock message here
     727            }
     728
     729                $stock_status = $this->get_custom_stock_status($product);
    725730            $wc_slr_stock_status_before_price = get_option( 'wc_slr_stock_status_before_price', 'no' );
    726731
    727732            if($wc_slr_stock_status_before_price=='yes'){
    728                 $price = $stock_status.$price;
    729             }else{
    730                 $price = $price.$stock_status;
     733                $price = $stock_status.$price;
     734            } else{
     735                $price = $price.$stock_status;
    731736            }
    732737        }
  • woo-custom-stock-status/trunk/includes/class-wc-stock-setting.php

    r3157078 r3188917  
    104104     */
    105105    public function woo_custom_stock_status_color() {
    106         $css = '<style id="woo-custom-stock-status" data-wcss-ver="'.WCSS_PLUGIN_VER.'">';
     106
     107        $pro_version = "";
     108        if(defined('WOOCSSP_VERSION')){
     109            $pro_version = 'data-wcss-pro-ver="'.WOOCSSP_VERSION.'"';
     110        }
     111
     112        $css = '<style id="woo-custom-stock-status" data-wcss-ver="'.WCSS_PLUGIN_VER.'" '.$pro_version.'>';
    107113
    108114        $status_array = $this->status_array;
  • woo-custom-stock-status/trunk/readme.txt

    r3169052 r3188917  
    44Tags: woo, woocommerce, custom, stock, status
    55Requires at least: 5.8
    6 Tested up to: 6.4
    7 Stable tag: 1.5.9
     6Tested up to: 6.7
     7Stable tag: 1.6.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    253253* Fix - Product shortcode stock status issue fixed
    254254
     255= 1.6.0 - 14/11/24 =
     256* Fix - Duplicate stock status issue in single product page
     257
    255258== Upgrade Notice ==
    256259
     
    410413= 1.5.9 - 14/10/24 =
    411414Fix - Product shortcode stock status issue fixed
     415
     416= 1.6.0 - 14/11/24 =
     417Fix - Duplicate stock status issue in single product page
  • woo-custom-stock-status/trunk/woo-custom-stock-status.php

    r3169052 r3188917  
    44Plugin URI:  https://www.softound.com/
    55Description: Write the custom stock status with different colors for each woocommerce product, to show in product details and listing pages.
    6 Version:     1.5.9
     6Version:     1.6.0
    77Author:      Softound Solutions
    88Author URI:  https://www.softound.com/
     
    1515define( 'WCSS_PLUGIN_PATH', plugin_dir_path( __FILE__ ));
    1616define( 'WCSS_PLUGIN_URL', plugin_dir_url(__FILE__));
    17 define( 'WCSS_PLUGIN_VER', '1.5.9');
     17define( 'WCSS_PLUGIN_VER', '1.6.0');
    1818
    1919/**
Note: See TracChangeset for help on using the changeset viewer.