Changeset 2404692
- Timestamp:
- 10/22/2020 03:46:05 PM (5 years ago)
- Location:
- wp-amazon-shop
- Files:
-
- 20 deleted
- 11 edited
-
tags/2.0.8/assets/banner-772x250.png (deleted)
-
tags/2.0.8/assets/icon-256x256.png (deleted)
-
tags/2.0.8/assets/screenshot-1.gif (deleted)
-
tags/2.0.8/assets/screenshot-1.png (deleted)
-
tags/2.0.8/assets/screenshot-10.png (deleted)
-
tags/2.0.8/assets/screenshot-2.gif (deleted)
-
tags/2.0.8/assets/screenshot-2.png (deleted)
-
tags/2.0.8/assets/screenshot-3.gif (deleted)
-
tags/2.0.8/assets/screenshot-3.png (deleted)
-
tags/2.0.8/assets/screenshot-4.png (deleted)
-
tags/2.0.8/assets/screenshot-5.png (deleted)
-
tags/2.0.8/assets/screenshot-6.png (deleted)
-
tags/2.0.8/assets/screenshot-7.png (deleted)
-
tags/2.0.8/assets/screenshot-8.png (deleted)
-
tags/2.0.8/assets/screenshot-9.png (deleted)
-
tags/2.0.8/branches (deleted)
-
tags/2.0.8/tags (deleted)
-
tags/2.0.8/trunk (deleted)
-
trunk/assets/js/admin.js (modified) (1 diff)
-
trunk/assets/js/frontend.js (modified) (1 diff)
-
trunk/includes/import/wp-amazon-extended-import.php (deleted)
-
trunk/includes/import/wp-amazon-shop-import.php (modified) (14 diffs)
-
trunk/includes/import/wpas-chrome-addon.php (deleted)
-
trunk/includes/wp-amazon-shop-feedback.php (modified) (3 diffs)
-
trunk/includes/wp-amazon-shop-functions.php (modified) (2 diffs)
-
trunk/includes/wp-amazon-shop-handler.php (modified) (4 diffs)
-
trunk/includes/wp-amazon-shop-info-page.php (modified) (6 diffs)
-
trunk/includes/wp-amazon-shop-plugin.php (modified) (2 diffs)
-
trunk/includes/wp-amazon-shop-settings.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (11 diffs)
-
trunk/wp-amazon-shop.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-amazon-shop/trunk/assets/js/admin.js
r2269811 r2404692 1 jQuery(function( i){wpas_admin_object.auth_token&&localStorage.setItem("wpas_import_ext_objects",JSON.stringify(wpas_admin_object));var c={ajax:function(a){return jQuery.post(wpas_admin_object.ajax_url,a)},preLoader:function(){return'<div class="wpas-ajax-pre-loader-container" ><img class="wpas-ajax-pre-loader" src="'+wpas_admin_object.image_path+'pre-loader.gif" alt="Loadding..." /></div>'},loadMorePreLoader:function(){return'<img class="wpas-ajax-loadmore-pre-loader" src="'+wpas_admin_object.image_path+'load-more.gif" alt="Loadding..." />'},pagination:function(a,t){if(1<t)var e='<li class="acl-product-import-previous" data-val="'+parseInt(t-1)+'">Previous</li>';else e="";for(var o=[],r=1;r<=a;r++)o.push(r);var n=[];for(r=1;r<=5;r++){var s=c.closestValue(o,t);n.push(s);var p=o.indexOf(s);-1!==p&&o.splice(p,1)}1!=t&&n.push(parseInt(t)),(n=n.filter(function(a,t,e){return t===e.indexOf(a)})).sort();for(r=n[0];r<=n.length;r++)e+=t==r?'<li class="acl-pagination-item-active" data-val="'+r+'">'+r+"</li>":'<li data-val="'+r+'">'+r+"</li>";t<a&&(e+='<li class="acl-product-import-next" data-val="'+parseInt(parseInt(t)+1)+'">Next</li>');return e},closestValue:function(a,t){for(var e=0;a[++e]<t;);return a[--e]},queBox:function(a,t,e,o,r){return'<div class="acl-col-md-2">\n<div class="acl-product-box" >\n<div class="acl-product-box-remove" data-thumb="'+o+'" data-url="'+e+'" data-asin="'+a+'" data-price="'+r+'"></div>\n<div class="acl-product-box-thumb">\n<img src="'+o+'" alt="'+t+'">\n</div>\n<div class="acl-product-box-info">\n<h3>'+t+"</h3>\n</div>\n</div>\n</div>"}};function o(e,a){i(".wpas-import-products-container,#wpas-woo-categories-container").show(),i(".wpas-import-pre-loader-container").html(c.preLoader());var t=wpas_admin_object.store_country+"&Keywords="+e+"&SearchIndex="+a+"&multipageStart="+wpas_admin_object.page_number+"&multipageCount="+wpas_admin_object.prouct_per_page;i.ajax({url:t,dataType:"jsonp",jsonpCallback:"search_callback",success:function(a){var t={action:"wpas_products_import_search",keyword:e,data:a.results};c.ajax(t).done(function(a){i(".wpas-import-pre-loader-container").html(""),i(".wpas-import-products-list").html(a.html),a.product_num>=wpas_admin_object.prouct_per_page?(i(".wpas-load-more-wrapper").show(),i("#wpas-import-load-more-btn").attr("data-keyword",a.keyword),i("#wpas-import-load-more-btn").attr("data-page-num",a.page_num)):i(".wpas-load-more-wrapper").hide()})},error:function(a,t,e){console.log(a,t,e)}})}function s(t,a,e){if(i(".wpas-no-aws-import-products-row").html(c.preLoader()),i("#backTop").show(),sessionStorage.getItem("wpasImport")){var o=JSON.parse(sessionStorage.getItem("wpasImport")).filter(function(a){return a.key==t});if(0<o.length){i(".wpas-no-aws-import-products-row").html(c.preLoader());var r=o[0],n=decodeURIComponent(escape(atob(r.value)));"search"==e?i(".acl-pagination-section").show():i(".acl-pagination-section").hide(),i(".wpas-no-pa-add-all-container").show(),i(".acl-product-import-pagination").html(c.pagination(20,a)),i(".wpas-no-aws-import-products-row").html(n),i("#wpas-search-string").val(t)}else{var s=encodeURI(wpas_admin_object.store_url+t),p={type:"search",search_string:t,page:a,search_url:s};window.postMessage(p,"*")}}else{s=encodeURI(wpas_admin_object.store_url+t),p={type:"search",search_string:t,page:a,search_url:s};window.postMessage(p,"*")}}function e(a){i(".wpas-no-aws-import-products-queue-section").show(),i(".wpas-no-aws-import-products-log-section").hide();var t=a.attr("data-asin"),e=a.attr("data-title"),o=a.attr("data-url"),r=a.attr("data-thumb"),n=a.attr("data-price"),s=c.queBox(t,e,o,r,n);i("#wpas-no-pa-queue-box-container").append(s),a.text("Added to Queue"),a.attr("disabled",!0),a.parent().parent().addClass("acl-product-added-box"),p(),i("body").animate({scrollTop:i(document).height()},1e3)}function t(a){var t=a.attr("data-asin");0<i("#wpas-import-"+t).length&&(i("#wpas-import-"+t).removeClass("acl-product-added-box"),i("#wpas-import-"+t).find("button").attr("disabled",!1)),a.parent().parent().remove(),p()}function p(){i("#import-selected-products").text(i(".acl-product-box-remove").length),0==i(".acl-product-box-remove").length&&i(".wpas-no-aws-import-products-queue-section").hide()}function r(t){if("search"==i("input[name='no_pa_import_by']:checked").val())if(sessionStorage.getItem("wpasImport")){if(0<(o=JSON.parse(sessionStorage.getItem("wpasImport"))).filter(function(a){return a.key==t}).length){var a=o.filter(function(a){return a.key!=t}),e={key:t,value:btoa(unescape(encodeURIComponent(i(".wpas-no-aws-import-products-row").html())))};a.push(e),sessionStorage.setItem("wpasImport",JSON.stringify(a))}else{e={key:t,value:btoa(unescape(encodeURIComponent(i(".wpas-no-aws-import-products-row").html())))};o.push(e),sessionStorage.setItem("wpasImport",JSON.stringify(o))}}else{var o=[];e={key:t,value:btoa(unescape(encodeURIComponent(i(".wpas-no-aws-import-products-row").html())))};o.push(e),sessionStorage.setItem("wpasImport",JSON.stringify(o))}}i(".wpas-import-products-container,#wpas-woo-categories-container").hide(),i("#wpas_import_search_keywords").on("keypress",function(a){if(13==a.which||13==a.keyCode){a.preventDefault();var t=i(this).val().trim(),e=i("#wpas_import_search_category").val();""!=t?o(t,e):(i("#wpas-import-validation-msg").show(),setTimeout(function(){i("#wpas-import-validation-msg").hide()},2e3))}}),i("#wpas_import_search_btn").on("click",function(a){a.preventDefault();var t=i("#wpas_import_search_keywords").val().trim(),e=i("#wpas_import_search_category").val();""!=t?o(t,e):(i("#wpas-import-validation-msg").show(),setTimeout(function(){i("#wpas-import-validation-msg").hide()},2e3))}),i(document).on("click","#wpas-import-load-more-btn",function(){var e=i(this).attr("data-keyword"),o=i(this).attr("data-page-num");if(1==o)var a=20;else if(2==o)a=20;var t=i("#wpas_import_search_category").val();i(".wpas-import-pre-loader-container").html(c.preLoader());var r=wpas_admin_object.store_country+"&Keywords="+e+"&SearchIndex="+t+"&multipageStart="+o+"&multipageCount="+a;i.ajax({url:r,dataType:"jsonp",jsonpCallback:"search_callback",success:function(a){var t={action:"wpas_products_import_search",keyword:e,data:a.results,page_num:o};c.ajax(t).done(function(a){i(".wpas-import-pre-loader-container").html(""),i(".wpas-import-products-list").html(a.html),a.product_num<20?(i(".wpas-load-more-wrapper").show(),i("#wpas-import-load-more-btn").attr("data-keyword",a.keyword),i("#wpas-import-load-more-btn").attr("data-page-num",a.page_num)):i(".wpas-load-more-wrapper").hide()})},error:function(a,t,e){console.log(a,t,e)}})}),i(document).on("click",".wpas-item-import-btn",function(a){a.preventDefault();var t=i(this);t.text("Importing...");var e=JSON.parse(atob(i(this).attr("wpas-import-data"))),o=i("#wpas_woo_category").val(),r={action:"wpas_import_product_from_amazon",sku:e.ASIN,title:e.Title,price:e.Price,amazon_url:e.DetailPageURL,image:e.ImageUrl,importing_category:o};jQuery.post(wpas_admin_object.ajax_url,r,function(a){200==a.status?t.text(a.message):t.text(a.message).css({"word-wrap":"break-word",display:"inline"}),t.parent().find(".wpas-import-success-action").html(a.success_action)})}),jQuery(document).on("ready",function(){if(0<i("#auth-token-generator").length||0<i("#wpas_no_pa_import_submit").length){var t;0<i("#auth-token-generator").length?t=i("#auth-token-generator"):0<i("#wpas_no_pa_import_submit").length&&(t=i("#wpas_no_pa_import_submit"));try{i.get("chrome-extension://chlnealbecgihlcianbcpdjjbabhdgnm/images/icons/icon_16.png").done(function(a){console.log("Wp Amazon shop Ext is installed")}).fail(function(a){t.attr("disabled","disabled"),t.parent().append('<a id="wpas-ext-install-notice" style="color:red;" class="button button-secondary" target="_blank" href="https://amadercode.com/product-import-docs/">Follow the <strong>Product Importing Guidelinse</strong></a>'),console.log("Wp Amazon shop Ext is not installed")})}catch(a){console.log("Wp Amazon shop Ext is not installed")}}0<i(".wpas-upgrade-link-text").length&&i(".wpas-upgrade-link-text").parent().attr("target","_blank"),i('select[name="acl_wpas_use_for"],input[name="acl_wpas_product_display_option[]"],input[name="acl_wpas_buy_now_action"],input[name="acl_wpas_enable_no_follow"],select[name="acl_wpas_cart_import_category"]').prop("disabled",!0)}),i(".acl-pagination-section,.wpas-no-pa-add-all-container,.wpas-no-aws-import-products-queue-section,.wpas-no-aws-import-products-log-section").hide(),i(".wpas_no_pa_import_by").on("change",function(a){"search"==i(this).val()?(i("#wpas_no_pa_cat").parent().show(),i("#wpas_no_pa_sort").parent().show(),i("#wpas_no_pa_import_submit").prop("disabled",!1),i("#wpas_no_pa_keyword").val("").attr("placeholder","Type search keyword")):(i("#wpas_no_pa_cat").parent().hide(),i("#wpas_no_pa_sort").parent().hide(),i("#wpas_no_pa_import_submit").prop("disabled",!0),i("#wpas_no_pa_keyword").val("").attr("placeholder","ASIN Numbers to Import Products(Comma Separated)"))}),i(document).on("click","#wpas_no_pa_import_submit",function(a){a.preventDefault();var t=i("input[name=no_pa_import_by]:checked").val(),e=i("#wpas_no_pa_keyword").val();if(""!=e){if("search"==t){var o=i("#wpas_no_pa_cat").val(),r=i("#wpas_no_pa_sort").val();if("all"!=r)var n="s?k="+e.replace(/\s/g,"+")+"&i="+o+"&s="+r+"&page=1";else n="s?k="+e.replace(/\s/g,"+")+"&i="+o+"&page=1";s(n,1,"search")}}else alert("Type keywords")}),i("#wpas_no_pa_keyword").on("keypress",function(a){if(13==a.which||13==a.keyCode){var t=i("#wpas_no_pa_keyword").val(),e=i("input[name=no_pa_import_by]:checked").val();if(""!=t){if("search"==e){var o=i("#wpas_no_pa_cat").val(),r=i("#wpas_no_pa_sort").val();if("all"!=r)var n="s?k="+t.replace(/\s/g,"+")+"&i="+o+"&s="+r+"&page=1";else n="s?k="+t.replace(/\s/g,"+")+"&i="+o+"&page=1";s(n,1,"search")}}else alert("Type keywords")}}),i(document).on("click",".acl-product-import-pagination li",function(a){i("html, body").animate({scrollTop:0},2e3);var t=i(this).attr("data-val"),e=i("#wpas_no_pa_cat").val(),o=i("#wpas_no_pa_sort").val(),r=i("#wpas_no_pa_keyword").val();if("all"!=o)var n="s?k="+r.replace(" ","+")+"&i="+e+"&s="+o+"&page="+t;else n="s?k="+r.replace(" ","+")+"&i="+e+"&page="+t;s(n,t,"search")}),i(document).on("click",".acl-product-box-action button",function(a){a.preventDefault();var t=i(this);if(!(i(".acl-product-box-remove").length<=20))return alert("Mximum 20 product can import at a time, Upgrade to Pro for UNLIMITED"),!1;e(t),r(i("#wpas-search-string").val())}),i(document).on("change","#wpas_add_all_to_queue",function(a){i(".acl-product-box-action").length>i(".acl-product-added-box").length?i(this).is(":checked")&&confirm("Are you sure to add all products to import list.?")&&(i(".acl-product-box-action button").each(function(a){var t=i(this);if(!(i(".acl-product-box-remove").length<=20))return alert("Mximum 20 product can import at a time, Upgrade to Pro for UNLIMITED"),!1;e(t),setTimeout(function(){r(i("#wpas-search-string").val())},1500)}),setTimeout(function(a){i("#wpas_add_all_to_queue").prop("checked",!1)},1e3)):(alert("All products are added to import queue."),i(this).prop("checked",!1))}),i(document).on("click",".acl-product-box-remove",function(a){a.preventDefault(),confirm("Are you sure to remove this product from import list.?")&&(t(i(this)),r(i("#wpas-search-string").val()))}),i(document).on("change","#wpas_remove_all_from_queue",function(a){i(this).is(":checked")&&(0<i(".acl-product-box-remove").length?confirm("Are you sure to remove all products from queue list.?")&&(i(".acl-product-box-remove").each(function(a){t(i(this)),setTimeout(function(){r(i("#wpas-search-string").val())},1500)}),setTimeout(function(a){i("#wpas_remove_all_from_queue").prop("checked",!1)},1e3)):(alert("No products, add product to queue."),i(this).prop("checked",!1)))}),i(document).on("click","#auth-token-generator",function(a){a.preventDefault();for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=e.length,r=0;r<39;r++)t+=e.charAt(Math.floor(Math.random()*o));i("#auth_token").val(t)}),i(document).on("click","#wpas-ext-auth-form-submit-btn",function(a){var t="",e=i("#auth_token").val();if(""==e&&(t+="Authentication Token is required"),""==t){var o={action:"wpas_chrome_ext_auth",auth_token:e};c.ajax(o).done(function(a){console.log(a),200==a.status?(i("#wpbody-content").prepend(a.message),setTimeout(function(){window.location.href=a.redirect_url},1e3)):alert("Try again!")})}else alert(t)})});1 jQuery(function(a){function b(b,d){a(".wpas-import-products-container,#wpas-woo-categories-container").show(),a(".wpas-import-pre-loader-container").html(c.preLoader());var e=wpas_admin_object.store_country+"&Keywords="+b+"&SearchIndex="+d+"&multipageStart="+wpas_admin_object.page_number+"&multipageCount="+wpas_admin_object.prouct_per_page;a.ajax({url:e,dataType:"jsonp",jsonpCallback:"search_callback",success:function(d){var e={action:"wpas_products_import_search",keyword:b,data:d.results},f=c.ajax(e);f.done(function(b){a(".wpas-import-pre-loader-container").html(""),a(".wpas-import-products-list").html(b.html),b.product_num>=wpas_admin_object.prouct_per_page?(a(".wpas-load-more-wrapper").show(),a("#wpas-import-load-more-btn").attr("data-keyword",b.keyword),a("#wpas-import-load-more-btn").attr("data-page-num",b.page_num)):a(".wpas-load-more-wrapper").hide()})},error:function(a,b,c){console.log(a,b,c)}})}wpas_admin_object.auth_token&&localStorage.setItem("wpas_import_ext_objects",JSON.stringify(wpas_admin_object));var c={ajax:function(a){return jQuery.post(wpas_admin_object.ajax_url,a)},preLoader:function(){return"<div class=\"wpas-ajax-pre-loader-container\" ><img class=\"wpas-ajax-pre-loader\" src=\""+wpas_admin_object.image_path+"pre-loader.gif\" alt=\"Loadding...\" /></div>"},loadMorePreLoader:function(){return"<img class=\"wpas-ajax-loadmore-pre-loader\" src=\""+wpas_admin_object.image_path+"load-more.gif\" alt=\"Loadding...\" />"}};a(".wpas-import-products-container,#wpas-woo-categories-container").hide(),a("#wpas_import_search_keywords").on("keypress",function(c){if(13==c.which||13==c.keyCode){c.preventDefault();var d=a(this).val().trim(),e=a("#wpas_import_search_category").val();""==d?(a("#wpas-import-validation-msg").show(),setTimeout(function(){a("#wpas-import-validation-msg").hide()},2e3)):b(d,e)}}),a("#wpas_import_search_btn").on("click",function(c){c.preventDefault();var d=a("#wpas_import_search_keywords").val().trim(),e=a("#wpas_import_search_category").val();""==d?(a("#wpas-import-validation-msg").show(),setTimeout(function(){a("#wpas-import-validation-msg").hide()},2e3)):b(d,e)}),a(document).on("click","#wpas-import-load-more-btn",function(){var b=a(this).attr("data-keyword"),d=a(this).attr("data-page-num");if(1==d)var e=20;else if(2==d)var e=20;var f=a("#wpas_import_search_category").val();a(".wpas-import-pre-loader-container").html(c.preLoader());var g=wpas_admin_object.store_country+"&Keywords="+b+"&SearchIndex="+f+"&multipageStart="+d+"&multipageCount="+e;a.ajax({url:g,dataType:"jsonp",jsonpCallback:"search_callback",success:function(e){var f={action:"wpas_products_import_search",keyword:b,data:e.results,page_num:d},g=c.ajax(f);g.done(function(b){a(".wpas-import-pre-loader-container").html(""),a(".wpas-import-products-list").html(b.html),20>b.product_num?(a(".wpas-load-more-wrapper").show(),a("#wpas-import-load-more-btn").attr("data-keyword",b.keyword),a("#wpas-import-load-more-btn").attr("data-page-num",b.page_num)):a(".wpas-load-more-wrapper").hide()})},error:function(a,b,c){console.log(a,b,c)}})}),a(document).on("click",".wpas-item-import-btn",function(b){b.preventDefault();var c=a(this);c.text("Importing...");var d=JSON.parse(atob(a(this).attr("wpas-import-data"))),e=a("#wpas_woo_category").val(),f=d.ASIN,g=d.Title,h=d.Price,i=d.DetailPageURL,j=d.ImageUrl;jQuery.post(wpas_admin_object.ajax_url,{action:"wpas_import_product_from_amazon",sku:f,title:g,price:h,amazon_url:i,image:j,importing_category:e},function(a){200==a.status?(c.text(a.message),c.parent().find(".wpas-import-success-action").html(a.success_action)):(c.text(a.message).css({"word-wrap":"break-word",display:"inline"}),c.parent().find(".wpas-import-success-action").html(a.success_action))})}),jQuery(document).on("ready",function(){if(0<a("#auth-token-generator").length||0<a("#wpas_no_pa_import_submit").length){var b;0<a("#auth-token-generator").length?b=a("#auth-token-generator"):0<a("#wpas_no_pa_import_submit").length&&(b=a("#wpas_no_pa_import_submit"));try{a.get("chrome-extension://chlnealbecgihlcianbcpdjjbabhdgnm/images/icons/icon_16.png").done(function(){console.log("Wp Amazon shop Ext is installed")}).fail(function(){b.attr("disabled","disabled"),b.parent().append("<a id=\"wpas-ext-install-notice\" style=\"color:red;\" class=\"button button-secondary\" target=\"_blank\" href=\"https://chrome.google.com/webstore/detail/wp-amazon-shop-extension/chlnealbecgihlcianbcpdjjbabhdgnm\">Install <strong>WP Amazon Shop Ext</strong> from Chrome Store</a>"),console.log("Wp Amazon shop Ext is not installed")})}catch(a){console.log("Wp Amazon shop Ext is not installed")}}0<a(".wpas-upgrade-link-text").length&&a(".wpas-upgrade-link-text").parent().attr("target","_blank"),a("select[name=\"acl_wpas_use_for\"],input[name=\"acl_wpas_product_display_option[]\"],input[name=\"acl_wpas_buy_now_action\"],input[name=\"acl_wpas_enable_no_follow\"],select[name=\"acl_wpas_cart_import_category\"]").prop("disabled",!0)})}); -
wp-amazon-shop/trunk/assets/js/frontend.js
r2221964 r2404692 1 jQuery(function( r){var n={ajax:function(a){return jQuery.post(wpas_ajax_object.ajax_url,a)},preLoader:function(){return'<div class="wpas-ajax-pre-loader-container" ><img class="wpas-ajax-pre-loader" src="'+wpas_ajax_object.image_path+'pre-loader.gif" alt="Loadding..." /></div>'},loadMorePreLoader:function(){return'<img class="wpas-ajax-loadmore-pre-loader" src="'+wpas_ajax_object.image_path+'load-more.gif" alt="Loadding..." />'},primeDom:function(a){return'<div class="amazon-product-thumb">'},action:function(a){var t=a.DetailPageURL;return"on"==wpas_ajax_object.is_cart&&(t=wpas_ajax_object.cart_prefix+"ASIN.1="+a.ASIN),t},rating:function(a){if(""==a.TotalReviews)return"";if(""==a.Rating)return"";console.log("Rating : ",a.Rating);var t="";return t=-1!=a.Rating.indexOf(".0")?a.Rating.replace(".0",""):a.Rating.replace(".","-"),'<div class="amazon-product-rating" data-product-asin="'+a.ASIN+'">\n <i class="a-icon a-icon-star a-star-'+t+'"><span class="a-icon-alt">'+a.Rating+' out of 5 stars</span></i>\n <p>( <a href="'+a.DetailPageURL+'?tag=0205-21#dp-summary-see-all-reviews" target="_blank">'+a.TotalReviews+"</a>)</p>\n </div>\n"},products:function(a){var o="";return 0<a.length?r.each(a,function(a,t){o+='<div class="wpas-product-item">\n <div class="amazon-product-box">\n <div class="amazon-product-thumb">\n <img src="'+t.ImageUrl+'" alt="Product">\n </div>\n <div class="amazon-product-info">\n <h3 title="'+t.Title.replace("\\","")+'">'+t.Title.replace("\\","")+" </h3>\n <p>Price : "+t.Price+' </p>\n </div>\n <div class="amazon-product-action">\n <button class="wpas-add-to-cart" type="button" wpas-sku="'+t.ASIN+'" wpas-url="'+n.action(t)+'"> '+wpas_ajax_object.action_label+" </button>\n </div>\n"+n.rating(t)+" </div>\n</div>"}):o+="<p>No Products Found</p>",o},comparision:function(a){var o="";return 0<a.length?(o+='<div class="wpas-comparison-shortcode-inner">\n <div class="wpas-comparison-item wpas-comparison-unite">\n <div class="wpas-comparison-item-inner">\n <div class="wpas-comparison-base">\n <p>Product Image</p>\n </div>\n <div class="wpas-comparison-base"><h4>Product Name</h4></div>\n <div class="wpas-comparison-base"><p>Unit Price</p></div>\n <div class="wpas-comparison-base"><p>Availability</p></div>\n <div class="wpas-comparison-base wpas-comparison-product-action">\n <p>Buy Now</p></div>\n </div>\n \x3c!--wpas-comparison-item-inner--\x3e\n </div>\n',r.each(a,function(a,t){o+='<div class="wpas-comparison-item">\n <div class="wpas-comparison-item-inner">\n <div class="wpas-comparison-base"><img src="'+t.ImageUrl+'" alt="'+t.Title.replace("\\","")+'" >\n </div>\n <div class="wpas-comparison-base"><h4 title="'+t.Title.replace("\\","")+'"><a href="'+n.action(t)+'" target="_blank">'+t.Title.replace("\\","")+'</a></h4>\n </div>\n <div class="wpas-comparison-base">\n <p>'+t.Price+'</p>\n </div>\n <div class="wpas-comparison-base"><p>In Stock</p></div>\n <div class="wpas-comparison-base wpas-comparison-product-action">\n <button class="wpas-add-to-cart" type="button" wpas-sku="'+t.ImageUrl+'" wpas-url="'+n.action(t)+'"> '+wpas_ajax_object.action_label+" </button>\n </div>\n </div>\n \x3c!--wpas-comparison-item-inner--\x3e\n </div>\n"}),o+="</div>"):o+="<p>No Products Found</p>",o}};r(document).ready(function(a){if(0<r("form[role='search']").length&&"on"==wpas_ajax_object.enable_global_search&&0==r(".wp-amazon-shop-shortcode-wrapper").length&&0==r(".wp-amazon-shop-auto-link-shortcode-wrapper").length){r(".content-area").first().prepend("<div class='container'><div class='row wpas-products-wrapper'></div>"+'<div class="wpas-load-more-wrapper" style="display: none"><button id="wpas-load-more-btn" class="wpas-load-more-btn" data-keyword="" data-page-num="">Load More</button></div></div>'),r("input[type='search']").on("keypress",function(a){13!=a.which&&13!=a.keyCode||(a.preventDefault(),o(r(this).val()))}),r("input[type='submit'],button[type='submit']").on("click",function(a){a.preventDefault(),0<r(this).parents("form").length&&o(r(this).val())})}function o(o){r(".wpas-products-wrapper").html(n.preLoader());var a=wpas_ajax_object.store_country+"&Keywords="+o+"&SearchIndex=All&multipageStart="+wpas_ajax_object.page_number+"&multipageCount="+wpas_ajax_object.prouct_per_page;r.ajax({url:a,dataType:"jsonp",jsonpCallback:"search_callback",success:function(a){console.log(a);var t=parseInt(a.InstanceId+1);r(".wpas-products-wrapper").html(n.products(a.results)),a.results.length>=wpas_ajax_object.prouct_per_page?(r(".wpas-load-more-wrapper").show(),r("#wpas-load-more-btn").attr("data-keyword",o),r("#wpas-load-more-btn").attr("data-page-num",t)):r(".wpas-load-more-wrapper").hide()},error:function(a,t,o){console.log(a,t,o)}})}0<r(".wp-amazon-shop-products").length&&r(".wp-amazon-shop-products").each(function(a){var t;t=this,setTimeout(function(){"asin"==r(t).attr("shortcode-type")?function(a,o){r(".wp-amazon-shop-products").html(n.preLoader());var t={action:"wpas_shortcode_by_asin",asin:a};n.ajax(t).done(function(a){var t=JSON.parse(a);0<t.length&&r(o).parent().html(n.products(t))})}(r(t).attr("asin-keys").trim(),t):"keyword"==r(t).attr("shortcode-type")?function(o,e){r(".wp-amazon-shop-products").html(n.preLoader());var a=wpas_ajax_object.store_country+"&Keywords="+o+"&SearchIndex=All&multipageStart="+wpas_ajax_object.page_number+"&multipageCount="+wpas_ajax_object.prouct_per_page;r.ajax({url:encodeURI(a),dataType:"jsonp",jsonpCallback:"search_callback",success:function(a){var t={action:"wpas_search_by_keyword",keyword:o,data:a.results};n.ajax(t).done(function(a){var t=r(e).parent().parent().find(".wpas-load-more-wrapper");r(e).parent().html(a.html),a.product_num>=wpas_ajax_object.prouct_per_page?(t.show(),r("#wpas-load-more-btn").attr("data-keyword",a.keyword),r("#wpas-load-more-btn").attr("data-page-num",a.page_num)):r(".wpas-load-more-wrapper").hide()})},error:function(a,t,o){console.log(a,t,o)}})}(r(t).attr("asin-keys").trim(),t):"comparision"==r(t).attr("shortcode-type")&&function(a,o){r(".wp-amazon-shop-products").html(n.preLoader());var t={action:"wpas_comparision_by_asin",asin:a};n.ajax(t).done(function(a){var t=JSON.parse(a);0<t.length&&r(o).parent().html(n.comparision(t))})}(r(t).attr("asin-keys").trim(),t)},1e3*a)}),r("#wpas-search-input").on("keypress",function(a){if(13==a.which||13==a.keyCode){a.preventDefault();var t=r(this).val().trim();""!=t&&o(t)}}),r("#wpas-search-btn").on("click",function(a){a.preventDefault();var t=r("#wpas-search-input").val().trim();""!=t&&o(t)}),r(document).on("click","#wpas-load-more-btn",function(){var o=r(this).attr("data-keyword"),a=r(this).attr("data-page-num");if(1==a)var t=20;else if(2==a)t=20;r(".wpas-products-wrapper").last().append(n.preLoader());var e=wpas_ajax_object.store_country+"&Keywords="+o+"&SearchIndex=All&multipageStart="+a+"&multipageCount="+t;r.ajax({url:e,dataType:"jsonp",jsonpCallback:"search_callback",success:function(a){r(".wpas-ajax-pre-loader-container").remove();var t=parseInt(t+1);r(".wpas-products-wrapper").html(n.products(a.results)),a.results.length<20?(r(".wpas-load-more-wrapper").show(),r("#wpas-load-more-btn").attr("data-keyword",o),r("#wpas-load-more-btn").attr("data-page-num",t)):r(".wpas-load-more-wrapper").hide()},error:function(a,t,o){console.log(a,t,o)}})}),r(document).on("click",".wpas-add-to-cart",function(a){a.preventDefault(),window.open(r(this).attr("wpas-url"),"_blank")})})});1 jQuery(function(a){var b={ajax:function(a){return jQuery.post(wpas_ajax_object.ajax_url,a)},preLoader:function(){return"<div class=\"wpas-ajax-pre-loader-container\" ><img class=\"wpas-ajax-pre-loader\" src=\""+wpas_ajax_object.image_path+"pre-loader.gif\" alt=\"Loadding...\" /></div>"},loadMorePreLoader:function(){return"<img class=\"wpas-ajax-loadmore-pre-loader\" src=\""+wpas_ajax_object.image_path+"load-more.gif\" alt=\"Loadding...\" />"},primeDom:function(){return"<div class=\"amazon-product-thumb\">"},action:function(a){var b=a.DetailPageURL;return"on"==wpas_ajax_object.is_cart&&(b=wpas_ajax_object.cart_prefix+"ASIN.1="+a.ASIN),b},rating:function(a){if(""!=a.TotalReviews){if(""!=a.Rating){console.log("Rating : ",a.Rating);var b="";return b=-1==a.Rating.indexOf(".0")?a.Rating.replace(".","-"):a.Rating.replace(".0",""),"<div class=\"amazon-product-rating\" data-product-asin=\""+a.ASIN+"\">\n <i class=\"a-icon a-icon-star a-star-"+b+"\"><span class=\"a-icon-alt\">"+a.Rating+" out of 5 stars</span></i>\n <p>( <a href=\""+a.DetailPageURL+"?tag=0205-21#dp-summary-see-all-reviews\" target=\"_blank\">"+a.TotalReviews+"</a>)</p>\n </div>\n"}return""}return""},products:function(c){var d="";return 0<c.length?a.each(c,function(a,c){d+="<div class=\"wpas-product-item\">\n <div class=\"amazon-product-box\">\n <div class=\"amazon-product-thumb\">\n <img src=\""+c.ImageUrl+"\" alt=\"Product\">\n </div>\n <div class=\"amazon-product-info\">\n <h3 title=\""+c.Title.replace("\\","")+"\">"+c.Title.replace("\\","")+" </h3>\n <p>Price : "+c.Price+" </p>\n </div>\n <div class=\"amazon-product-action\">\n <button class=\"wpas-add-to-cart\" type=\"button\" wpas-sku=\""+c.ASIN+"\" wpas-url=\""+b.action(c)+"\"> "+wpas_ajax_object.action_label+" </button>\n </div>\n"+b.rating(c)+" </div>\n</div>"}):d+="<p>No Products Found</p>",d},comparision:function(c){var d="";return 0<c.length?(d+="<div class=\"wpas-comparison-shortcode-inner\">\n <div class=\"wpas-comparison-item wpas-comparison-unite\">\n <div class=\"wpas-comparison-item-inner\">\n <div class=\"wpas-comparison-base\">\n <p>Product Image</p>\n </div>\n <div class=\"wpas-comparison-base\"><h4>Product Name</h4></div>\n <div class=\"wpas-comparison-base\"><p>Unit Price</p></div>\n <div class=\"wpas-comparison-base\"><p>Availability</p></div>\n <div class=\"wpas-comparison-base wpas-comparison-product-action\">\n <p>Buy Now</p></div>\n </div>\n <!--wpas-comparison-item-inner-->\n </div>\n",a.each(c,function(a,c){d+="<div class=\"wpas-comparison-item\">\n <div class=\"wpas-comparison-item-inner\">\n <div class=\"wpas-comparison-base\"><img src=\""+c.ImageUrl+"\" alt=\""+c.Title.replace("\\","")+"\" >\n </div>\n <div class=\"wpas-comparison-base\"><h4 title=\""+c.Title.replace("\\","")+"\"><a href=\""+b.action(c)+"\" target=\"_blank\">"+c.Title.replace("\\","")+"</a></h4>\n </div>\n <div class=\"wpas-comparison-base\">\n <p>"+c.Price+"</p>\n </div>\n <div class=\"wpas-comparison-base\"><p>In Stock</p></div>\n <div class=\"wpas-comparison-base wpas-comparison-product-action\">\n <button class=\"wpas-add-to-cart\" type=\"button\" wpas-sku=\""+c.ImageUrl+"\" wpas-url=\""+b.action(c)+"\"> "+wpas_ajax_object.action_label+" </button>\n </div>\n </div>\n <!--wpas-comparison-item-inner-->\n </div>\n"}),d+="</div>"):d+="<p>No Products Found</p>",d}};a(document).ready(function(){function c(c,d){a(".wp-amazon-shop-products").html(b.preLoader());var e=b.ajax({action:"wpas_shortcode_by_asin",asin:c});e.done(function(c){var e=JSON.parse(c);0<e.length&&a(d).parent().html(b.products(e))})}function d(c,d){a(".wp-amazon-shop-products").html(b.preLoader());var e=b.ajax({action:"wpas_comparision_by_asin",asin:c});e.done(function(c){var e=JSON.parse(c);0<e.length&&a(d).parent().html(b.comparision(e))})}function e(c,d){a(".wp-amazon-shop-products").html(b.preLoader());var e=wpas_ajax_object.store_country+"&Keywords="+c+"&SearchIndex=All&multipageStart="+wpas_ajax_object.page_number+"&multipageCount="+wpas_ajax_object.prouct_per_page;a.ajax({url:encodeURI(e),dataType:"jsonp",jsonpCallback:"search_callback",success:function(e){var f={action:"wpas_search_by_keyword",keyword:c,data:e.results},g=b.ajax(f);g.done(function(b){var c=a(d).parent().parent().find(".wpas-load-more-wrapper");a(d).parent().html(b.html),b.product_num>=wpas_ajax_object.prouct_per_page?(c.show(),a("#wpas-load-more-btn").attr("data-keyword",b.keyword),a("#wpas-load-more-btn").attr("data-page-num",b.page_num)):a(".wpas-load-more-wrapper").hide()})},error:function(a,b,c){console.log(a,b,c)}})}function f(c){a(".wpas-products-wrapper").html(b.preLoader());var d=wpas_ajax_object.store_country+"&Keywords="+c+"&SearchIndex=All&multipageStart="+wpas_ajax_object.page_number+"&multipageCount="+wpas_ajax_object.prouct_per_page;a.ajax({url:d,dataType:"jsonp",jsonpCallback:"search_callback",success:function(d){console.log(d);var e=parseInt(d.InstanceId+1);a(".wpas-products-wrapper").html(b.products(d.results)),d.results.length>=wpas_ajax_object.prouct_per_page?(a(".wpas-load-more-wrapper").show(),a("#wpas-load-more-btn").attr("data-keyword",c),a("#wpas-load-more-btn").attr("data-page-num",e)):a(".wpas-load-more-wrapper").hide()},error:function(a,b,c){console.log(a,b,c)}})}if(0<a("form[role='search']").length&&"on"==wpas_ajax_object.enable_global_search&&0==a(".wp-amazon-shop-shortcode-wrapper").length&&0==a(".wp-amazon-shop-auto-link-shortcode-wrapper").length){var g=a(".content-area");g.first().prepend("<div class='container'><div class='row wpas-products-wrapper'></div><div class=\"wpas-load-more-wrapper\" style=\"display: none\"><button id=\"wpas-load-more-btn\" class=\"wpas-load-more-btn\" data-keyword=\"\" data-page-num=\"\">Load More</button></div></div>"),a("input[type='search']").on("keypress",function(b){if(13==b.which||13==b.keyCode){b.preventDefault();var c=a(this).val();f(c)}}),a("input[type='submit'],button[type='submit']").on("click",function(b){if(b.preventDefault(),0<a(this).parents("form").length){var c=a(this).val();f(c)}})}0<a(".wp-amazon-shop-products").length&&a(".wp-amazon-shop-products").each(function(b){(function(b,f){setTimeout(function(){"asin"==a(b).attr("shortcode-type")?c(a(b).attr("asin-keys").trim(),b):"keyword"==a(b).attr("shortcode-type")?e(a(b).attr("asin-keys").trim(),b):"comparision"==a(b).attr("shortcode-type")&&d(a(b).attr("asin-keys").trim(),b)},1e3*f)})(this,b)}),a("#wpas-search-input").on("keypress",function(b){if(13==b.which||13==b.keyCode){b.preventDefault();var c=a(this).val().trim();""!=c&&f(c)}}),a("#wpas-search-btn").on("click",function(b){b.preventDefault();var c=a("#wpas-search-input").val().trim();""!=c&&f(c)}),a(document).on("click","#wpas-load-more-btn",function(){var c=a(this).attr("data-keyword"),d=a(this).attr("data-page-num");if(1==d)var e=20;else if(2==d)var e=20;a(".wpas-products-wrapper").last().append(b.preLoader());var f=wpas_ajax_object.store_country+"&Keywords="+c+"&SearchIndex=All&multipageStart="+d+"&multipageCount="+e;a.ajax({url:f,dataType:"jsonp",jsonpCallback:"search_callback",success:function(d){a(".wpas-ajax-pre-loader-container").remove();var e=parseInt(e+1);a(".wpas-products-wrapper").html(b.products(d.results)),20>d.results.length?(a(".wpas-load-more-wrapper").show(),a("#wpas-load-more-btn").attr("data-keyword",c),a("#wpas-load-more-btn").attr("data-page-num",e)):a(".wpas-load-more-wrapper").hide()},error:function(a,b,c){console.log(a,b,c)}})}),a(document).on("click",".wpas-add-to-cart",function(b){b.preventDefault(),window.open(a(this).attr("wpas-url"),"_blank")})})}); -
wp-amazon-shop/trunk/includes/import/wp-amazon-shop-import.php
r2221964 r2404692 12 12 add_action('wp_ajax_wpas_import_product_from_amazon', array($this, 'wpas_import_product_from_amazon')); 13 13 // Check if WooCommerce is active, and is required WooCommerce version. 14 if( isset($_GET['page']) && $_GET['page']=='wp-amazon-shop-products-import' && $_GET['page']=='wp-amazon-shop-basic-import'){14 if( isset($_GET['page']) && sanitize_text_field($_GET['page'])=='wp-amazon-shop-basic-import'){ 15 15 if (!class_exists('WooCommerce') || version_compare(get_option('woocommerce_db_version'), 2.2, '<')) { 16 16 add_action('admin_notices', array($this, 'woocommerce_required_notice')); … … 18 18 } 19 19 } 20 //ext21 add_action('wp_ajax_wpas_no_pa_search_ext', array($this, 'no_pa_search_ext'));22 add_action('wp_ajax_wpas_no_pa_product_insert_ext', array($this, 'no_pa_product_insert_ext'));23 20 } 24 21 function hook_import_submenu(){ … … 30 27 'wp-amazon-shop-basic-import', 31 28 array($this, 'products_basic_import') 32 );33 add_submenu_page(34 'wp-amazon-shop',35 'WP Amazon Shop Details Products Import (Using Chrome Extension)',36 'Extended Import',37 'import',38 'wp-amazon-shop-products-import',39 array($this, 'products_import')40 );41 add_submenu_page(42 'wp-amazon-shop',43 'WP Amazon Shop Products Import Chrome Extension Authorization ',44 'Chrome Extension',45 'import',46 'wp-amazon-shop-products-import-ext',47 array($this, 'chrome_extension')48 29 ); 49 30 } … … 59 40 '<strong>', 60 41 '</strong><br>', 61 '<a href=" https://wordpress.org/plugins/woocommerce/" target="_blank" >',42 '<a href="'.esc_url_raw('https://wordpress.org/plugins/woocommerce/').'" target="_blank" >', 62 43 '</a>' 63 44 ); … … 184 165 <?php 185 166 } 186 public function products_import(){187 require_once ('wp-amazon-extended-import.php');188 }189 public function chrome_extension(){190 require_once( 'wpas-chrome-addon.php');191 }192 167 193 168 /*** … … 762 737 $page_num = intval(get_option('acl_wpas_product_page_number')); 763 738 } 764 $processed_products = $this->process_response( $_POST['data']);739 $processed_products = $this->process_response(wpas_clean($_POST['data'])); 765 740 if(count($processed_products)>0){ 766 741 $html = $this->import_products_display($processed_products); … … 769 744 } 770 745 771 echo wp_send_json(array('keyword' => $_POST['keyword'], 'html' => $html, 'page_num' => intval($page_num + 1), 'product_num' => count($processed_products)));746 echo wp_send_json(array('keyword' => sanitize_text_field($_POST['keyword']), 'html' => $html, 'page_num' => intval($page_num + 1), 'product_num' => count($processed_products))); 772 747 wp_die(); 773 748 } … … 810 785 <td class="wpas-import-title" > 811 786 <p class="field_text"><?php echo str_replace("\'", "", $product['Title']); ?> </p> 812 <p class="field_text"><a href="<?php echo $product['DetailPageURL']; ?>?tag=<?php echo $affiliate_tag; ?>" target="_blank" class="link_to_source product_url"><?php _e('Amazon Product page', 'wp-amazon-shop') ?></a></p>787 <p class="field_text"><a href="<?php echo esc_url_raw($product['DetailPageURL']); ?>?tag=<?php echo $affiliate_tag; ?>" target="_blank" class="link_to_source product_url"><?php _e('Amazon Product page', 'wp-amazon-shop') ?></a></p> 813 788 <td class="wpas-import-asin" > <strong><?php echo $product['ASIN'];?></strong></td> 814 789 <td class="wpas-import-price"> … … 827 802 <div class="amazon-product-rating" data-product-asin="<?php echo $product['ASIN']; ?>"> 828 803 <i class="a-icon a-icon-star <?php echo $rating_class?>"><span class="a-icon-alt"><?php echo $product['Rating']; ?> <?php _e('out of 5 stars', 'wp-amazon-shop') ?></span></i> 829 <p>( <a href="<?php echo $product['DetailPageURL']; ?>?tag=<?php echo $affiliate_tag; ?>#dp-summary-see-all-reviews" target="_blank"><?php echo $product['TotalReviews'] ;?></a>)</p>804 <p>( <a href="<?php echo esc_url_raw($product['DetailPageURL']); ?>?tag=<?php echo $affiliate_tag; ?>#dp-summary-see-all-reviews" target="_blank"><?php echo $product['TotalReviews'] ;?></a>)</p> 830 805 </div> 831 806 <?php } ?> … … 848 823 global $wp_error; 849 824 $response = array(); 850 $sku = $_POST['sku'];851 $title = str_replace("\'", "", $_POST['title']);852 $price = $_POST['price'];853 $product_url = $_POST['amazon_url'];854 $image_url = $_POST['image'];825 $sku = sanitize_text_field( $_POST['sku']); 826 $title = str_replace("\'", "", sanitize_text_field($_POST['title'])); 827 $price = wpas_clean($_POST['price']); 828 $product_url = esc_url_raw( $_POST['amazon_url']); 829 $image_url = esc_url_raw($_POST['image']); 855 830 $product_id = wc_get_product_id_by_sku($sku); 856 831 if ($product_id) { … … 863 838 $post = array( 864 839 'post_author' => 1, 865 'post_content' => $title . '<br><img src="' . $image_url . '" alt="' . $title . '"><br> <br> <a href="' . $product_url. '" target="_blank">Product Link</a>',840 'post_content' => $title . '<br><img src="' . $image_url . '" alt="' . $title . '"><br> <br> <a href="' . esc_url_raw($product_url) . '" target="_blank">Product Link</a>', 866 841 'post_status' => "publish", 867 842 'post_title' => $title, … … 873 848 $post_id = wp_insert_post($post, $wp_error); 874 849 //Update term & meta. 875 wp_set_object_terms($post_id, $_POST['importing_category'], 'product_cat');850 wp_set_object_terms($post_id, wpas_clean($_POST['importing_category']), 'product_cat'); 876 851 // wp_set_object_terms($post_id, get_option('acl_wpas_category_name'), 'product_cat'); 877 852 wp_set_object_terms($post_id, 'simple', 'product_type'); … … 962 937 } else { 963 938 $response['status'] = 300; 964 $response['success_action'] = '<a style="color: orangered" href=" https://www.wpamazonshop.com/" target="_blank">'.__('Upgrade to Pro for more', 'wp-amazon-shop').'</a> ';939 $response['success_action'] = '<a style="color: orangered" href="'.esc_url_raw('https://www.wpamazonshop.com/').'" target="_blank">'.__('Upgrade to Pro for more', 'wp-amazon-shop').'</a> '; 965 940 $response['message'] = __('20 Products imported per day!', 'wp-amazon-shop'); 966 941 … … 1086 1061 $response['status'] = 300; 1087 1062 $response['sku'] = $product['ASIN']; 1088 $response['message'] = __('20 Products can be imported per day, <br>Need to import UNLIMITED,VARIATIONS,GALLERY etc <a href=" https://www.wpamazonshop.com/" target="_blank">Upgrade to Pro</a> ', 'wp-amazon-shop');1063 $response['message'] = __('20 Products can be imported per day, <br>Need to import UNLIMITED,VARIATIONS,GALLERY etc <a href="'.esc_url_raw('https://www.wpamazonshop.com/').'" target="_blank">Upgrade to Pro</a> ', 'wp-amazon-shop'); 1089 1064 } 1090 1065 } 1091 1066 return $response; 1092 }1093 public function no_pa_search_ext(){1094 $search_result=$_POST['search_result'];1095 $results=ACL_WPAS_iKits::no_pa_search($search_result,'ext');1096 $html="";1097 if(is_array($results['products']) && !empty($results['products'])){1098 foreach ($results['products'] as $product){1099 $html.=ACL_WPAS_iKits::search_item_display($product);1100 }1101 }else{1102 $html=__('<strong style="color:red;text-align:center">No Products Found</strong>','wp-amazon-shop');1103 $results['start']=0;1104 $results['end']=0;1105 }1106 echo wp_send_json(array('html'=>$html,'start'=>$results['start'],'end'=>$results['end']));1107 1108 }1109 public function no_pa_product_insert_ext(){1110 $product=array();1111 $product['ASIN']= $_POST['asin'];1112 //if(ACL_WPAS_Help::get_http_status($product_url)!='404'){1113 $html = new simple_html_dom();1114 $html->load(urldecode(base64_decode($_POST['details'])));1115 if(ACL_WPAS_iKits::get_product_title($html)!=""){1116 $product['Title']= ACL_WPAS_iKits::get_product_title($html);1117 if(isset($_POST['price']) && $_POST['price']!=""){1118 $product['price']=$_POST['price'];1119 }else{1120 $product['price']=$this->price_by_asin($_POST['asin']);1121 }1122 1123 $product['thumb']= $_POST['thumb'];1124 //products gallery1125 $product_gallery=ACL_WPAS_iKits::get_product_image_gallery($html);1126 $product['gallery']= base64_encode(serialize(ACL_WPAS_iKits::build_image_gallery($product_gallery)));1127 $product['Description']=base64_decode(ACL_WPAS_iKits::get_product_description($html));1128 if(isset($_POST['category']) && $_POST['category']!=""){1129 $product['category']= $_POST['category'];1130 }else{1131 $product['category']= ACL_WPAS_iKits::get_product_categories($html);1132 }1133 $product['has_variation']= false;1134 $product['variations']=array();1135 $response=$this->import_operation($product);1136 }else{1137 $response=array('status'=>300,'sku'=>$product['ASIN'],'message' => __('Is not valid set of data', 'wp-amazon-shop'));1138 }1139 echo wp_send_json($response);1140 wp_die();1141 1067 } 1142 1068 private function price_by_asin($asin){ -
wp-amazon-shop/trunk/includes/wp-amazon-shop-feedback.php
r2221964 r2404692 218 218 } 219 219 220 #wpas-deactivate-feedback-dialog-form-body {221 222 }223 224 220 #wpas-deactivate-feedback-dialog-form-caption { 225 221 padding: 8px 0; … … 278 274 279 275 @media screen and(max-height: 900px) { 280 #wpas-deactivate-feedback-dialog-wrapper > div {281 /*transform: translateY(0%);*/282 }283 276 } 284 277 </style> … … 298 291 $reason_key = ''; 299 292 300 if (!empty( $_POST['reason_key'])) {293 if (!empty(sanitize_text_field($_POST['reason_key']))) { 301 294 $reason_key = sanitize_text_field($_POST['reason_key']); 302 295 } 303 296 304 if (!empty( $_POST["reason_val"])) {297 if (!empty(sanitize_text_field($_POST["reason_val"]))) { 305 298 $reason_text = sanitize_text_field($_POST["reason_val"]); 306 299 } -
wp-amazon-shop/trunk/includes/wp-amazon-shop-functions.php
r2202856 r2404692 102 102 } 103 103 if(is_admin()){ 104 if (isset( $_GET['page']) && ($_GET['page']=='wp-amazon-shop' || $_GET['page']=='wp-amazon-shop-basic-import' || $_GET['page']=='wp-amazon-shop-products-import' || $_GET['page']=='wp-amazon-shop-products-import-ext' || $_GET['page']=='wp-amazon-shop-info-page')) {104 if (isset( $_GET['page'] ) && ( sanitize_text_field ($_GET['page'])=='wp-amazon-shop' || sanitize_text_field ($_GET['page'])=='wp-amazon-shop-basic-import' || sanitize_text_field ($_GET['page'])=='wp-amazon-shop-info-page')) { 105 105 add_filter('admin_footer_text','acl_wpas_rate_us_notice'); 106 106 } … … 116 116 <?php _e(' plugin please leave us a ', 'wp-amaxon-shop') ?> 117 117 <a target="_blank" 118 href=" https://wordpress.org/support/plugin/wp-amazon-shop/reviews/#new-post"118 href="<?php echo esc_url_raw('https://wordpress.org/support/plugin/wp-amazon-shop/reviews/#new-post')?>" 119 119 class="button button-warning" style="background-color:orange;font-size:22px; color:#fff ; vertical-align: middle; line-height: 22px; text-shadow: 0 0 2px #000; border: 1px solid #e09305; "><?php _e('★★★★★', 'wp-amaxon-shop') ?></a> 120 120 <?php _e(' rating. A huge thanks in advance!', 'wp-amaxon-shop') ?> -
wp-amazon-shop/trunk/includes/wp-amazon-shop-handler.php
r2221964 r2404692 17 17 public function wpas_shortcode_by_asin(){ 18 18 $html=""; 19 $asins = $_POST['asin'];19 $asins =sanitize_text_field($_POST['asin']); 20 20 $asin_numbers=explode(',',$asins); 21 21 $products=array(); … … 43 43 public function wpas_comparision_by_asin(){ 44 44 $html=""; 45 $asins = $_POST['asin'];45 $asins = sanitize_text_field( $_POST['asin'] ); 46 46 $asin_numbers=explode(',',$asins); 47 47 $products=array(); … … 69 69 public function wpas_search_by_keyword() 70 70 { 71 if (isset($_POST['page_num'])) { 71 72 if (isset($_POST['page_num'])) { 72 73 $page_num = intval($_POST['page_num']); 73 74 } else { 74 75 $page_num = intval(get_option('acl_wpas_product_page_number')); 75 76 } 76 $processed_products = $this->process_response( $_POST['data']);77 $processed_products = $this->process_response(wpas_clean($_POST['data'])); 77 78 if(count($processed_products)>0){ 78 79 $html = $this->products_display($processed_products); … … 81 82 } 82 83 83 echo wp_send_json(array('keyword' => $_POST['keyword'], 'html' => $html, 'page_num' => intval($page_num + 1), 'product_num' => count($processed_products)));84 echo wp_send_json(array('keyword' => sanitize_text_field( $_POST['keyword']), 'html' => $html, 'page_num' => intval($page_num + 1), 'product_num' => count($processed_products))); 84 85 wp_die(); 85 86 } -
wp-amazon-shop/trunk/includes/wp-amazon-shop-info-page.php
r2221964 r2404692 54 54 <div class="wpas-info-page-container"> 55 55 <h2 class="wpas-info-page-headline"><?php _e('Help & Info','wp-amazon-shop');?> </h2> 56 <p><strong style="color:orange"> <i class="dashicons dashicons-megaphone"></i><?php _e('Breaking News','wp-amazon-shop');?> : </strong>57 <strong style="color:blue"> Install <a target="_blank" href="https://chrome.google.com/webstore/detail/wp-amazon-shop-extension/chlnealbecgihlcianbcpdjjbabhdgnm"><?php _e('WP Amazon Shop Chrome Extension','wp-amazon-shop');?></a> <?php _e(' and import more details of the products','wp-amazon-shop');?></strong>58 </p>59 56 <p> 60 57 <strong style="color:orange"><span class="dashicons dashicons-buddicons-community"></span><?php _e(' A Charming … … 62 59 on your site.','wp-amazon-shop');?> 63 60 </p> 64 <p><?php _e('Getting started with','wp-amazon-shop');?> <strong><?php _e('Wp Amazon shop','wp-amazon-shop');?> </strong> <?php _e('instantly after installing the plugin and giving only the','wp-amazon-shop');?> <strong><?php _e('Amazon Affiliate Account Tag','wp-amazon-shop');?> </strong> <?php _e('on the','wp-amazon-shop');?>65 <a href="<?php echo get_admin_url(); ?>admin.php?page=wp-amazon-shop&tab=wpas_amazon"><?php _e('WP Amazon Shop Settings', 'wp-amazon-shop') ?></a>66 <?php _e('page.','wp-amazon-shop');?>67 </p>68 61 <h3><?php _e('Key Features','wp-amazon-shop');?></h3> 69 62 <ol style="list-style:disc"> 70 <li><?php _e('Extended products import by','wp-amazon-shop');?> <a target="_blank" href="https://chrome.google.com/webstore/detail/wp-amazon-shop-extension/chlnealbecgihlcianbcpdjjbabhdgnm"><?php _e('WP Amazon Shop Chrome Extension','wp-amazon-shop');?></a> </li>71 63 <li><?php _e('Basic product import!','wp-amazon-shop');?> </li> 72 64 <li><?php _e('Completely Ajax Operation! No need to page refresh!','wp-amazon-shop');?> </li> 73 65 <li><?php _e('No Need Access Key ID OR Secret Key ID!','wp-amazon-shop');?> </li> 74 <li><strong><?php _e('Global Amazon Product Search Box','wp-amazon-shop');?> </strong> : <?php _e('From Setting page If Enable Amazon Products Search Globally option is checked then it will work for all search forms across your website. You may disable this feature by uncheck marked the option','wp-amazon-shop');?>75 </li>76 66 <li><?php _e('Amazon Products Search ShortCode','wp-amazon-shop');?></li> 77 67 <li><?php _e('Amazon Product auto link by shortCode (By ASIN and Phrase )','wp-amazon-shop');?> </li> … … 115 105 <p style="text-align: center"> 116 106 <a target="_blank" 117 href=" https://www.wpamazonshop.com"107 href="<?php echo esc_url_raw('https://www.wpamazonshop.com');?>" 118 108 class="button button-primary"><?php _e('See Pro Features','wp-amazon-shop');?> </a> 119 109 … … 128 118 129 119 <div style="padding: 15px 10px; border: 1px solid #ccc; text-align: center; margin-top: 20px;"> 130 <?php _e('Developed By','wp-amazon-shop');?> : <a href="http://www.amadercode.com" target="_blank"> <?php _e('Web & Mobile Application Developer Company','wp-amazon-shop');?> </a> - AmaderCode Lab120 <?php _e('Developed By','wp-amazon-shop');?> : <a ="http://www.amadercode.com" target="_blank"> <?php _e('Web & Mobile Application Developer Company','wp-amazon-shop');?> </a> - AmaderCode Lab 131 121 </div> 132 122 … … 169 159 170 160 if ($plugin == $plugin_file) { 171 $site_link = array('settings' => '<a href="' . $upgrade_link. '" target="_blank"><span class="wpas-upgrade-link-text" style="font-weight: bold; color: orange">' . __('See Pro Features', 'wp-amazon-shop') . '</span></a>');161 $site_link = array('settings' => '<a href="' . esc_url_raw($upgrade_link) . '" target="_blank"><span class="wpas-upgrade-link-text" style="font-weight: bold; color: orange">' . __('See Pro Features', 'wp-amazon-shop') . '</span></a>'); 172 162 $actions = array_merge($site_link, $actions); 173 163 … … 188 178 <p> <strong><?php _e('WP Amazon Shop Pro Version is available.', 'wp-amaxon-shop') ?></strong> 189 179 <a target="_blank" 190 href=" https://www.wpamazonshop.com"180 href="<?php echo esc_url_raw('https://www.wpamazonshop.com')?>" 191 181 class="button button-primary"><?php _e('Upgrade to Pro Version', 'wp-amaxon-shop') ?></a> 192 182 </p> -
wp-amazon-shop/trunk/includes/wp-amazon-shop-plugin.php
r2230898 r2404692 112 112 113 113 // Load admin JS & CSS 114 if(isset($_GET['page']) && ( $_GET['page']=="wp-amazon-shop" ||$_GET['page']=="wp-amazon-shop-basic-import" || $_GET['page']=="wp-amazon-shop-products-import" || $_GET['page']=="wp-amazon-shop-products-import-ext")){114 if(isset($_GET['page']) && (sanitize_text_field($_GET['page'])=="wp-amazon-shop" || sanitize_text_field($_GET['page'])=="wp-amazon-shop-basic-import")){ 115 115 add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ), 10, 1 ); 116 116 add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_styles' ), 10, 1 ); … … 385 385 update_option( $this->_token . '_version', $this->_version ); 386 386 } // End _log_version_number () 387 388 //chrome extension389 public function chrome_ext_auth(){390 $auth_token=$_POST['auth_token'];391 if(get_option('acl_wpas_chrome_ext_auth')!=""){392 update_option('acl_wpas_chrome_ext_auth',$auth_token);393 }else{394 add_option('acl_wpas_chrome_ext_auth',$auth_token);395 }396 397 $message='<div class="notice notice-success is-dismissible">'.398 '<p>'.__( 'Authentication token generated successfully!', 'wp-amazon-shop' ).'</p>'.399 '</div>';400 $redirect_url=strtok(admin_url(), '?').'admin.php?page=wp-amazon-shop-products-import';401 wp_send_json(array('status'=>200,'message'=>$message,'redirect_url'=>$redirect_url));402 wp_die();403 }404 405 387 } -
wp-amazon-shop/trunk/includes/wp-amazon-shop-settings.php
r2269811 r2404692 372 372 // Check posted/selected tab 373 373 $current_section = ''; 374 if ( isset( $_POST['tab'] ) && $_POST['tab']) {375 $current_section = $_POST['tab'];374 if ( isset( $_POST['tab'] ) && sanitize_text_field($_POST['tab'])!='' ) { 375 $current_section = sanitize_text_field($_POST['tab']); 376 376 } else { 377 if ( isset( $_GET['tab'] ) && $_GET['tab']) {378 $current_section = $_GET['tab'];377 if ( isset( $_GET['tab'] ) && sanitize_text_field($_GET['tab'])!="") { 378 $current_section = sanitize_text_field($_GET['tab']); 379 379 } 380 380 } … … 422 422 $html= '<div class="wrap" id="' . $this->parent->_token . '_settings">' . "\n"; 423 423 $html .= '<h2>' . __( 'WP Amazon Shop Settings' , 'wp-amazon-shop' ) .'</h2>' . "\n"; 424 if(!get_option('acl_wpas_chrome_ext_auth')){425 $html.=$this->chrome_addon_notice();426 }427 $html.=$this->premium_themes();428 424 $tab = ''; 429 if ( isset( $_GET['tab'] ) && $_GET['tab']) {430 $tab .= $_GET['tab'];425 if ( isset( $_GET['tab'] ) && sanitize_text_field($_GET['tab'])!="") { 426 $tab .= sanitize_text_field($_GET['tab']); 431 427 } 432 428 … … 445 441 } 446 442 } else { 447 if ( isset( $_GET['tab'] ) && $section == $_GET['tab']) {443 if ( isset( $_GET['tab'] ) && $section == sanitize_text_field($_GET['tab'])) { 448 444 $class .= ' nav-tab-active'; 449 445 } … … 464 460 $html .= '</h2>' . "\n"; 465 461 } 466 if ( isset( $_GET['tab'] ) && 'wpas_store' == $_GET['tab']) {462 if ( isset( $_GET['tab'] ) && 'wpas_store' == sanitize_text_field($_GET['tab'])) { 467 463 $html .= '<img src="'.ACL_WPAS_IMG_PATH.'dropshipping-pro.jpg" alt="All necessary settings for DropShipping">' . "\n"; 468 464 } 469 else if ( isset( $_GET['tab'] ) && 'wpas_import' == $_GET['tab']) {465 else if ( isset( $_GET['tab'] ) && 'wpas_import' == sanitize_text_field($_GET['tab']) ) { 470 466 $html .= '<img src="'.ACL_WPAS_IMG_PATH.'product-import-pro.jpg" alt="Products Import">' . "\n"; 471 467 } 472 else if ( isset( $_GET['tab'] ) && 'wpas_manage_products' == $_GET['tab']) {468 else if ( isset( $_GET['tab'] ) && 'wpas_manage_products' == sanitize_text_field($_GET['tab']) ) { 473 469 $html .= '<img src="'.ACL_WPAS_IMG_PATH.'manage-products-pro.jpg" alt="Manage Products">' . "\n"; 474 470 } … … 527 523 _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), $this->parent->_version ); 528 524 } // End __wakeup() 529 public function chrome_addon_notice(){530 $html='<div class="notice notice-error is-dismissible">531 <h2 class="wpas-info-page-headline">'.__('WP Amazon Shop : Chrome Extension ', 'wp-amazon-shop').'</h2>532 <p>'.__('Since Amazon does not give access to Product Advertising API (PA API) for beginner & impose a limitation on who has PA API. See more at', 'wp-amazon-shop').'533 <a href="https://docs.aws.amazon.com/AWSECommerceService/latest/DG/TroubleshootingApplications.html#efficiency-guidelines" target="_blank">'.__('Amazon Efficiency Guidelines Docs', 'wp-amazon-shop').'</a> </p>534 <p>'.__('We have introduced WP Amazon Shop Plugin with a charming feature of Chrome Extension that helps to import unlimited Products without AWS & PA API.', 'wp-amazon-shop').'</p>535 <p><strong>'.__('Follow the ', 'wp-amazon-shop').'</strong><a href="https://amadercode.com/product-import-docs/" target="_blank">'.__('Product Importing Guideline', 'wp-amazon-shop').'</a>'.__(' & Enjoy it!', 'wp-amazon-shop').'</p>536 </div>';537 return $html;538 }539 public function premium_themes(){540 $html='<div class="acl-product-banner">541 <a target="_blank" href="https://amadercode.com/premium-products/wordpress-themes">542 <img src="https://amadercode.com/free-product/recommended-theme-for-wpas.gif">543 </a>544 </div>';545 return $html;546 }547 525 548 526 } -
wp-amazon-shop/trunk/readme.txt
r2269811 r2404692 1 === WP Amazon Shop for Dropshipping & Affiliation ===1 === Dropshipping & Affiliation with Amazon === 2 2 Contributors: amadercode 3 3 Donate link: https://www.amadercode.com 4 4 Tags: amazon, amazon shop,affiliate,amazon affiliate, dropship, amazon dropship,amazon product search, amazon product import,amazon product auto link 5 5 Requires at least: 4.0 6 Tested up to: 5. 37 Stable tag: 2. 2.08 Requires PHP: 5. 4.06 Tested up to: 5.5 7 Stable tag: 2.1.0 8 Requires PHP: 5.6.0 9 9 License: GPLv2 or later 10 10 License URI: https://www.amadercode.com 11 11 12 WP Amazon Shopcomes with a NEW Outstanding Feature, Amazon Dropshipping & Affiliation Program Both.Search and build products from Amazon store to make easy money by affiliation or dropshipping or local businesses. No hassle, no coding, no amazon AWS keys!12 Dropshipping & Affiliation with Amazon comes with a NEW Outstanding Feature, Amazon Dropshipping & Affiliation Program Both.Search and build products from Amazon store to make easy money by affiliation or dropshipping or local businesses. No hassle, no coding, no amazon AWS keys! 13 13 14 14 == Description == 15 15 [youtube https://www.youtube.com/watch?v=PMpQOyIZ2S4] 16 16 17 WP Amazon Shopcomes with a NEW Outstanding Feature, Amazon Dropshipping & Affiliation Program Both.Search and build products from Amazon store to make easy money by affiliation. No hassle, no coding, no amazon AWS keys!18 19 > [Live Demo of WP Amazon Shop for Dropshipping & Affiliation Pro Version](https://wpamazonshop.com/demo/)20 > <strong>For the Advanced Features Upgrade to [ WP Amazon ShopPRO](https://www.wpamazonshop.com)</strong>17 Dropshipping & Affiliation with Amazon comes with a NEW Outstanding Feature, Amazon Dropshipping & Affiliation Program Both.Search and build products from Amazon store to make easy money by affiliation. No hassle, no coding, no amazon AWS keys! 18 19 > [Live Demo of Dropshipping & Affiliation with Amazon Pro Version](https://wpamazonshop.com/demo/) 20 > <strong>For the Advanced Features Upgrade to [Dropshipping & Affiliation with Amazon PRO](https://www.wpamazonshop.com)</strong> 21 21 > <strong>Web Url : [https://amadercode.com/](https://amadercode.com/)</strong> 22 22 23 = WP Amazon ShopFree Version =24 📣 No PA API products Import , follow the [Product Importing Guideline](https://amadercode.com/product-import-docs/)23 = Dropshipping & Affiliation with Amazon Free Version = 24 📣 No PA API products Import with [Dropshipping & Affiliation with Amazon Chrome Extension](https://chrome.google.com/webstore/detail/wp-amazon-shop-extension/chlnealbecgihlcianbcpdjjbabhdgnm) 25 25 <hr /> 26 26 👉Easy & quick installation … … 51 51 👉Without AWS access & secret key supported Amazon domains ([US](http://www.amazon.com), [UK](http://www.amazon.co.uk) - Products by ASINs , [Germany](http://www.amazon.de), [France](http://www.amazon.fr), [Japan](http://www.amazon.co.jp/), [Canada](http://www.amazon.ca), [China](http://www.amazon.cn),[India](http://www.amazon.in), [Italy](http://www.amazon.it), [Spain](http://www.amazon.es)) 52 52 53 = WP Amazon ShopPro Version Features =53 = Dropshipping & Affiliation with Amazon Pro Version Features = 54 54 <strong>( Included Free Version Features )</strong> 55 55 👉Display products by keyword search,ASIN number or url … … 106 106 👉Geolocation based multi country affiliation. 107 107 108 ## 🏆 Customers' Feedback For WP Amazon Shop for Dropshipping & Affiliation ##108 ## 🏆 Customers' Feedback For Dropshipping & Affiliation with Amazon ## 109 109 110 110 [nearbyguru](https://wordpress.org/support/topic/love-the-auto-search-for-amazon-feature/): … … 119 119 120 120 Getting Started with our Amazon dropshipping and affiliate plugin. 121 = Usages of WP Amazon ShopShortCodes =122 123 WP Amazon Shopprovides two powerful shortcodes to build your store by pulling up products from amazon store.124 125 > [Live Demo of WP Amazon Shop for Dropshipping & Affiliation Pro Version](https://wpamazonshop.com/demo/)126 > <strong>For the Advanced Features Upgrade to [ WP Amazon ShopPRO](https://wpamazonshop.com/)</strong>121 = Usages of Dropshipping & Affiliation with Amazon ShortCodes = 122 123 Dropshipping & Affiliation with Amazon provides two powerful shortcodes to build your store by pulling up products from amazon store. 124 125 > [Live Demo of Dropshipping & Affiliation with Amazon Pro Version](https://wpamazonshop.com/demo/) 126 > <strong>For the Advanced Features Upgrade to [Dropshipping & Affiliation with Amazon PRO](https://wpamazonshop.com/)</strong> 127 127 128 128 📣 <strong> Amazon Products Search Form </strong> … … 147 147 👉Example for Product Comparsion : [wpas_products_comparison ASIN="B077SXWSRP,B07CT3W44K"] 148 148 149 = Why WP Amazon Shop? =149 = Why Dropshipping & Affiliation with Amazon? = 150 150 AmaderCode Lab finally decided to develop a feature based on our client demand which is really very effective to earn money from amazon dropshipping & affiliation. 151 151 152 152 153 = What Can WP Amazon Shopdo? =154 WP Amazon Shopplugin can ajax based no page refresh products search with load more, auto link by ASIN and keywords, import products with larger image from amazon into your website, then you can do check affiliation options from your settings panel or you can start your dropshipping business with a single click by adding a custom tax (variable), your charges or comission each or all of your products and start to makes easy money.153 = What Can Dropshipping & Affiliation with Amazon do? = 154 Dropshipping & Affiliation with Amazon plugin can ajax based no page refresh products search with load more, auto link by ASIN and keywords, import products with larger image from amazon into your website, then you can do check affiliation options from your settings panel or you can start your dropshipping business with a single click by adding a custom tax (variable), your charges or comission each or all of your products and start to makes easy money. 155 155 156 156 … … 159 159 Affiliation Business is a business that you don't need to buy products, don't need a warehouse or stuff. Just do marketing and earn commission from Amazon that's it! And also Dropshipping Businesses have a large number of Advantages. Normally, if you want to start a Business, it can be costly to acquire large inventory, a warehouse and let’s not speak about the shipping costs. 160 160 161 <strong>What can do WP Amazon ShopDropshipping & Affiliate Plugin for you?</strong>161 <strong>What can do Dropshipping & Affiliation with Amazon Dropshipping & Affiliate Plugin for you?</strong> 162 162 163 163 You can do pricing of Amazon products for single item or if you want then you can do pricing all of the item by adding custom tax on each product 164 164 165 Save your time and money by using our WP Amazon ShopDropshipping & Affiliate Plugin because you don't need to maintain a warehouse, manage stock and don't need to about the shipping.165 Save your time and money by using our Dropshipping & Affiliation with Amazon Dropshipping & Affiliate Plugin because you don't need to maintain a warehouse, manage stock and don't need to about the shipping. 166 166 167 167 After Getting the order from your customer you can switch the seller. Wherever you like to purchase you can. No boundary level you have. … … 184 184 Dropshipping, or allowing a third party to full fill orders is allowed by Amazon as long as you comply with their requirements. 185 185 186 Without of having PA API keys you can directly import products from Amazon into your website because WP Amazon ShopDropshipping & Affiliation Giving you the game changing feature!! Yes you read absolutely what we write here.186 Without of having PA API keys you can directly import products from Amazon into your website because Dropshipping & Affiliation with Amazon Dropshipping & Affiliation Giving you the game changing feature!! Yes you read absolutely what we write here. 187 187 188 188 You agree or not this is a really a great opportunity for those people who wants to make money from Affiliation or Dropshipping business. No other competitor can offer you this. 189 189 190 You can reduce of you extra efforts to earn money. Just use our WP Amazon ShopDropshipping & Affiliate Plugin.190 You can reduce of you extra efforts to earn money. Just use our Dropshipping & Affiliation with Amazon Dropshipping & Affiliate Plugin. 191 191 192 192 Install our plugin and search your product through our plugin and import to your store which one you want sell … … 201 201 <strong>Page speed Optimisation Module</strong> 202 202 203 The basic functionality of WP Amazon ShopDropshipping & Afiliate Plugin is to let you import products from Amazon into your WordPress + WooCommerce website. Then, for those products, the plugin will keep your imported products synchronized according to how you set it up.203 The basic functionality of Dropshipping & Affiliation with Amazon Dropshipping & Afiliate Plugin is to let you import products from Amazon into your WordPress + WooCommerce website. Then, for those products, the plugin will keep your imported products synchronized according to how you set it up. 204 204 205 205 The management of the products in the frontend (how they look, how fast your website will load) depends on how WordPress organised the relationships between tables, how your caching plugin works and how capable your server is to manage everything. 206 206 207 With WP Amazon ShopDropshipping & Affiliates + a dedicated hosting, we were able to test-run a website with more than 10k products, most with A or B Optimization Scores and with a loading time of less than 1 second.208 209 > [Live Demo of WP Amazon Shop for Dropshipping & Affiliation Pro Version](https://www.wpamazonshop.com/demo)210 > <strong>For the Advanced Features Upgrade to [ WP Amazon ShopPRO](https://www.wpamazonshop.com/)</strong>207 With Dropshipping & Affiliation with Amazon Dropshipping & Affiliates + a dedicated hosting, we were able to test-run a website with more than 10k products, most with A or B Optimization Scores and with a loading time of less than 1 second. 208 209 > [Live Demo of Dropshipping & Affiliation with Amazon Pro Version](https://www.wpamazonshop.com/demo) 210 > <strong>For the Advanced Features Upgrade to [Dropshipping & Affiliation with Amazon PRO](https://www.wpamazonshop.com/)</strong> 211 211 212 212 <strong>Auto Import</strong> … … 239 239 Please watch this video – [Live Video & Documentation](https://www.youtube.com/watch?v=ps1ekUOLNC8) 240 240 241 = How to install the WP Amazon ShopChrome Extension? =241 = How to install the Dropshipping & Affiliation with Amazon Chrome Extension? = 242 242 Please watch this video – [Live Video & Documentation](https://www.youtube.com/watch?v=QlPtR9oN1vA) 243 243 … … 270 270 271 271 1. Download the plugin wp-amazon-shop.zip file. Extract and upload in your wp-content/plugins folder. 272 2. Activate the plugin through the 'Plugins' screen in WordPress by clicking 'Activate' button below ' WP Amazon Shop'.273 3.Use the WP Amazon Shop->Settings screen to configure the your affiliate account tag and country.272 2. Activate the plugin through the 'Plugins' screen in WordPress by clicking 'Activate' button below 'Dropshipping & Affiliation with Amazon'. 273 3.Use the Dropshipping & Affiliation with Amazon->Settings screen to configure the your affiliate account tag and country. 274 274 4. You are done. 275 275 276 276 == Screenshots == 277 1. WP Amazon Shopwith Search Shortcode278 2. WP Amazon Shopwith product keyword Shortcode277 1. Dropshipping & Affiliation with Amazon with Search Shortcode 278 2. Dropshipping & Affiliation with Amazon with product keyword Shortcode 279 279 3. Products import basic 280 280 4. Products import extended with chrome extension 281 281 5. BUY NOW to direct Amazon Cart page 282 6. WP Amazon Shopwith auto products link283 7. WP Amazon Shopat Settings284 8. WP Amazon Shopat Affiliate285 9. WP Amazon Shopat Dropshipping282 6. Dropshipping & Affiliation with Amazon with auto products link 283 7. Dropshipping & Affiliation with Amazon at Settings 284 8. Dropshipping & Affiliation with Amazon at Affiliate 285 9. Dropshipping & Affiliation with Amazon at Dropshipping 286 286 10. Authorize to chrome extension 287 11. WP Amazon Shopat Custom Style288 12. WP Amazon Shopat Help & Info287 11. Dropshipping & Affiliation with Amazon at Custom Style 288 12. Dropshipping & Affiliation with Amazon at Help & Info 289 289 290 290 == Changelog == … … 327 327 *Admin panel UI upgrade. 328 328 = 2.0.0= 329 *Extended import with google chrome extension330 329 *Enable multiple ASINs support to display products by shortcode. 331 330 = 2.0.1= -
wp-amazon-shop/trunk/wp-amazon-shop.php
r2230898 r2404692 1 1 <?php 2 2 /* 3 * Plugin Name: WP Amazon Shop for Dropshipping & Affiliation4 * Version: 2. 0.85 * Plugin URI: http ://www.amadercode.com/wp-amazon-shop-drop-shipping-affiliation3 * Plugin Name: Dropshipping & Affiliation with Amazon 4 * Version: 2.1.0 5 * Plugin URI: https://www.wpamazonshop.com/ 6 6 * Description: Search and build products from Amazon store to make easy money by affiliation & dropshipping. No hassle, no coding, no amazon aws keys!. 7 7 * Author: AmaderCode Lab 8 8 * Author URI: http://www.amadercode.com/ 9 9 * Requires at least: 4.0 10 * Tested up to: 5. 311 * Stable tag: 2. 0.810 * Tested up to: 5.5 11 * Stable tag: 2.1.0 12 12 * Text Domain: wp-amazon-shop 13 13 * Domain Path: /lang/ … … 16 16 17 17 if ( ! defined( 'ABSPATH' ) ) exit; 18 define( 'ACL_WPAS_VERSION', '2. 0.8' );18 define( 'ACL_WPAS_VERSION', '2.1.0' ); 19 19 define( 'ACL_WPAS_REQUIRED_PHP_VERSION', '5.3.0' ); 20 20 define( 'ACL_WPAS_WP_VERSION', '4.0' ); … … 24 24 } 25 25 define('ACL_WPAS_IMG_PATH', plugin_dir_url(__FILE__).'assets/images/'); 26 26 //Dependency functions. 27 if(!function_exists('wpas_clean')){ 28 function wpas_clean($var){ 29 if ( is_array( $var ) ) { 30 return array_map( 'wpas_clean', $var ); 31 } else { 32 return is_scalar( $var ) ? sanitize_text_field( $var ) : $var; 33 } 34 } 35 } 27 36 // Load plugin basic class files 28 37 require_once( 'includes/wp-amazon-shop-plugin.php' );
Note: See TracChangeset
for help on using the changeset viewer.