Changeset 2289067
- Timestamp:
- 04/22/2020 08:38:01 AM (6 years ago)
- Location:
- sizeme-for-woocommerce
- Files:
-
- 2 edited
- 5 copied
-
tags/2.1.1 (copied) (copied from sizeme-for-woocommerce/trunk)
-
tags/2.1.1/classes/class-wc-settings-sizeme-for-woocommerce.php (copied) (copied from sizeme-for-woocommerce/trunk/classes/class-wc-settings-sizeme-for-woocommerce.php)
-
tags/2.1.1/readme.txt (copied) (copied from sizeme-for-woocommerce/trunk/readme.txt) (2 diffs)
-
tags/2.1.1/sizeme-for-woocommerce.php (copied) (copied from sizeme-for-woocommerce/trunk/sizeme-for-woocommerce.php) (4 diffs)
-
tags/2.1.1/templates/sizeme-product.php (copied) (copied from sizeme-for-woocommerce/trunk/templates/sizeme-product.php)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sizeme-for-woocommerce.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sizeme-for-woocommerce/tags/2.1.1/readme.txt
r2257567 r2289067 3 3 Tags: sizeme, measurements, size guide, size recommendations 4 4 Requires at least: 3.8 5 Tested up to: 5. 3.26 Stable tag: 2.1. 05 Tested up to: 5.4 6 Stable tag: 2.1.1 7 7 Requires PHP: 5.2.4 8 8 WC requires at least: 2.5 9 WC tested up to: 3.9.39 WC tested up to: 4.0.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 80 80 2. Offer a true-to-product size guide 81 81 3. For size recommendations, we ask for physical measurements of the users and offer proper measuring instructions for this 82 4. Visualize the fit using the SizeMe Sizing Bar™ and easy-to-understand illustrations 82 4. Visualize the fit using the SizeMe Sizing Bar™ and easy-to-understand illustrations 83 83 84 84 == Changelog == 85 86 = 2.1.1 = 87 * Fixed tracking of ajax-based add to cart events. Also improved SKU handling with simple products. 85 88 86 89 = 2.1.0 = -
sizeme-for-woocommerce/tags/2.1.1/sizeme-for-woocommerce.php
r2257567 r2289067 10 10 * Plugin Name: SizeMe for WooCommerce 11 11 * Description: SizeMe is a web store plugin that enables your consumers to input their measurements and get personalised fit recommendations based on actual product data. 12 * Version: 2.1. 012 * Version: 2.1.1 13 13 * Author: SizeMe Ltd 14 14 * Author URI: https://www.sizeme.com/ … … 51 51 * @var string VERSION The plugin version. 52 52 */ 53 const VERSION = '2.1. 0';53 const VERSION = '2.1.1'; 54 54 55 55 /** … … 591 591 public function send_add_to_cart_info($cart_item_key, $product_id, $quantity, $variation_id, $variation, $cart_item_data) 592 592 { 593 $parent_product = New WC_Product( $product_id ); 594 $child_product = New WC_Product_Variation( $variation_id ); 593 $parent_product = New WC_Product( absint($product_id) ); 594 $child_product = New WC_Product_Variation( absint($variation_id) ); 595 596 if ($variation_id > 0) { 597 $SKU = ($child_product->get_sku() ? $child_product->get_sku() : substr($this->get_client_key(), 0, 16).'-'.$variation_id); 598 } else { 599 $SKU = ($parent_product->get_sku() ? $parent_product->get_sku() : substr($this->get_client_key(), 0, 16).'-'.$product_id); 600 } 595 601 596 602 $arr = array( 597 'SKU' => ( $child_product->get_sku() ? $child_product->get_sku() : substr($this->get_client_key(), 0, 16).'-'.$variation_id),603 'SKU' => (string)$SKU, 598 604 'quantity' => (int)$quantity, 599 605 'name' => $parent_product->get_name(), … … 816 822 add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_setting_page' ) ); 817 823 add_action( 'admin_notices', array( $this, 'admin_notices' ) ); 824 // ajax based add to carts come this way 825 if ( wp_doing_ajax() ) { 826 add_action( 'woocommerce_add_to_cart', array( $this, 'send_add_to_cart_info' ), 10, 6 ); 827 } 818 828 } 819 829 -
sizeme-for-woocommerce/trunk/readme.txt
r2257567 r2289067 3 3 Tags: sizeme, measurements, size guide, size recommendations 4 4 Requires at least: 3.8 5 Tested up to: 5. 3.26 Stable tag: 2.1. 05 Tested up to: 5.4 6 Stable tag: 2.1.1 7 7 Requires PHP: 5.2.4 8 8 WC requires at least: 2.5 9 WC tested up to: 3.9.39 WC tested up to: 4.0.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 80 80 2. Offer a true-to-product size guide 81 81 3. For size recommendations, we ask for physical measurements of the users and offer proper measuring instructions for this 82 4. Visualize the fit using the SizeMe Sizing Bar™ and easy-to-understand illustrations 82 4. Visualize the fit using the SizeMe Sizing Bar™ and easy-to-understand illustrations 83 83 84 84 == Changelog == 85 86 = 2.1.1 = 87 * Fixed tracking of ajax-based add to cart events. Also improved SKU handling with simple products. 85 88 86 89 = 2.1.0 = -
sizeme-for-woocommerce/trunk/sizeme-for-woocommerce.php
r2257567 r2289067 10 10 * Plugin Name: SizeMe for WooCommerce 11 11 * Description: SizeMe is a web store plugin that enables your consumers to input their measurements and get personalised fit recommendations based on actual product data. 12 * Version: 2.1. 012 * Version: 2.1.1 13 13 * Author: SizeMe Ltd 14 14 * Author URI: https://www.sizeme.com/ … … 51 51 * @var string VERSION The plugin version. 52 52 */ 53 const VERSION = '2.1. 0';53 const VERSION = '2.1.1'; 54 54 55 55 /** … … 591 591 public function send_add_to_cart_info($cart_item_key, $product_id, $quantity, $variation_id, $variation, $cart_item_data) 592 592 { 593 $parent_product = New WC_Product( $product_id ); 594 $child_product = New WC_Product_Variation( $variation_id ); 593 $parent_product = New WC_Product( absint($product_id) ); 594 $child_product = New WC_Product_Variation( absint($variation_id) ); 595 596 if ($variation_id > 0) { 597 $SKU = ($child_product->get_sku() ? $child_product->get_sku() : substr($this->get_client_key(), 0, 16).'-'.$variation_id); 598 } else { 599 $SKU = ($parent_product->get_sku() ? $parent_product->get_sku() : substr($this->get_client_key(), 0, 16).'-'.$product_id); 600 } 595 601 596 602 $arr = array( 597 'SKU' => ( $child_product->get_sku() ? $child_product->get_sku() : substr($this->get_client_key(), 0, 16).'-'.$variation_id),603 'SKU' => (string)$SKU, 598 604 'quantity' => (int)$quantity, 599 605 'name' => $parent_product->get_name(), … … 816 822 add_filter( 'woocommerce_get_settings_pages', array( $this, 'add_setting_page' ) ); 817 823 add_action( 'admin_notices', array( $this, 'admin_notices' ) ); 824 // ajax based add to carts come this way 825 if ( wp_doing_ajax() ) { 826 add_action( 'woocommerce_add_to_cart', array( $this, 'send_add_to_cart_info' ), 10, 6 ); 827 } 818 828 } 819 829
Note: See TracChangeset
for help on using the changeset viewer.