Changeset 2812166
- Timestamp:
- 11/04/2022 04:12:10 PM (3 years ago)
- Location:
- cart-link-for-woocommerce/trunk
- Files:
-
- 4 edited
-
index.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
src/Campaign/CampaignProduct.php (modified) (1 diff)
-
src/Campaign/Metabox/Products/ProductsTable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cart-link-for-woocommerce/trunk/index.php
r2767478 r2812166 4 4 * Description: Create, customize and save the direct links adding the predefined products setup to the cart. Share the cart links with your customers, make their carts be automatically filled with the right items and boost your sales in no time! 5 5 * Plugin URI: https://wordpress.org/plugins/cart-link-for-woocommerce/ 6 * Version: 1. 1.26 * Version: 1.2.0 7 7 * Author: Sebastian Pisula 8 8 * Author URI: mailto:sebastian.pisula@gmail.com 9 9 * Text Domain: cart-link-for-woocommerce 10 10 * Domain Path: /lang/ 11 * Requires at least: 5. 712 * Tested up to: 6. 013 * WC requires at least: 6. 414 * WC tested up to: 6.811 * Requires at least: 5.8 12 * Tested up to: 6.1 13 * WC requires at least: 6.8 14 * WC tested up to: 7.1 15 15 * Requires PHP: 7.1 16 16 */ … … 29 29 include __DIR__ . '/vendor/autoload.php'; 30 30 31 $plugin_data = new PluginData( __FILE__, 'Cart Link for WooCommerce', '1. 1.2', 'cart-link-for-woocommerce', 2 );31 $plugin_data = new PluginData( __FILE__, 'Cart Link for WooCommerce', '1.2.0', 'cart-link-for-woocommerce', 2 ); 32 32 33 33 ( new class( $plugin_data ) { … … 79 79 ( new Assets( $this->plugin_data, $assets_checker ) )->hooks(); 80 80 } ); 81 82 add_action( 'before_woocommerce_init', static function () { 83 if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) { 84 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 85 } 86 } ); 81 87 } 82 88 } )->hooks(); -
cart-link-for-woocommerce/trunk/readme.txt
r2747470 r2812166 3 3 Tags: cart link, cart url, link to cart, cart, woocommerce, populate cart, campaign, marketing 4 4 Requires at least: 5.7 5 Tested up to: 6. 05 Tested up to: 6.1 6 6 Requires PHP: 7.1 7 Stable tag: 1. 1.27 Stable tag: 1.2.0 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 60 60 == Changelog == 61 61 62 = 1.2.0 - 2022-11-04 = 63 * Added support for WordPress 6.1 64 * Added support for WooCommerce 7.1 65 * Added support for decimal in Qty field 66 62 67 = 1.1.2 - 2022-04-29 = 63 68 * Fixed permalink structure -
cart-link-for-woocommerce/trunk/src/Campaign/CampaignProduct.php
r2677099 r2812166 63 63 64 64 /** 65 * @return int65 * @return float 66 66 */ 67 public function get_quantity(): int {68 return ( int) $this->args[ self::FIELD_QUANTITY ];67 public function get_quantity(): float { 68 return (float) str_replace( ',', '.', $this->args[ self::FIELD_QUANTITY ] ); 69 69 } 70 70 -
cart-link-for-woocommerce/trunk/src/Campaign/Metabox/Products/ProductsTable.php
r2677099 r2812166 95 95 'required' => true, 96 96 'custom_attributes' => [ 97 'min' => 1,98 'step' => 1,97 'min' => 0, 98 'step' => 'any', 99 99 'required' => 'required', 100 100 'data-item_id' => $item->get_id(),
Note: See TracChangeset
for help on using the changeset viewer.