Changeset 3006227
- Timestamp:
- 12/06/2023 02:38:39 PM (2 years ago)
- Location:
- managedorg-product-driver
- Files:
-
- 59 added
- 3 edited
-
tags/1.0.7.9 (added)
-
tags/1.0.7.9/LICENSE.txt (added)
-
tags/1.0.7.9/css (added)
-
tags/1.0.7.9/css/ajax-loader.gif (added)
-
tags/1.0.7.9/css/bootstrap.min.css (added)
-
tags/1.0.7.9/css/bootstrap.min.css.map (added)
-
tags/1.0.7.9/css/font-awesome.min.css (added)
-
tags/1.0.7.9/css/modd_style.css (added)
-
tags/1.0.7.9/css/payment.css (added)
-
tags/1.0.7.9/css/simplePagination.min.css (added)
-
tags/1.0.7.9/css/simplePagination.min.css.map (added)
-
tags/1.0.7.9/css/slick-theme.css (added)
-
tags/1.0.7.9/css/slick.css (added)
-
tags/1.0.7.9/css/toastr.min.css (added)
-
tags/1.0.7.9/donative.php (added)
-
tags/1.0.7.9/fonts (added)
-
tags/1.0.7.9/fonts/fontawesome-webfont.ttf (added)
-
tags/1.0.7.9/fonts/fontawesome-webfont.woff (added)
-
tags/1.0.7.9/fonts/fontawesome-webfont.woff2 (added)
-
tags/1.0.7.9/images (added)
-
tags/1.0.7.9/images/ab-logo-black.svg (added)
-
tags/1.0.7.9/images/ab-logo-white.svg (added)
-
tags/1.0.7.9/images/cards.png (added)
-
tags/1.0.7.9/images/cart_logo.png (added)
-
tags/1.0.7.9/images/cash-donation.svg (added)
-
tags/1.0.7.9/images/delete-sign.png (added)
-
tags/1.0.7.9/images/donate.png (added)
-
tags/1.0.7.9/images/empty-cart.png (added)
-
tags/1.0.7.9/images/featured-1.png (added)
-
tags/1.0.7.9/images/featured-2.png (added)
-
tags/1.0.7.9/images/high-priority.png (added)
-
tags/1.0.7.9/images/icon.png (added)
-
tags/1.0.7.9/images/important-old.jpg (added)
-
tags/1.0.7.9/images/important.png (added)
-
tags/1.0.7.9/images/inputLoading.gif (added)
-
tags/1.0.7.9/images/loading.gif (added)
-
tags/1.0.7.9/images/noImage.png (added)
-
tags/1.0.7.9/images/project.jpg (added)
-
tags/1.0.7.9/images/red_ribbon_featured.png (added)
-
tags/1.0.7.9/images/sreyologo-1.png (added)
-
tags/1.0.7.9/images/ss.jpg (added)
-
tags/1.0.7.9/js (added)
-
tags/1.0.7.9/js/axios.min.js (added)
-
tags/1.0.7.9/js/axios.min.map (added)
-
tags/1.0.7.9/js/bootstrap.bundle.min.js (added)
-
tags/1.0.7.9/js/bootstrap.bundle.min.js.map (added)
-
tags/1.0.7.9/js/jquery.simplePagination.min.js (added)
-
tags/1.0.7.9/js/modd_myscript.js (added)
-
tags/1.0.7.9/js/payment-internal.js (added)
-
tags/1.0.7.9/js/payment.1.3.min.js (added)
-
tags/1.0.7.9/js/payments-donative.js (added)
-
tags/1.0.7.9/js/popper.min.js.map (added)
-
tags/1.0.7.9/js/slick.min.js (added)
-
tags/1.0.7.9/js/toastr.min.js (added)
-
tags/1.0.7.9/lib (added)
-
tags/1.0.7.9/lib/admin_settings.php (added)
-
tags/1.0.7.9/lib/countrylist.html (added)
-
tags/1.0.7.9/readme.txt (added)
-
tags/1.0.7.9/uninstall.php (added)
-
trunk/donative.php (modified) (6 diffs)
-
trunk/js/modd_myscript.js (modified) (7 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
managedorg-product-driver/trunk/donative.php
r3002739 r3006227 4 4 Plugin URI: https://wordpress.org/plugins/managedorg-product-driver/ 5 5 Description: Managedorg Product Driver for Amazon Business Integration. 6 Version: 1.0.7. 86 Version: 1.0.7.9 7 7 Author: Managedorg 8 8 Author URI: https://managedorg.io/ … … 11 11 12 12 if (!class_exists('MODD_Donation')) : 13 define('MODD_VERSION', '1.0.7. 8');13 define('MODD_VERSION', '1.0.7.9'); 14 14 define('MODD_PLUGIN_URL', plugin_dir_url(__FILE__)); 15 15 define('MODD_PLUGIN_MAIN_PATH', plugin_dir_path(__FILE__)); … … 274 274 $helpwith_description =''; 275 275 $priority_first = ''; 276 $helpwith_enable = ''; 276 277 277 278 $a = shortcode_atts( array( … … 297 298 'helpwith_label'=>'', 298 299 'helpwith_description'=>'', 299 'priority_first'=>'' 300 'priority_first'=>'', 301 'helpwith_enable'=>'' 300 302 301 303 ), $atts ); … … 362 364 if($a['priority_first'] != ''){ 363 365 $priority_first = esc_attr($a['priority_first']); 366 } 367 if($a['helpwith_enable'] != ''){ 368 $helpwith_enable = esc_attr($a['helpwith_enable']); 364 369 } 365 370 $myContent = ''; … … 388 393 if (!empty($priority_first)) { 389 394 $myContent .= ' data-priority_first="'.$priority_first.'"'; 395 } 396 if (!empty($helpwith_enable) || $helpwith_enable ==0) { 397 $myContent .= ' data-helpwith_enable="'.$helpwith_enable.'"'; 390 398 } 391 399 -
managedorg-product-driver/trunk/js/modd_myscript.js
r3002739 r3006227 123 123 if($("#modd_campaign_list_div").data("helpwith_description") != undefined && $("#modd_campaign_list_div").data( "helpwith_description") !== null) { 124 124 helpwith_description = $("#modd_campaign_list_div").data( "helpwith_description" ); 125 } 126 127 var helpwith_enable = 1; 128 if($("#modd_campaign_list_div").data("helpwith_enable") != undefined && $("#modd_campaign_list_div").data( "helpwith_enable") !== null) { 129 helpwith_enable = $("#modd_campaign_list_div").data( "helpwith_enable" ); 125 130 } 126 131 … … 2019 2024 st="none" 2020 2025 } 2026 if(helpwith_enable == 1){ 2021 2027 cartItemContent += '<p class="roundup-p" style="display:'+st+'"><input type="checkbox" name="modd_servicebox" id="modd_servicebox" class="form-check-input roundup-checkbox "'+cart_checkbox_checked+' style="position: initial !important; margin-left: 1px;" /><label for="modd_servicebox" class="form-check-label servicebox-label" >'+helpwith_checkbox_text+'</label>'; 2022 cartItemContent += '</p>'; 2028 cartItemContent += '</p>'; 2029 } 2023 2030 2024 2031 cartItemContent += '</div>'; … … 2047 2054 cartItemContent += '</div>'; 2048 2055 2049 cartItemContent += '<div class="modd_cart_summary_row modd_surcharge_div">'; 2050 cartItemContent += '<div class="modd_cart_summary_label modd-tooltip">'+helpwith_label+' <i class="fa fa-question-circle"></i> <span class="modd-tooltiptext">'+helpwith_description+'</span></div>'; 2051 cartItemContent += '<div class="modd_cart_summary_value" id="modd_cart_surcharge">$0.00</div>'; 2052 cartItemContent += '</div>'; 2056 if(helpwith_enable ==1) { 2057 cartItemContent += '<div class="modd_cart_summary_row modd_surcharge_div">'; 2058 cartItemContent += '<div class="modd_cart_summary_label modd-tooltip">'+helpwith_label+' <i class="fa fa-question-circle"></i> <span class="modd-tooltiptext">'+helpwith_description+'</span></div>'; 2059 cartItemContent += '<div class="modd_cart_summary_value" id="modd_cart_surcharge">$0.00</div>'; 2060 cartItemContent += '</div>'; 2061 } 2053 2062 2054 2063 //Handing … … 2126 2135 } 2127 2136 var cartItemAmt = parseInt(itemQty) * parseFloat(itemObj.PRODUCT_AMOUNT); 2128 2129 if(itemObj.scharge !==null && itemObj.scharge !== undefined && itemObj.scharge !== 'undefined') {2130 surcharges = itemObj.scharge;2131 surcharge_types = itemObj.stype;2132 }2133 2137 if(helpwith_enable == 1) { 2138 if(itemObj.scharge !==null && itemObj.scharge !== undefined && itemObj.scharge !== 'undefined') { 2139 surcharges = itemObj.scharge; 2140 surcharge_types = itemObj.stype; 2141 } 2142 } 2134 2143 s_check.push(surcharges); 2135 2144 s_type.push(surcharge_types); … … 2422 2431 surcharges = parseFloat(surcharges).toFixed(2); 2423 2432 cSubmit.surcharge = surcharges; 2433 if(helpwith_enable !== 1){ 2434 cSubmit.surcharge = 0; 2435 } 2424 2436 cSubmit.roundup = parseFloat(cartObj.RoundUP); 2425 2437 cSubmit.donation = parseFloat(cashDonationAmount); … … 2548 2560 surcharges = s_check[0]; 2549 2561 } 2550 if($("#modd_servicebox").prop('checked') == false ){2562 if($("#modd_servicebox").prop('checked') == false || helpwith_enable !==1){ 2551 2563 surcharges = 0; 2552 2564 } else { … … 2873 2885 surcharges = parseFloat(surcharges).toFixed(2); 2874 2886 cSubmit.surcharge = surcharges; 2887 if(helpwith_enable !== 1){ 2888 cSubmit.surcharge = 0; 2889 } 2875 2890 cSubmit.roundup = parseFloat(cartObj.RoundUP); 2876 2891 cSubmit.donation = parseFloat(cashDonationAmount); -
managedorg-product-driver/trunk/readme.txt
r3002739 r3006227 3 3 Tags: Managedorg, Product Driver, Donation, Donation Driver, Charity, Fund Raiser, Fund, Donate, Donate Now, Donation Campaign, Campaign 4 4 Requires at least: 4.7 5 Tested up to: 6. 3.26 Stable tag: 1.0.7. 85 Tested up to: 6.4.1 6 Stable tag: 1.0.7.9 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 44 44 helpwith_label ---> Change 'Help with' checkbox label. e.g., helpwith_label="my new label" 45 45 helpwith_description ---> Change 'Help with' checkbox description. e.g., helpwith_description="my new description" 46 helpwith_enable ---> For removing 'Help With' checkbox. Use helpwith_description="0" 46 47 47 48 … … 164 165 * Pricing format modified. 165 166 166 = 1.0.7. 8=167 = 1.0.7.9= 167 168 * New design 168 169 * New shortcode attributes products_per_page, campaigns_per_page, cart_checkbox
Note: See TracChangeset
for help on using the changeset viewer.