Changeset 2376342
- Timestamp:
- 09/07/2020 08:36:33 AM (6 years ago)
- Location:
- upload-add-on-for-woocommerce
- Files:
-
- 27 added
- 4 edited
-
tags/1.1 (added)
-
tags/1.1/README.md (added)
-
tags/1.1/assets (added)
-
tags/1.1/assets/css (added)
-
tags/1.1/assets/css/woo_ua-admin.css (added)
-
tags/1.1/assets/img (added)
-
tags/1.1/assets/img/order-preview.PNG (added)
-
tags/1.1/assets/img/setting-preview.PNG (added)
-
tags/1.1/assets/img/single product preview.PNG (added)
-
tags/1.1/assets/js (added)
-
tags/1.1/assets/js/admin.js (added)
-
tags/1.1/i18n (added)
-
tags/1.1/i18n/languages (added)
-
tags/1.1/i18n/languages/woo-uploads-addon.pot (added)
-
tags/1.1/includes (added)
-
tags/1.1/includes/admin (added)
-
tags/1.1/includes/admin/menu_links.php (added)
-
tags/1.1/includes/admin/settings_page.php (added)
-
tags/1.1/includes/admin/tabs_page.php (added)
-
tags/1.1/includes/class-wua-admin-settings.php (added)
-
tags/1.1/includes/class-wua-admin.php (added)
-
tags/1.1/includes/enqueue.php (added)
-
tags/1.1/includes/functions.php (added)
-
tags/1.1/includes/woo_ua_upload.php (added)
-
tags/1.1/readme.txt (added)
-
tags/1.1/uninstall.php (added)
-
tags/1.1/wooua.php (added)
-
trunk/includes/admin/tabs_page.php (modified) (1 diff)
-
trunk/includes/woo_ua_upload.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wooua.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
upload-add-on-for-woocommerce/trunk/includes/admin/tabs_page.php
r2375644 r2376342 24 24 'label' => __( 'Enable', 'my_text_domain' ), 25 25 'description' => __( 'Enable Woocommerce Upload on this product', 'my_text_domain' ), 26 'default' => ' 0',26 'default' => '1', 27 27 'desc_tip' => true, 28 28 ) ); -
upload-add-on-for-woocommerce/trunk/includes/woo_ua_upload.php
r2375644 r2376342 34 34 35 35 function woocommerce_woo_ua__add_to_cart_text() { 36 global $product; 37 $id = $product->get_id(); 36 38 // get options 37 39 wp_cache_flush(); … … 39 41 $woo_ua_enable = $options['woo_ua_enable']; 40 42 $woo_ua_cart_btn = $options['woo_ua_cart_btn']; 43 $woo_ua_field = get_post_meta($id, "_woo_ua_field", true); 41 44 42 if($woo_ua_enable ) {45 if($woo_ua_enable && $woo_ua_field == 'yes') { 43 46 if(!empty($woo_ua_cart_btn)) { 44 47 return __($woo_ua_cart_btn, 'woocommerce'); … … 56 59 wp_cache_flush(); 57 60 $options = get_option("woo_ua_options"); 61 $woo_ua_enable = $options['woo_ua_enable']; 58 62 $woo_ua_file_size = $options['woo_ua_file_size']; 59 63 $woo_ua_field = get_post_meta($product_id, "_woo_ua_field", true); 64 60 65 if($woo_ua_file_size == '1') { 61 66 $max_image_size = 1000 * 1000; // 1 MB (approx) … … 71 76 72 77 $addon_id = array(); 73 78 if($woo_ua_enable && $woo_ua_field == 'yes') { 74 79 if( isset( $_FILES ) && isset( $_FILES['wua_file_addon'] ) && $_FILES['wua_file_addon']['name'] !== '' && $_FILES['wua_file_addon']['size'] <= $max_image_size){ 75 80 … … 96 101 97 102 return $cart_item_meta; 103 } 98 104 } 99 105 -
upload-add-on-for-woocommerce/trunk/readme.txt
r2375644 r2376342 7 7 Tested up to: 5.6 8 8 Requires PHP: 5.6 9 Stable tag: 1. 09 Stable tag: 1.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 * Initial Launch Version 50 50 51 = 1.1 = 52 * Fix error in enable woocommerce upload addon in single product tab 53 51 54 == Upgrade Notice == 52 55 -
upload-add-on-for-woocommerce/trunk/wooua.php
r2375644 r2376342 8 8 Author URI: https://crystalwebpro.com 9 9 License: GPL2 10 Version: 1. 010 Version: 1.1 11 11 */ 12 12
Note: See TracChangeset
for help on using the changeset viewer.