Changeset 3335878
- Timestamp:
- 07/29/2025 11:07:36 AM (8 months ago)
- Location:
- woo-free-product-sample/trunk
- Files:
-
- 5 edited
-
includes/class-woo-free-product-sample-helper.php (modified) (1 diff)
-
public/class-woo-free-product-sample-public.php (modified) (1 diff)
-
public/css/woo-free-product-sample-public.css (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
woo-free-product-sample.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-free-product-sample/trunk/includes/class-woo-free-product-sample-helper.php
r3302391 r3335878 149 149 switch ( self::wfps_product_type() ) { 150 150 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>'; 152 152 break; 153 153 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>'; 155 155 break; 156 156 default: -
woo-free-product-sample/trunk/public/class-woo-free-product-sample-public.php
r3333617 r3335878 492 492 if( 'product' == $notice_type ) { 493 493 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 ) ) { 495 495 496 496 if( get_locale() == "ja" ) { -
woo-free-product-sample/trunk/public/css/woo-free-product-sample-public.css
r3302391 r3335878 5 5 6 6 .woo-free-sample-button{ 7 margin-left: 20px;7 margin-left: 10px; 8 8 border: 0; 9 9 border-radius: 0; … … 27 27 } 28 28 29 body .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 29 37 @media screen and (max-width: 768px) { 30 38 .woo-free-sample-button { -
woo-free-product-sample/trunk/readme.txt
r3333625 r3335878 7 7 WC tested up to: 7.5.1 8 8 Requires PHP: 5.6 9 Stable tag: 2. 3.49 Stable tag: 2.4 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 115 115 116 116 == Changelog == 117 #### 2.4 118 * DEV: Added FSE Theme Support 119 * FIX: PHP Warning on missing array key 120 117 121 #### 2.3.4 118 122 * Prevent Adding Free Product sample twice in one click -
woo-free-product-sample/trunk/woo-free-product-sample.php
r3333617 r3335878 9 9 * Plugin URI: https://wordpress.org/plugins/woo-free-product-sample 10 10 * Description: It allows customers to order a product sample in a simple way. 11 * Version: 2. 3.411 * Version: 2.4 12 12 * Author: AMP-MODE 13 13 * Author URI: https://amplifyplugins.com … … 31 31 } 32 32 33 define( 'WFPS_VERSION', '2. 3.4' );33 define( 'WFPS_VERSION', '2.4' ); 34 34 define( 'WFPS_MINIMUM_PHP_VERSION', '5.6.0' ); 35 35 define( 'WFPS_MINIMUM_WP_VERSION', '4.4' );
Note: See TracChangeset
for help on using the changeset viewer.