Plugin Directory

Changeset 2812166


Ignore:
Timestamp:
11/04/2022 04:12:10 PM (3 years ago)
Author:
sebastian.pisula
Message:

1.2.0 changes

Location:
cart-link-for-woocommerce/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cart-link-for-woocommerce/trunk/index.php

    r2767478 r2812166  
    44 * 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!
    55 * Plugin URI: https://wordpress.org/plugins/cart-link-for-woocommerce/
    6  * Version: 1.1.2
     6 * Version: 1.2.0
    77 * Author: Sebastian Pisula
    88 * Author URI: mailto:sebastian.pisula@gmail.com
    99 * Text Domain: cart-link-for-woocommerce
    1010 * Domain Path: /lang/
    11  * Requires at least: 5.7
    12  * Tested up to: 6.0
    13  * WC requires at least: 6.4
    14  * WC tested up to: 6.8
     11 * 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
    1515 * Requires PHP: 7.1
    1616 */
     
    2929include __DIR__ . '/vendor/autoload.php';
    3030
    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 );
    3232
    3333( new class( $plugin_data ) {
     
    7979            ( new Assets( $this->plugin_data, $assets_checker ) )->hooks();
    8080        } );
     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        } );
    8187    }
    8288} )->hooks();
  • cart-link-for-woocommerce/trunk/readme.txt

    r2747470 r2812166  
    33Tags: cart link, cart url, link to cart, cart, woocommerce, populate cart, campaign, marketing
    44Requires at least: 5.7
    5 Tested up to: 6.0
     5Tested up to: 6.1
    66Requires PHP: 7.1
    7 Stable tag: 1.1.2
     7Stable tag: 1.2.0
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    6060== Changelog ==
    6161
     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
    6267= 1.1.2 - 2022-04-29 =
    6368* Fixed permalink structure
  • cart-link-for-woocommerce/trunk/src/Campaign/CampaignProduct.php

    r2677099 r2812166  
    6363
    6464    /**
    65      * @return int
     65     * @return float
    6666     */
    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 ] );
    6969    }
    7070
  • cart-link-for-woocommerce/trunk/src/Campaign/Metabox/Products/ProductsTable.php

    r2677099 r2812166  
    9595                'required'          => true,
    9696                'custom_attributes' => [
    97                     'min'          => 1,
    98                     'step'         => 1,
     97                    'min'          => 0,
     98                    'step'         => 'any',
    9999                    'required'     => 'required',
    100100                    'data-item_id' => $item->get_id(),
Note: See TracChangeset for help on using the changeset viewer.