Plugin Directory

Changeset 3335878


Ignore:
Timestamp:
07/29/2025 11:07:36 AM (8 months ago)
Author:
ampmode
Message:

Adding 2.4 plugin version

Location:
woo-free-product-sample/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • woo-free-product-sample/trunk/includes/class-woo-free-product-sample-helper.php

    r3302391 r3335878  
    149149        switch ( self::wfps_product_type() ) {
    150150            case "simple":
    151                 $button = '<button type="submit" name="simple-add-to-cart" value="'.get_the_ID().'" id="woo-free-sample-button" class="woo-free-sample-button">'.sprintf( esc_html__( '%s', 'woo-free-product-sample' ), self::wfps_button_text() ).'</button>';
     151                $button = '<button name="simple-add-to-cart" value="'.get_the_ID().'" id="woo-free-sample-button" class="woo-free-sample-button">'.sprintf( esc_html__( '%s', 'woo-free-product-sample' ), self::wfps_button_text() ).'</button>';
    152152                break;
    153153            case "variable":
    154                 $button = '<button type="submit" name="variable-add-to-cart" value="'.get_the_ID().'" id="woo-free-sample-button" class="woo-free-sample-button">'.sprintf( esc_html__( '%s', 'woo-free-product-sample' ), self::wfps_button_text() ).'</button>';
     154                $button = '<button name="variable-add-to-cart" value="'.get_the_ID().'" id="woo-free-sample-button" class="woo-free-sample-button">'.sprintf( esc_html__( '%s', 'woo-free-product-sample' ), self::wfps_button_text() ).'</button>';
    155155                break;
    156156            default:
  • woo-free-product-sample/trunk/public/class-woo-free-product-sample-public.php

    r3333617 r3335878  
    492492            if( 'product' == $notice_type ) {
    493493
    494                 if( ( $values['free_sample'] == $values['product_id'] ) && ( $setting_options['max_qty_per_order'] < $updated_quantity ) ) {
     494                if( isset( $values['free_sample'] ) &&  ( $values['free_sample'] == $values['product_id'] ) && ( $setting_options['max_qty_per_order'] < $updated_quantity ) ) {
    495495
    496496                    if( get_locale() == "ja" ) {
  • woo-free-product-sample/trunk/public/css/woo-free-product-sample-public.css

    r3302391 r3335878  
    55
    66.woo-free-sample-button{
    7     margin-left: 20px;
     7    margin-left: 10px;
    88    border: 0;
    99    border-radius: 0;
     
    2727}
    2828
     29body .wp-block-woocommerce-add-to-cart-form form.cart {
     30    -ms-grid-columns: min-content min-content min-content;
     31    display: -ms-grid;
     32    display: grid;
     33    grid-auto-flow: column;
     34    grid-template-columns: min-content min-content min-content;
     35}
     36
    2937@media screen and (max-width: 768px) {
    3038    .woo-free-sample-button {
  • woo-free-product-sample/trunk/readme.txt

    r3333625 r3335878  
    77WC tested up to: 7.5.1
    88Requires PHP: 5.6
    9 Stable tag: 2.3.4
     9Stable tag: 2.4
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    115115
    116116== Changelog ==
     117#### 2.4
     118* DEV: Added FSE Theme Support
     119* FIX: PHP Warning on missing array key
     120
    117121#### 2.3.4
    118122* Prevent Adding Free Product sample twice in one click
  • woo-free-product-sample/trunk/woo-free-product-sample.php

    r3333617 r3335878  
    99 * Plugin URI:        https://wordpress.org/plugins/woo-free-product-sample
    1010 * Description:       It allows customers to order a product sample in a simple way.
    11  * Version:           2.3.4
     11 * Version:           2.4
    1212 * Author:            AMP-MODE
    1313 * Author URI:        https://amplifyplugins.com
     
    3131}
    3232
    33 define( 'WFPS_VERSION', '2.3.4' );
     33define( 'WFPS_VERSION', '2.4' );
    3434define( 'WFPS_MINIMUM_PHP_VERSION', '5.6.0' );
    3535define( 'WFPS_MINIMUM_WP_VERSION', '4.4' );
Note: See TracChangeset for help on using the changeset viewer.