Changeset 3046745 for woo-gift-cards-lite
- Timestamp:
- 03/07/2024 07:06:31 AM (14 months ago)
- Location:
- woo-gift-cards-lite
- Files:
-
- 120 added
- 9 edited
-
tags/2.6.7 (added)
-
tags/2.6.7/LICENSE.txt (added)
-
tags/2.6.7/admin (added)
-
tags/2.6.7/admin/class-woocommerce-gift-cards-lite-admin.php (added)
-
tags/2.6.7/admin/css (added)
-
tags/2.6.7/admin/css/woocommerce_gift_cards_import_tmp.css (added)
-
tags/2.6.7/admin/css/woocommerce_gift_cards_lite-admin.css (added)
-
tags/2.6.7/admin/css/wpswings-onboarding-admin.css (added)
-
tags/2.6.7/admin/index.php (added)
-
tags/2.6.7/admin/js (added)
-
tags/2.6.7/admin/js/clipboard.min.js (added)
-
tags/2.6.7/admin/js/jquery.sticky-sidebar.min.js (added)
-
tags/2.6.7/admin/js/woocommerce_gift_cards_lite-admin.js (added)
-
tags/2.6.7/admin/js/wps-wgm-gift-card-notices.js (added)
-
tags/2.6.7/admin/js/wps_wgm_gift_card_pro_admin.js (added)
-
tags/2.6.7/admin/js/wps_wgm_uneditable_template_name.js (added)
-
tags/2.6.7/admin/js/wpswings-onboarding-admin.js (added)
-
tags/2.6.7/admin/partials (added)
-
tags/2.6.7/admin/partials/template_settings_function (added)
-
tags/2.6.7/admin/partials/template_settings_function/class-woocommerce-giftcard-admin-settings.php (added)
-
tags/2.6.7/admin/partials/templates (added)
-
tags/2.6.7/admin/partials/templates/redeem-giftcard-settings.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-customizable-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-delivery-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-discount-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-email-template-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-general-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-group-gifting-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-im-export-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-notification-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-offline-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-other-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-overview-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-premium-features.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-product-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-qrcode-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps-wgm-thankyou-setting.php (added)
-
tags/2.6.7/admin/partials/templates/wps_wgm_settings (added)
-
tags/2.6.7/admin/partials/templates/wps_wgm_settings/wps-wgm-delivery-settings-array.php (added)
-
tags/2.6.7/admin/partials/templates/wps_wgm_settings/wps-wgm-general-settings-array.php (added)
-
tags/2.6.7/admin/partials/templates/wps_wgm_settings/wps-wgm-mail-template-settings-array.php (added)
-
tags/2.6.7/admin/partials/templates/wps_wgm_settings/wps-wgm-other-settings-array.php (added)
-
tags/2.6.7/admin/partials/templates/wps_wgm_settings/wps-wgm-product-settings-array.php (added)
-
tags/2.6.7/admin/partials/woocommerce-gift-cards-lite-admin-display.php (added)
-
tags/2.6.7/assets (added)
-
tags/2.6.7/assets/images (added)
-
tags/2.6.7/assets/images/20-Predefined-Gift-Card-Templates.webp (added)
-
tags/2.6.7/assets/images/Demo.svg (added)
-
tags/2.6.7/assets/images/Documentation.svg (added)
-
tags/2.6.7/assets/images/Import-and-Export-Your-Gift-Card-Coupons.webp (added)
-
tags/2.6.7/assets/images/Services.svg (added)
-
tags/2.6.7/assets/images/Support.svg (added)
-
tags/2.6.7/assets/images/WPML-Multilingual-Compatibility.png (added)
-
tags/2.6.7/assets/images/YouTube32px.svg (added)
-
tags/2.6.7/assets/images/arrow.png (added)
-
tags/2.6.7/assets/images/back.png (added)
-
tags/2.6.7/assets/images/birthday.png (added)
-
tags/2.6.7/assets/images/christmas-title.png (added)
-
tags/2.6.7/assets/images/custom_template.png (added)
-
tags/2.6.7/assets/images/download.png (added)
-
tags/2.6.7/assets/images/featur1.png (added)
-
tags/2.6.7/assets/images/featur2.png (added)
-
tags/2.6.7/assets/images/featur3.png (added)
-
tags/2.6.7/assets/images/featur4.png (added)
-
tags/2.6.7/assets/images/featur5.png (added)
-
tags/2.6.7/assets/images/featur6.png (added)
-
tags/2.6.7/assets/images/footer1.png (added)
-
tags/2.6.7/assets/images/format_one.png (added)
-
tags/2.6.7/assets/images/format_two.png (added)
-
tags/2.6.7/assets/images/giftcard-banner-image.png (added)
-
tags/2.6.7/assets/images/giftcard.jpg (added)
-
tags/2.6.7/assets/images/giftware-redeem-image.png (added)
-
tags/2.6.7/assets/images/header1.png (added)
-
tags/2.6.7/assets/images/loading.gif (added)
-
tags/2.6.7/assets/images/logo13.png (added)
-
tags/2.6.7/assets/images/merry_christmas.png (added)
-
tags/2.6.7/assets/images/mom.png (added)
-
tags/2.6.7/assets/images/mwb.png (added)
-
tags/2.6.7/assets/images/placeholder.png (added)
-
tags/2.6.7/assets/images/skype_logo.png (added)
-
tags/2.6.7/assets/images/wps-feature1.png (added)
-
tags/2.6.7/assets/images/wps-feature2.png (added)
-
tags/2.6.7/assets/images/wps-feature3.png (added)
-
tags/2.6.7/assets/images/wps-feature4.png (added)
-
tags/2.6.7/assets/images/wpswings_logo.png (added)
-
tags/2.6.7/assets/images/wpswings_logo1.png (added)
-
tags/2.6.7/includes (added)
-
tags/2.6.7/includes/class-makewebbetter-onboarding-helper.php (added)
-
tags/2.6.7/includes/class-woocommerce-gift-cards-activation.php (added)
-
tags/2.6.7/includes/class-woocommerce-gift-cards-common-function.php (added)
-
tags/2.6.7/includes/class-woocommerce-gift-cards-lite-i18n.php (added)
-
tags/2.6.7/includes/class-woocommerce-gift-cards-lite-loader.php (added)
-
tags/2.6.7/includes/class-woocommerce-gift-cards-lite.php (added)
-
tags/2.6.7/includes/class-woocommerce-gift-cards-restore-settings-updation.php (added)
-
tags/2.6.7/includes/extra-templates (added)
-
tags/2.6.7/includes/extra-templates/wpswings-deactivation-template-display.php (added)
-
tags/2.6.7/includes/extra-templates/wpswings-onboarding-template-display.php (added)
-
tags/2.6.7/includes/giftcard-redeem-api-addon.php (added)
-
tags/2.6.7/includes/index.php (added)
-
tags/2.6.7/index.php (added)
-
tags/2.6.7/languages (added)
-
tags/2.6.7/languages/woo-gift-cards-lite-en_US.mo (added)
-
tags/2.6.7/languages/woo-gift-cards-lite-en_US.po (added)
-
tags/2.6.7/languages/woo-gift-cards-lite.mo (added)
-
tags/2.6.7/languages/woo-gift-cards-lite.pot (added)
-
tags/2.6.7/public (added)
-
tags/2.6.7/public/class-woocommerce-gift-cards-lite-public.php (added)
-
tags/2.6.7/public/css (added)
-
tags/2.6.7/public/css/woocommerce_gift_cards_lite-public.css (added)
-
tags/2.6.7/public/index.php (added)
-
tags/2.6.7/public/js (added)
-
tags/2.6.7/public/js/woocommerce_gifr_cards_lite_check_balance.js (added)
-
tags/2.6.7/public/js/woocommerce_gift_cards_lite-public.js (added)
-
tags/2.6.7/public/js/wps_wgm_wallet_system_for_woocommerce.js (added)
-
tags/2.6.7/public/partials (added)
-
tags/2.6.7/public/partials/wallet-system-for-woocommerce-wallet-giftcard.php (added)
-
tags/2.6.7/readme.txt (added)
-
tags/2.6.7/woocommerce_gift_cards_lite.php (added)
-
tags/2.6.7/wpml-config.xml (added)
-
tags/2.6.7/wps-wgc-lite-gdpr.php (added)
-
trunk/admin/class-woocommerce-gift-cards-lite-admin.php (modified) (8 diffs)
-
trunk/includes/class-makewebbetter-onboarding-helper.php (modified) (1 diff)
-
trunk/includes/class-woocommerce-gift-cards-lite.php (modified) (1 diff)
-
trunk/languages/woo-gift-cards-lite-en_US.mo (modified) (previous)
-
trunk/languages/woo-gift-cards-lite-en_US.po (modified) (2 diffs)
-
trunk/languages/woo-gift-cards-lite.pot (modified) (2 diffs)
-
trunk/public/class-woocommerce-gift-cards-lite-public.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/woocommerce_gift_cards_lite.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-gift-cards-lite/trunk/admin/class-woocommerce-gift-cards-lite-admin.php
r3019308 r3046745 97 97 wp_enqueue_style( 'woocommerce_admin_styles' ); 98 98 if ( ! wps_uwgc_pro_active() ) { 99 100 wp_enqueue_style( $this->plugin_name .'tmp', plugin_dir_url( __FILE__ ) . 'css/woocommerce_gift_cards_import_tmp.css', array(), time(), 'all' );101 102 } 103 } 104 99 100 wp_enqueue_style( $this->plugin_name . 'tmp', plugin_dir_url( __FILE__ ) . 'css/woocommerce_gift_cards_import_tmp.css', array(), time(), 'all' ); 101 102 } 103 } 104 105 105 } 106 106 … … 115 115 wp_enqueue_script( 'thickbox' ); 116 116 if ( isset( $screen->id ) ) { 117 if ( wps_uwgc_pro_active() ) {118 wp_enqueue_script( 'pro_tag_remove_class', plugin_dir_url( __FILE__ ) . '/js/wps_wgm_gift_card_pro_admin.js', array( 'jquery' ), time(), true );117 if ( wps_uwgc_pro_active() ) { 118 wp_enqueue_script( 'pro_tag_remove_class', plugin_dir_url( __FILE__ ) . '/js/wps_wgm_gift_card_pro_admin.js', array( 'jquery' ), time(), true ); 119 119 } 120 120 $pagescreen = $screen->id; … … 186 186 187 187 } 188 189 188 } 190 189 } … … 1190 1189 */ 1191 1190 public function wps_wgm_preview_email_template() { 1192 1193 if ( isset( $_GET['wps_wgm_template'] ) ) { 1194 1195 if ( isset( $_GET['wps_wgm_template'] ) == 'giftcard' ) { 1196 $post_id = isset( $_GET['post_id'] ) ? sanitize_text_field( wp_unslash( $_GET['post_id'] ) ) : ''; 1197 $todaydate = date_i18n( 'Y-m-d' ); 1198 $wps_wgm_general_settings = get_option( 'wps_wgm_general_settings', false ); 1199 $local_expiry_day = get_post_meta( $post_id, 'wps_wgm_local_setting_giftcard_expiry', true ); 1200 if ( empty( $local_expiry_day ) || 0 == $local_expiry_day ) { 1201 $expiry_date = $this->wps_common_fun->wps_wgm_get_template_data( $wps_wgm_general_settings, 'wps_wgm_general_setting_giftcard_expiry' ); 1202 } else { 1203 $expiry_date = $local_expiry_day; 1204 } 1205 1206 $expirydate_format = $this->wps_common_fun->wps_wgm_check_expiry_date( $expiry_date ); 1207 $wps_wgm_coupon_length_display = $this->wps_common_fun->wps_wgm_get_template_data( $wps_wgm_general_settings, 'wps_wgm_general_setting_giftcard_coupon_length' ); 1208 1209 if ( '' == $wps_wgm_coupon_length_display ) { 1210 $wps_wgm_coupon_length_display = 5; 1211 } 1212 $password = ''; 1213 for ( $i = 0;$i < $wps_wgm_coupon_length_display;$i++ ) { 1214 $password .= 'x'; 1215 } 1216 $giftcard_prefix = $this->wps_common_fun->wps_wgm_get_template_data( $wps_wgm_general_settings, 'wps_wgm_general_setting_giftcard_prefix' ); 1217 $coupon = $giftcard_prefix . $password; 1218 $templateid = $post_id; 1219 1220 $args['from'] = esc_html__( 'from@example.com', 'woo-gift-cards-lite' ); 1221 $args['to'] = esc_html__( 'to@example.com', 'woo-gift-cards-lite' ); 1222 $args['message'] = esc_html__( 'Your gift message will appear here which you send to your receiver. ', 'woo-gift-cards-lite' ); 1223 $args['coupon'] = apply_filters( 'wps_wgm_static_coupon_img', $coupon ); 1224 $args['expirydate'] = $expirydate_format; 1225 $args['amount'] = wc_price( 100 ); 1226 $args['templateid'] = $templateid; 1227 $style = '<style> 1228 table, th, tr, td { 1229 border: medium none; 1191 if ( current_user_can( 'edit_others_posts' ) ) { 1192 1193 if ( isset( $_GET['wps_wgm_template'] ) ) { 1194 1195 if ( isset( $_GET['wps_wgm_template'] ) == 'giftcard' ) { 1196 $post_id = isset( $_GET['post_id'] ) ? sanitize_text_field( wp_unslash( $_GET['post_id'] ) ) : ''; 1197 1198 $wps_post_type = get_post_type( $post_id ); 1199 if ( 'giftcard' == $wps_post_type ) { 1200 $todaydate = date_i18n( 'Y-m-d' ); 1201 $wps_wgm_general_settings = get_option( 'wps_wgm_general_settings', false ); 1202 $local_expiry_day = get_post_meta( $post_id, 'wps_wgm_local_setting_giftcard_expiry', true ); 1203 if ( empty( $local_expiry_day ) || 0 == $local_expiry_day ) { 1204 $expiry_date = $this->wps_common_fun->wps_wgm_get_template_data( $wps_wgm_general_settings, 'wps_wgm_general_setting_giftcard_expiry' ); 1205 } else { 1206 $expiry_date = $local_expiry_day; 1207 } 1208 1209 $expirydate_format = $this->wps_common_fun->wps_wgm_check_expiry_date( $expiry_date ); 1210 $wps_wgm_coupon_length_display = $this->wps_common_fun->wps_wgm_get_template_data( $wps_wgm_general_settings, 'wps_wgm_general_setting_giftcard_coupon_length' ); 1211 1212 if ( '' == $wps_wgm_coupon_length_display ) { 1213 $wps_wgm_coupon_length_display = 5; 1214 } 1215 $password = ''; 1216 for ( $i = 0;$i < $wps_wgm_coupon_length_display;$i++ ) { 1217 $password .= 'x'; 1218 } 1219 $giftcard_prefix = $this->wps_common_fun->wps_wgm_get_template_data( $wps_wgm_general_settings, 'wps_wgm_general_setting_giftcard_prefix' ); 1220 $coupon = $giftcard_prefix . $password; 1221 $templateid = $post_id; 1222 1223 $args['from'] = esc_html__( 'from@example.com', 'woo-gift-cards-lite' ); 1224 $args['to'] = esc_html__( 'to@example.com', 'woo-gift-cards-lite' ); 1225 $args['message'] = esc_html__( 'Your gift message will appear here which you send to your receiver. ', 'woo-gift-cards-lite' ); 1226 $args['coupon'] = apply_filters( 'wps_wgm_static_coupon_img', $coupon ); 1227 $args['expirydate'] = $expirydate_format; 1228 $args['amount'] = wc_price( 100 ); 1229 $args['templateid'] = $templateid; 1230 $style = '<style> 1231 table, th, tr, td { 1232 border: medium none; 1233 } 1234 table, th, tr, td { 1235 border: 0px !important; 1236 } 1237 #wps_gw_email { 1238 width: 630px !important; 1239 } 1240 </style>'; 1241 $message = $this->wps_common_fun->wps_wgm_create_gift_template( $args ); 1242 $finalhtml = $style . $message; 1243 1244 if ( wps_uwgc_pro_active() ) { 1245 do_action( 'preview_email_template_for_pro', $finalhtml ); 1246 } else { 1247 $allowed_tags = $this->wps_common_fun->wps_allowed_html_tags(); 1248 // @codingStandardsIgnoreStart. 1249 echo wp_kses( $finalhtml, $allowed_tags ); 1250 die(); 1251 // @codingStandardsIgnoreEnd. 1252 } 1230 1253 } 1231 table, th, tr, td {1232 border: 0px !important;1233 }1234 #wps_gw_email {1235 width: 630px !important;1236 }1237 </style>';1238 $message = $this->wps_common_fun->wps_wgm_create_gift_template( $args );1239 $finalhtml = $style . $message;1240 1241 if ( wps_uwgc_pro_active() ) {1242 do_action( 'preview_email_template_for_pro', $finalhtml );1243 } else {1244 $allowed_tags = $this->wps_common_fun->wps_allowed_html_tags();1245 // @codingStandardsIgnoreStart.1246 echo wp_kses( $finalhtml, $allowed_tags );1247 die();1248 // @codingStandardsIgnoreEnd.1249 1254 } 1250 1255 } … … 1305 1310 */ 1306 1311 public function wps_wgm_set_cron_for_plugin_notification() { 1307 1312 1308 1313 $offset = get_option( 'gmt_offset' ); 1309 1314 $time = time() + $offset * 60 * 60; … … 1313 1318 1314 1319 } 1315 1320 1316 1321 } 1317 1322 … … 1602 1607 ) 1603 1608 ); 1604 1609 1605 1610 if ( is_wp_error( $wps_response ) ) { 1606 1611 $error_message = $wps_response->get_error_message(); … … 1696 1701 <i class="fas fa-eye wps_preview_template"></i> 1697 1702 </a> 1698 <?php 1699 ?> 1700 <i class="fas fa-download wps_download_template" data-id="<?php echo esc_attr( stripslashes( $temp_data['template_id'] ) ); ?>"></i> 1703 <i class="fas fa-download wps_download_template" data-id="<?php echo esc_attr( stripslashes( $temp_data['template_id'] ) ); ?>"></i> 1701 1704 <div class="wps_template_import_note"> 1702 1705 <p class="wps_note"><?php esc_html_e( 'Import this template.', 'woo-gift-cards-lite' ); ?></p> -
woo-gift-cards-lite/trunk/includes/class-makewebbetter-onboarding-helper.php
r3019308 r3046745 118 118 self::$version = WPS_WGC_VERSION; 119 119 } else { 120 self::$version = '2.6. 6';120 self::$version = '2.6.7'; 121 121 } 122 122 -
woo-gift-cards-lite/trunk/includes/class-woocommerce-gift-cards-lite.php
r3019308 r3046745 67 67 $this->version = WPS_WGC_VERSION; 68 68 } else { 69 $this->version = '2.6. 6';69 $this->version = '2.6.7'; 70 70 } 71 71 $this->plugin_name = 'woo-gift-cards-lite'; -
woo-gift-cards-lite/trunk/languages/woo-gift-cards-lite-en_US.po
r3019308 r3046745 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Ultimate Gift Cards For WooCommerce 2.6. 6\n"4 "POT-Creation-Date: 2024-0 1-08 15:19+0530\n"5 "PO-Revision-Date: 2024-0 1-08 15:19+0530\n"3 "Project-Id-Version: Ultimate Gift Cards For WooCommerce 2.6.7\n" 4 "POT-Creation-Date: 2024-03-07 11:17+0530\n" 5 "PO-Revision-Date: 2024-03-07 11:27+0530\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: WP Swings\n" … … 267 267 msgstr "" 268 268 269 #: admin/class-woocommerce-gift-cards-lite-admin.php:122 0269 #: admin/class-woocommerce-gift-cards-lite-admin.php:1225 270 270 msgid "from@example.com" 271 271 msgstr "" 272 272 273 #: admin/class-woocommerce-gift-cards-lite-admin.php:122 1273 #: admin/class-woocommerce-gift-cards-lite-admin.php:1226 274 274 msgid "to@example.com" 275 275 msgstr "" 276 276 277 #: admin/class-woocommerce-gift-cards-lite-admin.php:122 2277 #: admin/class-woocommerce-gift-cards-lite-admin.php:1227 278 278 msgid "Your gift message will appear here which you send to your receiver. " 279 279 msgstr "" 280 280 281 #: admin/class-woocommerce-gift-cards-lite-admin.php:12 67281 #: admin/class-woocommerce-gift-cards-lite-admin.php:1275 282 282 #: admin/partials/woocommerce-gift-cards-lite-admin-display.php:198 283 283 msgid "Demo" 284 284 msgstr "" 285 285 286 #: admin/class-woocommerce-gift-cards-lite-admin.php:12 68286 #: admin/class-woocommerce-gift-cards-lite-admin.php:1276 287 287 msgid "Documentation" 288 288 msgstr "" 289 289 290 #: admin/class-woocommerce-gift-cards-lite-admin.php:12 69290 #: admin/class-woocommerce-gift-cards-lite-admin.php:1277 291 291 msgid "Video" 292 292 msgstr "" 293 293 294 #: admin/class-woocommerce-gift-cards-lite-admin.php:127 0294 #: admin/class-woocommerce-gift-cards-lite-admin.php:1278 295 295 msgid "Support" 296 296 msgstr "" 297 297 298 #: admin/class-woocommerce-gift-cards-lite-admin.php:127 1298 #: admin/class-woocommerce-gift-cards-lite-admin.php:1279 299 299 msgid "Services" 300 300 msgstr "" 301 301 302 #: admin/class-woocommerce-gift-cards-lite-admin.php:14 73302 #: admin/class-woocommerce-gift-cards-lite-admin.php:1481 303 303 msgid "Welcome to Ultimate Gift Cards For WooCommerce" 304 304 msgstr "" 305 305 306 #: admin/class-woocommerce-gift-cards-lite-admin.php:14 73306 #: admin/class-woocommerce-gift-cards-lite-admin.php:1481 307 307 msgid "– Create and sell multiple gift cards with ease." 308 308 msgstr "" 309 309 310 #: admin/class-woocommerce-gift-cards-lite-admin.php:14 83310 #: admin/class-woocommerce-gift-cards-lite-admin.php:1491 311 311 msgid "Enable Gift Cards" 312 312 msgstr "" 313 313 314 #: admin/class-woocommerce-gift-cards-lite-admin.php:158 0314 #: admin/class-woocommerce-gift-cards-lite-admin.php:1588 315 315 msgid "Import Templates" 316 316 msgstr "" 317 317 318 #: admin/class-woocommerce-gift-cards-lite-admin.php:158 0318 #: admin/class-woocommerce-gift-cards-lite-admin.php:1588 319 319 msgid "Import Templates <span style=\"color:#00FF00;\">Pro</span>" 320 320 msgstr "" 321 321 322 #: admin/class-woocommerce-gift-cards-lite-admin.php:16 35322 #: admin/class-woocommerce-gift-cards-lite-admin.php:1643 323 323 msgid "Import Gift Card Templates" 324 324 msgstr "" 325 325 326 #: admin/class-woocommerce-gift-cards-lite-admin.php:164 0326 #: admin/class-woocommerce-gift-cards-lite-admin.php:1648 327 327 msgid "Filter Gift Card Templates" 328 328 msgstr "" 329 329 330 #: admin/class-woocommerce-gift-cards-lite-admin.php:16 44330 #: admin/class-woocommerce-gift-cards-lite-admin.php:1652 331 331 msgid "Import All Gift Card Templates At Once" 332 332 msgstr "" 333 333 334 #: admin/class-woocommerce-gift-cards-lite-admin.php:17 02334 #: admin/class-woocommerce-gift-cards-lite-admin.php:1710 335 335 msgid "Import this template." 336 336 msgstr "" -
woo-gift-cards-lite/trunk/languages/woo-gift-cards-lite.pot
r3019308 r3046745 2 2 msgid "" 3 3 msgstr "" 4 "Project-Id-Version: Ultimate Gift Cards For WooCommerce 2.6. 6\n"5 "POT-Creation-Date: 2024-0 1-08 15:19+0530\n"4 "Project-Id-Version: Ultimate Gift Cards For WooCommerce 2.6.7\n" 5 "POT-Creation-Date: 2024-03-07 11:27+0530\n" 6 6 "PO-Revision-Date: 2023-01-09 11:42+0530\n" 7 7 "Last-Translator: \n" … … 268 268 msgstr "" 269 269 270 #: admin/class-woocommerce-gift-cards-lite-admin.php:122 0270 #: admin/class-woocommerce-gift-cards-lite-admin.php:1225 271 271 msgid "from@example.com" 272 272 msgstr "" 273 273 274 #: admin/class-woocommerce-gift-cards-lite-admin.php:122 1274 #: admin/class-woocommerce-gift-cards-lite-admin.php:1226 275 275 msgid "to@example.com" 276 276 msgstr "" 277 277 278 #: admin/class-woocommerce-gift-cards-lite-admin.php:122 2278 #: admin/class-woocommerce-gift-cards-lite-admin.php:1227 279 279 msgid "Your gift message will appear here which you send to your receiver. " 280 280 msgstr "" 281 281 282 #: admin/class-woocommerce-gift-cards-lite-admin.php:12 67282 #: admin/class-woocommerce-gift-cards-lite-admin.php:1275 283 283 #: admin/partials/woocommerce-gift-cards-lite-admin-display.php:198 284 284 msgid "Demo" 285 285 msgstr "" 286 286 287 #: admin/class-woocommerce-gift-cards-lite-admin.php:12 68287 #: admin/class-woocommerce-gift-cards-lite-admin.php:1276 288 288 msgid "Documentation" 289 289 msgstr "" 290 290 291 #: admin/class-woocommerce-gift-cards-lite-admin.php:12 69291 #: admin/class-woocommerce-gift-cards-lite-admin.php:1277 292 292 msgid "Video" 293 293 msgstr "" 294 294 295 #: admin/class-woocommerce-gift-cards-lite-admin.php:127 0295 #: admin/class-woocommerce-gift-cards-lite-admin.php:1278 296 296 msgid "Support" 297 297 msgstr "" 298 298 299 #: admin/class-woocommerce-gift-cards-lite-admin.php:127 1299 #: admin/class-woocommerce-gift-cards-lite-admin.php:1279 300 300 msgid "Services" 301 301 msgstr "" 302 302 303 #: admin/class-woocommerce-gift-cards-lite-admin.php:14 73303 #: admin/class-woocommerce-gift-cards-lite-admin.php:1481 304 304 msgid "Welcome to Ultimate Gift Cards For WooCommerce" 305 305 msgstr "" 306 306 307 #: admin/class-woocommerce-gift-cards-lite-admin.php:14 73307 #: admin/class-woocommerce-gift-cards-lite-admin.php:1481 308 308 msgid "– Create and sell multiple gift cards with ease." 309 309 msgstr "" 310 310 311 #: admin/class-woocommerce-gift-cards-lite-admin.php:14 83311 #: admin/class-woocommerce-gift-cards-lite-admin.php:1491 312 312 msgid "Enable Gift Cards" 313 313 msgstr "" 314 314 315 #: admin/class-woocommerce-gift-cards-lite-admin.php:158 0315 #: admin/class-woocommerce-gift-cards-lite-admin.php:1588 316 316 msgid "Import Templates" 317 317 msgstr "" 318 318 319 #: admin/class-woocommerce-gift-cards-lite-admin.php:158 0319 #: admin/class-woocommerce-gift-cards-lite-admin.php:1588 320 320 msgid "Import Templates <span style=\"color:#00FF00;\">Pro</span>" 321 321 msgstr "" 322 322 323 #: admin/class-woocommerce-gift-cards-lite-admin.php:16 35323 #: admin/class-woocommerce-gift-cards-lite-admin.php:1643 324 324 msgid "Import Gift Card Templates" 325 325 msgstr "" 326 326 327 #: admin/class-woocommerce-gift-cards-lite-admin.php:164 0327 #: admin/class-woocommerce-gift-cards-lite-admin.php:1648 328 328 msgid "Filter Gift Card Templates" 329 329 msgstr "" 330 330 331 #: admin/class-woocommerce-gift-cards-lite-admin.php:16 44331 #: admin/class-woocommerce-gift-cards-lite-admin.php:1652 332 332 msgid "Import All Gift Card Templates At Once" 333 333 msgstr "" 334 334 335 #: admin/class-woocommerce-gift-cards-lite-admin.php:17 02335 #: admin/class-woocommerce-gift-cards-lite-admin.php:1710 336 336 msgid "Import this template." 337 337 msgstr "" -
woo-gift-cards-lite/trunk/public/class-woocommerce-gift-cards-lite-public.php
r3012841 r3046745 612 612 $wps_field_nonce = isset( $_POST['wps_wgm_single_nonce_field'] ) ? stripcslashes( sanitize_text_field( wp_unslash( $_POST['wps_wgm_single_nonce_field'] ) ) ) : ''; 613 613 if ( ! isset( $wps_field_nonce ) || ! wp_verify_nonce( $wps_field_nonce, 'wps_wgm_single_nonce' ) ) { 614 614 615 615 return $the_cart_data; 616 616 } else { … … 1071 1071 $coupon_amount_deducted = wps_wgm_hpos_get_meta_data( $order_id, 'wps_wgm_coupon_amount_deducted', true ); 1072 1072 if ( 'deduct' !== $coupon_amount_deducted ) { 1073 foreach ( $order->get_items( 'coupon') as $item_id => $item ) {1073 foreach ( $order->get_items( 'coupon' ) as $item_id => $item ) { 1074 1074 $this->wps_wgm_woocommerce_new_order_item( $item_id, $item, $order_id ); 1075 1075 wps_wgm_hpos_update_meta_data( $order_id, 'wps_wgm_coupon_amount_deducted', 'deduct' ); … … 1753 1753 */ 1754 1754 public function wps_wgm_wc_shipping_enabled( $enable ) { 1755 $wps_wgc_enable = wps_wgm_giftcard_enable();1756 if ( CartCheckoutUtils::is_cart_block_default() || CartCheckoutUtils::is_checkout_block_default() ) {1757 if ( ( true ) && $wps_wgc_enable ) {1758 global $woocommerce;1759 $gift_bool = false;1760 $other_bool = false;1761 $gift_bool_ship = false;1762 if ( isset( WC()->cart ) && ! empty( WC()->cart ) ) {1763 foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {1764 $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );1765 $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key );1766 $product_types = wp_get_object_terms( $product_id, 'product_type' );1767 if ( isset( $product_types[0] ) ) {1768 $product_type = $product_types[0]->slug;1769 if ( isset( $cart_item['product_meta'] ) ) {1770 if ( 'wgm_gift_card' == $product_type || ( isset( $cart_item['product_meta']['meta_data']['sell_as_a_gc'] ) && 'on' === $cart_item['product_meta']['meta_data']['sell_as_a_gc'] ) ) {1771 if ( 'Mail to recipient' == $cart_item['product_meta']['meta_data']['delivery_method'] || 'Downloadable' == $cart_item['product_meta']['meta_data']['delivery_method'] ) {1772 $gift_bool = true;1773 } elseif ( 'shipping' == $cart_item['product_meta']['meta_data']['delivery_method'] ) {1774 $gift_bool_ship = true;1775 }1776 } else if ( ! $cart_item['data']->is_virtual() ) {1777 $other_bool = true;1778 }1779 } else if ( ! $cart_item['data']->is_virtual() ) {1780 $other_bool = true;1781 }1782 }1783 }1784 if ( $gift_bool && ! $gift_bool_ship && ! $other_bool ) {1785 $enable = false;1786 } else {1787 $enable = true;1788 }1789 }1790 }1791 } else {1792 if ( ( is_cart() || is_checkout() ) && $wps_wgc_enable ) {1793 global $woocommerce;1794 $gift_bool = false;1795 $other_bool = false;1796 $gift_bool_ship = false;1797 if ( isset( WC()->cart ) && ! empty( WC()->cart ) ) {1798 foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {1799 $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );1800 $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key );1801 $product_types = wp_get_object_terms( $product_id, 'product_type' );1802 if ( isset( $product_types[0] ) ) {1803 $product_type = $product_types[0]->slug;1804 if ( isset( $cart_item['product_meta'] ) ) {1805 if ( 'wgm_gift_card' == $product_type || ( isset( $cart_item['product_meta']['meta_data']['sell_as_a_gc'] ) && 'on' === $cart_item['product_meta']['meta_data']['sell_as_a_gc'] ) ) {1806 if ( 'Mail to recipient' == $cart_item['product_meta']['meta_data']['delivery_method'] || 'Downloadable' == $cart_item['product_meta']['meta_data']['delivery_method'] ) {1807 $gift_bool = true;1808 } elseif ( 'shipping' == $cart_item['product_meta']['meta_data']['delivery_method'] ) {1809 $gift_bool_ship = true;1810 }1811 } else if ( ! $cart_item['data']->is_virtual() ) {1812 $other_bool = true;1813 }1814 } else if ( ! $cart_item['data']->is_virtual() ) {1815 $other_bool = true;1816 }1817 }1818 }1819 if ( $gift_bool && ! $gift_bool_ship && ! $other_bool ) {1820 $enable = false;1821 } else {1822 $enable = true;1823 }1824 }1825 }1826 }1827 return $enable;1828 }1755 $wps_wgc_enable = wps_wgm_giftcard_enable(); 1756 if ( CartCheckoutUtils::is_cart_block_default() || CartCheckoutUtils::is_checkout_block_default() ) { 1757 if ( ( true ) && $wps_wgc_enable ) { 1758 global $woocommerce; 1759 $gift_bool = false; 1760 $other_bool = false; 1761 $gift_bool_ship = false; 1762 if ( isset( WC()->cart ) && ! empty( WC()->cart ) ) { 1763 foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { 1764 $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); 1765 $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); 1766 $product_types = wp_get_object_terms( $product_id, 'product_type' ); 1767 if ( isset( $product_types[0] ) ) { 1768 $product_type = $product_types[0]->slug; 1769 if ( isset( $cart_item['product_meta'] ) ) { 1770 if ( 'wgm_gift_card' == $product_type || ( isset( $cart_item['product_meta']['meta_data']['sell_as_a_gc'] ) && 'on' === $cart_item['product_meta']['meta_data']['sell_as_a_gc'] ) ) { 1771 if ( 'Mail to recipient' == $cart_item['product_meta']['meta_data']['delivery_method'] || 'Downloadable' == $cart_item['product_meta']['meta_data']['delivery_method'] ) { 1772 $gift_bool = true; 1773 } elseif ( 'shipping' == $cart_item['product_meta']['meta_data']['delivery_method'] ) { 1774 $gift_bool_ship = true; 1775 } 1776 } else if ( ! $cart_item['data']->is_virtual() ) { 1777 $other_bool = true; 1778 } 1779 } else if ( ! $cart_item['data']->is_virtual() ) { 1780 $other_bool = true; 1781 } 1782 } 1783 } 1784 if ( $gift_bool && ! $gift_bool_ship && ! $other_bool ) { 1785 $enable = false; 1786 } else { 1787 $enable = true; 1788 } 1789 } 1790 } 1791 } else { 1792 if ( ( is_cart() || is_checkout() ) && $wps_wgc_enable ) { 1793 global $woocommerce; 1794 $gift_bool = false; 1795 $other_bool = false; 1796 $gift_bool_ship = false; 1797 if ( isset( WC()->cart ) && ! empty( WC()->cart ) ) { 1798 foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { 1799 $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); 1800 $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); 1801 $product_types = wp_get_object_terms( $product_id, 'product_type' ); 1802 if ( isset( $product_types[0] ) ) { 1803 $product_type = $product_types[0]->slug; 1804 if ( isset( $cart_item['product_meta'] ) ) { 1805 if ( 'wgm_gift_card' == $product_type || ( isset( $cart_item['product_meta']['meta_data']['sell_as_a_gc'] ) && 'on' === $cart_item['product_meta']['meta_data']['sell_as_a_gc'] ) ) { 1806 if ( 'Mail to recipient' == $cart_item['product_meta']['meta_data']['delivery_method'] || 'Downloadable' == $cart_item['product_meta']['meta_data']['delivery_method'] ) { 1807 $gift_bool = true; 1808 } elseif ( 'shipping' == $cart_item['product_meta']['meta_data']['delivery_method'] ) { 1809 $gift_bool_ship = true; 1810 } 1811 } else if ( ! $cart_item['data']->is_virtual() ) { 1812 $other_bool = true; 1813 } 1814 } else if ( ! $cart_item['data']->is_virtual() ) { 1815 $other_bool = true; 1816 } 1817 } 1818 } 1819 if ( $gift_bool && ! $gift_bool_ship && ! $other_bool ) { 1820 $enable = false; 1821 } else { 1822 $enable = true; 1823 } 1824 } 1825 } 1826 } 1827 return $enable; 1828 } 1829 1829 1830 1830 /** … … 2298 2298 public function wps_uwgc_gift_card_balance_org() { 2299 2299 $html = '<div class="wps_gift_card_balance_wrapper">'; 2300 2300 2301 2301 $html .= '<div class="gift_card_balance_email"><label>' . __( 'Enter Recipient Email', 'woo-gift-cards-lite' ) . '</label> <input type="email" id="gift_card_balance_email" class="wps_gift_balance" placeholder="' . __( 'Enter Recipient Email/Name or Sender Email.', 'woo-gift-cards-lite' ) . '" required="required"></div>'; 2302 2302 $html .= '<div class="gift_card_code"><label>' . __( 'Enter Gift Card Code', 'woo-gift-cards-lite' ) . '</label> <input type="text" id="gift_card_code" class="wps_gift_balance" placeholder="' . __( 'Enter Gift Card Code', 'woo-gift-cards-lite' ) . '" required="required"></div>'; -
woo-gift-cards-lite/trunk/readme.txt
r3019308 r3046745 4 4 Tags: gift, gift card, gift certificates, woocommerce gift cards, gift vouchers, gift cards, gifts, certificate, gift cards woocommerce 5 5 Requires at least: 5.1.0 6 Tested up to: 6.4. 26 Tested up to: 6.4.3 7 7 WC requires at least: 5.5.0 8 WC tested up to: 8. 4.09 Stable tag: 2.6. 68 WC tested up to: 8.6.1 9 Stable tag: 2.6.7 10 10 Requires PHP: 5.6 11 11 License: GPL-3.0+ … … 239 239 == Changelog == 240 240 241 = 2.6.7 - Released on 07 March 2024 = 242 * New: Compatibility with latest WP(6.4.3) and WC(8.6.1) 243 * FIx: WordPress security issue (getting post data using url without editor role) 244 241 245 = 2.6.6 - Released on 09 January 2024 = 242 246 * New: Add Class ".wps_check_balance .button", for Customised Balance Check button … … 453 457 == Upgrade Notice == 454 458 455 = 2.6. 6 - Released on 09 January2024 =456 * New: Add Class "wps_check_balance button", for Customised Balance Check button457 * F ix: Removed Migration Code.459 = 2.6.7 - Released on 07 March 2024 = 460 * New: Compatibility with latest WP(6.4.3) and WC(8.6.1) 461 * FIx: WordPress security issue (getting post data using url without editor role) -
woo-gift-cards-lite/trunk/woocommerce_gift_cards_lite.php
r3019308 r3046745 16 16 * Plugin URI: https://wordpress.org/plugins/woo-gift-cards-lite/?utm_source=wpswings-giftcards-org&utm_medium=giftcards-org-backend&utm_campaign=org 17 17 * Description: <code><strong>Ultimate Gift Cards For WooCommerce</strong></code> allows merchants to create and sell fascinating Gift Card Product with multiple price variation. <a href="https://wpswings.com/woocommerce-plugins/?utm_source=wpswings-giftcards-shop&utm_medium=giftcards-org-backend&utm_campaign=shop-page" target="_blank"> Elevate your e-commerce store by exploring more on <strong> WP Swings </strong></a>. 18 * Version: 2.6. 618 * Version: 2.6.7 19 19 * Author: WP Swings 20 20 * Author URI: https://wpswings.com/?utm_source=wpswings-giftcards-official&utm_medium=giftcards-org-backend&utm_campaign=official … … 22 22 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt 23 23 * Text Domain: woo-gift-cards-lite 24 * WP Tested up to: 6.4. 224 * WP Tested up to: 6.4.3 25 25 * WP requires at least: 5.5.0 26 * WC tested up to: 8. 4.026 * WC tested up to: 8.6.1 27 27 * WC requires at least: 5.5.0 28 28 * Domain Path: /languages … … 69 69 define( 'WPS_WGC_URL', plugin_dir_url( __FILE__ ) ); 70 70 define( 'WPS_WGC_ADMIN_URL', admin_url() ); 71 define( 'WPS_WGC_VERSION', '2.6. 6' );71 define( 'WPS_WGC_VERSION', '2.6.7' ); 72 72 define( 'WPS_WGC_ONBOARD_PLUGIN_NAME', 'Ultimate Gift Cards For WooCommerce' ); 73 73 define( 'WPS_GIFT_TEMPLATE_URL', 'https://demo.wpswings.com/client-notification/' );
Note: See TracChangeset
for help on using the changeset viewer.