Changeset 2010651
- Timestamp:
- 01/11/2019 03:41:32 PM (7 years ago)
- Location:
- force-default-variant-for-woocommerce
- Files:
-
- 8 added
- 3 edited
-
tags/1.4.1 (added)
-
tags/1.4.1/functions.php (added)
-
tags/1.4.1/includes (added)
-
tags/1.4.1/includes/clear-removal.php (added)
-
tags/1.4.1/includes/settings.php (added)
-
tags/1.4.1/includes/variations.php (added)
-
tags/1.4.1/readme.txt (added)
-
tags/1.4.1/woo-force-default-variant.php (added)
-
trunk/includes/variations.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woo-force-default-variant.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
force-default-variant-for-woocommerce/trunk/includes/variations.php
r1994943 r2010651 85 85 } 86 86 87 if ( $product->post_type !== 'product' ) { 88 return $defaults; 89 } 90 87 91 $respect = get_option( 'hpy_variant_respect' ); 88 92 $sortby = get_option( 'hpy_variant_sort' ); … … 154 158 155 159 $_prod = wc_get_product( $attributes[0]['id'] ); 160 161 if ( empty( $_prod ) ) { 162 return $defaults; 163 } 164 156 165 $attr = $_prod->get_attributes(); 157 166 -
force-default-variant-for-woocommerce/trunk/readme.txt
r1994943 r2010651 3 3 Tags: WooCommerce, Variable product, WooCommerce variant, eCommerce 4 4 Requires at least: 4.2 5 Tested up to: 5.0. 16 Stable tag: 1.4 5 Tested up to: 5.0.3 6 Stable tag: 1.4.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 29 29 30 30 == Changelog == 31 = 1.4.1 = 32 * FIX - Fixed a fatal error when variation does not exist. 33 * FIX - Fixed an error where type became unreadable. 34 31 35 = 1.4 = 32 36 * NEW - The Stock Status will be checked before the variant is selected. You will no longer have an out of stock Default Variant -
force-default-variant-for-woocommerce/trunk/woo-force-default-variant.php
r1994943 r2010651 6 6 Author: HappyKite 7 7 Author URI: http://www.happykite.co.uk/ 8 Version: 1.4 8 Version: 1.4.1 9 9 */ 10 10 … … 26 26 * includes 27 27 ***************************/ 28 29 28 include( dirname(__FILE__).'/functions.php' ); //Load Additional Functions 30 29 include( dirname(__FILE__).'/includes/variations.php' ); //Variant code
Note: See TracChangeset
for help on using the changeset viewer.