Plugin Directory

Changeset 3252074


Ignore:
Timestamp:
03/07/2025 09:38:09 AM (12 months ago)
Author:
worldweb
Message:
  • Improved: The Recipient Name field must be mandatory to designate the product as a voucher product and prevent any conflicts during the frontend purchase process.
Location:
gift-vouchers-for-woocommerce
Files:
406 added
3 edited

Legend:

Unmodified
Added
Removed
  • gift-vouchers-for-woocommerce/trunk/admin/js/woocommerce-gift-vouchers-admin.js

    r3165676 r3252074  
    767767    });
    768768
     769
     770
     771    $( window ).load(function() {
     772     
     773        if($('#customize-controls').length == 1){
     774
     775           
     776            /* the recipient_name field mandatory start  */
     777
     778            if($('#customize-controls input#_customize-input-wgvwwt_template_recipient_name_is_required').length==1){
     779
     780                var recipient_name_is_required = $('#customize-controls input#_customize-input-wgvwwt_template_recipient_name_is_required');
     781               
     782                if ( !recipient_name_is_required.prop('checked') ) {               
     783                    recipient_name_is_required.trigger('click');
     784                }           
     785           
     786                 recipient_name_is_required.prop('disabled', true);   
     787
     788            }
     789
     790            if($('#customize-controls input#_customize-input-wgvwwt_template_recipient_name_is_enabled').length==1){
     791
     792                var recipient_name_is_enabled = $('#customize-controls input#_customize-input-wgvwwt_template_recipient_name_is_enabled');
     793                   
     794                if ( !recipient_name_is_enabled.prop('checked') ) {           
     795                    recipient_name_is_enabled.trigger('click');             
     796                }
     797           
     798                recipient_name_is_enabled.prop('disabled', true);
     799
     800            }
     801
     802            /* the recipient_name field mandatory end */
     803
     804        }
     805
     806    });
     807
    769808})(jQuery);
  • gift-vouchers-for-woocommerce/trunk/gift-vouchers-for-woocommerce.php

    r3248411 r3252074  
    1313 * Plugin URI:        https://www.worldwebtechnology.com/
    1414 * Description:       Create Customizable PDF Vouchers for In-Store or Online Redemption.
    15  * Version:           1.1.4
     15 * Version:           1.1.5
    1616 * Author:            World Web Technology
    1717 * Author URI:        https://www.worldwebtechnology.com/
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define('WOOCOMMERCE_GIFT_VOUCHERS_VERSION', '1.1.4');
     36define('WOOCOMMERCE_GIFT_VOUCHERS_VERSION', '1.1.5');
    3737
    3838/**
  • gift-vouchers-for-woocommerce/trunk/readme.txt

    r3248411 r3252074  
    1010Requires PHP:      7.2
    1111Tested up to:      6.6.1
    12 Stable tag:        1.1.4
     12Stable tag:        1.1.5
    1313License:           GPLv2 or later
    1414License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    15 Version:           1.1.4
     15Version:           1.1.5
    1616
    1717Create Customizable PDF Vouchers for In-Store or Online Redemption.
     
    173173== Changelog ==
    174174
     175= 1.1.5 (Mar 07, 2025) =
     176* Improved: The Recipient Name field must be mandatory to designate the product as a voucher product and prevent any conflicts during the frontend purchase process.
     177
    175178= 1.1.4 (Feb 28, 2025) =
    176179* Issue fixed: Now displaying all voucher templates instead of only five.
Note: See TracChangeset for help on using the changeset viewer.