Changeset 3188917
- Timestamp:
- 11/14/2024 05:34:54 PM (17 months ago)
- Location:
- woo-custom-stock-status
- Files:
-
- 30 added
- 4 edited
-
tags/1.6.0 (added)
-
tags/1.6.0/assets (added)
-
tags/1.6.0/assets/js (added)
-
tags/1.6.0/assets/js/woo-custom-stock-status.js (added)
-
tags/1.6.0/includes (added)
-
tags/1.6.0/includes/class-wc-stock-base.php (added)
-
tags/1.6.0/includes/class-wc-stock-general.php (added)
-
tags/1.6.0/includes/class-wc-stock-product.php (added)
-
tags/1.6.0/includes/class-wc-stock-setting.php (added)
-
tags/1.6.0/includes/class-wc-stock-status.php (added)
-
tags/1.6.0/includes/index.html (added)
-
tags/1.6.0/index.html (added)
-
tags/1.6.0/integration (added)
-
tags/1.6.0/integration/class-wp-all-import.php (added)
-
tags/1.6.0/integration/class-yith-wishlist.php (added)
-
tags/1.6.0/integration/class-yoast-seo.php (added)
-
tags/1.6.0/readme.txt (added)
-
tags/1.6.0/screenshots (added)
-
tags/1.6.0/screenshots/screenshot-1.png (added)
-
tags/1.6.0/screenshots/screenshot-10.png (added)
-
tags/1.6.0/screenshots/screenshot-11.png (added)
-
tags/1.6.0/screenshots/screenshot-2.png (added)
-
tags/1.6.0/screenshots/screenshot-3.png (added)
-
tags/1.6.0/screenshots/screenshot-4.png (added)
-
tags/1.6.0/screenshots/screenshot-5.png (added)
-
tags/1.6.0/screenshots/screenshot-6.png (added)
-
tags/1.6.0/screenshots/screenshot-7.png (added)
-
tags/1.6.0/screenshots/screenshot-8.png (added)
-
tags/1.6.0/screenshots/screenshot-9.png (added)
-
tags/1.6.0/woo-custom-stock-status.php (added)
-
trunk/includes/class-wc-stock-product.php (modified) (1 diff)
-
trunk/includes/class-wc-stock-setting.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/woo-custom-stock-status.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-custom-stock-status/trunk/includes/class-wc-stock-product.php
r3169052 r3188917 722 722 } 723 723 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); 725 730 $wc_slr_stock_status_before_price = get_option( 'wc_slr_stock_status_before_price', 'no' ); 726 731 727 732 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; 731 736 } 732 737 } -
woo-custom-stock-status/trunk/includes/class-wc-stock-setting.php
r3157078 r3188917 104 104 */ 105 105 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.'>'; 107 113 108 114 $status_array = $this->status_array; -
woo-custom-stock-status/trunk/readme.txt
r3169052 r3188917 4 4 Tags: woo, woocommerce, custom, stock, status 5 5 Requires at least: 5.8 6 Tested up to: 6. 47 Stable tag: 1. 5.96 Tested up to: 6.7 7 Stable tag: 1.6.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 253 253 * Fix - Product shortcode stock status issue fixed 254 254 255 = 1.6.0 - 14/11/24 = 256 * Fix - Duplicate stock status issue in single product page 257 255 258 == Upgrade Notice == 256 259 … … 410 413 = 1.5.9 - 14/10/24 = 411 414 Fix - Product shortcode stock status issue fixed 415 416 = 1.6.0 - 14/11/24 = 417 Fix - Duplicate stock status issue in single product page -
woo-custom-stock-status/trunk/woo-custom-stock-status.php
r3169052 r3188917 4 4 Plugin URI: https://www.softound.com/ 5 5 Description: Write the custom stock status with different colors for each woocommerce product, to show in product details and listing pages. 6 Version: 1. 5.96 Version: 1.6.0 7 7 Author: Softound Solutions 8 8 Author URI: https://www.softound.com/ … … 15 15 define( 'WCSS_PLUGIN_PATH', plugin_dir_path( __FILE__ )); 16 16 define( 'WCSS_PLUGIN_URL', plugin_dir_url(__FILE__)); 17 define( 'WCSS_PLUGIN_VER', '1. 5.9');17 define( 'WCSS_PLUGIN_VER', '1.6.0'); 18 18 19 19 /**
Note: See TracChangeset
for help on using the changeset viewer.