Changeset 2941103
- Timestamp:
- 07/21/2023 05:21:44 AM (3 years ago)
- Location:
- managedorg-product-driver
- Files:
-
- 59 added
- 3 edited
-
tags/1.0.7.3 (added)
-
tags/1.0.7.3/LICENSE.txt (added)
-
tags/1.0.7.3/css (added)
-
tags/1.0.7.3/css/ajax-loader.gif (added)
-
tags/1.0.7.3/css/bootstrap.min.css (added)
-
tags/1.0.7.3/css/bootstrap.min.css.map (added)
-
tags/1.0.7.3/css/font-awesome.min.css (added)
-
tags/1.0.7.3/css/modd_style.css (added)
-
tags/1.0.7.3/css/payment.css (added)
-
tags/1.0.7.3/css/simplePagination.min.css (added)
-
tags/1.0.7.3/css/simplePagination.min.css.map (added)
-
tags/1.0.7.3/css/slick-theme.css (added)
-
tags/1.0.7.3/css/slick.css (added)
-
tags/1.0.7.3/css/toastr.min.css (added)
-
tags/1.0.7.3/donative.php (added)
-
tags/1.0.7.3/fonts (added)
-
tags/1.0.7.3/fonts/fontawesome-webfont.ttf (added)
-
tags/1.0.7.3/fonts/fontawesome-webfont.woff (added)
-
tags/1.0.7.3/fonts/fontawesome-webfont.woff2 (added)
-
tags/1.0.7.3/images (added)
-
tags/1.0.7.3/images/ab-logo-black.svg (added)
-
tags/1.0.7.3/images/ab-logo-white.svg (added)
-
tags/1.0.7.3/images/cards.png (added)
-
tags/1.0.7.3/images/cart_logo.png (added)
-
tags/1.0.7.3/images/cash-donation.svg (added)
-
tags/1.0.7.3/images/delete-sign.png (added)
-
tags/1.0.7.3/images/donate.png (added)
-
tags/1.0.7.3/images/empty-cart.png (added)
-
tags/1.0.7.3/images/featured-1.png (added)
-
tags/1.0.7.3/images/featured-2.png (added)
-
tags/1.0.7.3/images/high-priority.png (added)
-
tags/1.0.7.3/images/icon.png (added)
-
tags/1.0.7.3/images/important-old.jpg (added)
-
tags/1.0.7.3/images/important.png (added)
-
tags/1.0.7.3/images/inputLoading.gif (added)
-
tags/1.0.7.3/images/loading.gif (added)
-
tags/1.0.7.3/images/noImage.png (added)
-
tags/1.0.7.3/images/project.jpg (added)
-
tags/1.0.7.3/images/red_ribbon_featured.png (added)
-
tags/1.0.7.3/images/sreyologo-1.png (added)
-
tags/1.0.7.3/images/ss.jpg (added)
-
tags/1.0.7.3/js (added)
-
tags/1.0.7.3/js/axios.min.js (added)
-
tags/1.0.7.3/js/axios.min.map (added)
-
tags/1.0.7.3/js/bootstrap.bundle.min.js (added)
-
tags/1.0.7.3/js/bootstrap.bundle.min.js.map (added)
-
tags/1.0.7.3/js/jquery.simplePagination.min.js (added)
-
tags/1.0.7.3/js/modd_myscript.js (added)
-
tags/1.0.7.3/js/payment-internal.js (added)
-
tags/1.0.7.3/js/payment.1.3.min.js (added)
-
tags/1.0.7.3/js/payments-donative.js (added)
-
tags/1.0.7.3/js/popper.min.js.map (added)
-
tags/1.0.7.3/js/slick.min.js (added)
-
tags/1.0.7.3/js/toastr.min.js (added)
-
tags/1.0.7.3/lib (added)
-
tags/1.0.7.3/lib/admin_settings.php (added)
-
tags/1.0.7.3/lib/countrylist.php (added)
-
tags/1.0.7.3/readme.txt (added)
-
tags/1.0.7.3/uninstall.php (added)
-
trunk/donative.php (modified) (2 diffs)
-
trunk/js/modd_myscript.js (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
managedorg-product-driver/trunk/donative.php
r2940482 r2941103 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. 26 Version: 1.0.7.3 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. 2');13 define('MODD_VERSION', '1.0.7.3'); 14 14 define('MODD_PLUGIN_URL', plugin_dir_url(__FILE__)); 15 15 define('MODD_PLUGIN_MAIN_PATH', plugin_dir_path(__FILE__)); -
managedorg-product-driver/trunk/js/modd_myscript.js
r2940482 r2941103 52 52 tags = tagValue; 53 53 } 54 var static_server = null; 54 55 if($("#modd_campaign_list_div").data("server") !== undefined && $("#modd_campaign_list_div").data("server") !== null && $("#modd_campaign_list_div").data("server") !== ""){ 55 56 server = $("#modd_campaign_list_div").data("server"); 57 static_server = server; 56 58 } 57 59 if($("#modd_campaign_list_div").data("admin") !== undefined && $("#modd_campaign_list_div").data("admin") !== null && $("#modd_campaign_list_div").data("admin") !== ""){ … … 134 136 .then(res => { 135 137 if(res.data.customerData != null){ 136 137 var frontendUrl = res.data.customerData.websiteURL; 138 var dynamic_server = null; 139 if(res.data.customerData.backendApi !== null) { 140 var dynamic_server = res.data.customerData.backendApi; 141 dynamic_server= "https://" + dynamic_server.replace(/^https?:\/\//, "").replace(/\/+$/, "") + "/api/"; 142 } 143 var frontendUrl = res.data.customerData.websiteURL; 138 144 var frontendUrl = server_only.replace(/^https?:\/\//, ''); 139 145 if (frontendUrl.endsWith('/')) { … … 146 152 loadProductListInScroll(false, location, tags); 147 153 loadProductListInScroll(true, location, tags); 148 loadCampaignListInPage(location, tags, campaign_id, campaign_type );154 loadCampaignListInPage(location, tags, campaign_id, campaign_type, dynamic_server); 149 155 } 150 156 else{ 151 157 loadProductListInScroll(false, location, tagsS); 152 158 loadProductListInScroll(true, location, tagsS); 153 loadCampaignListInPage(location, tagsL, campaign_id, campaign_type );159 loadCampaignListInPage(location, tagsL, campaign_id, campaign_type, dynamic_server); 154 160 } 155 161 } … … 429 435 430 436 431 function loadCampaignListInPage(loc, tag, campaign_id, campaign_type ){437 function loadCampaignListInPage(loc, tag, campaign_id, campaign_type, dynamic_server){ 432 438 var locArray = loc.split(',').map(function(item) { 433 439 return item.trim(); … … 444 450 445 451 $('#modd_loadingDiv').show(); 446 var request_url = server+"campaigns?filters[isActive][$eq]=true&filters[isPublished][$eq]=true&populate=*"; 452 var request_server = server; 453 if(dynamic_server !== null){ 454 request_server = dynamic_server; 455 } 456 if(static_server !== null){ 457 request_server = static_server; 458 } 459 var request_url = request_server+"campaigns?filters[isActive][$eq]=true&filters[isPublished][$eq]=true&populate=*"; 447 460 if(campaignValue !== null){ 448 request_url = server+"campaigns?filters[id][$eq]="+campaignValue+"&populate=*";461 request_url = request_server+"campaigns?filters[id][$eq]="+campaignValue+"&populate=*"; 449 462 } 450 463 //Get active campaign lists to append -
managedorg-product-driver/trunk/readme.txt
r2940482 r2941103 4 4 Requires at least: 4.7 5 5 Tested up to: 6.2 6 Stable tag: 1.0.7. 26 Stable tag: 1.0.7.3 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 144 144 * Pricing format modified. 145 145 146 = 1.0.7. 2=146 = 1.0.7.3 = 147 147 * New design 148 148 * New shortcode attributes products_per_page, campaigns_per_page, cart_checkbox
Note: See TracChangeset
for help on using the changeset viewer.