Signin  Pricing  Examples  Support

Libraries > estore-multi-gateway-co.js

estore-multi-gateway-co.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE https://wpeditpro.com/wp-content/plugins/wp-cart-for-digital-products/lib/estore-multi-gateway-co.js

Function Explorer


Libraries on wpeditpro.com


eStore_read_form.js



Explore More


script.js

app.js

camera.min.js

jquery.easing.1.3.js

estore-multi-gateway-co.js
				
jQuery(document).ready(function($) {
$(function() {
   $(".eStore_gateway").change(function(){
            var selected = $(this);
            if(selected.val() == "paypal"){
            	$.cookie("eStore_gateway", "paypal",{path: '/'});
                image = JS_WP_ESTORE_URL + '/images/checkout_paypal.png';
                $('.eStore_paypal_checkout_button').attr("src", image);
            }
            if(selected.val() == "manual"){
            	$.cookie("eStore_gateway", "manual",{path: '/'});
                image = JS_WP_ESTORE_URL + '/images/checkout_manual.png';
                $('.eStore_paypal_checkout_button').attr("src", image);
            }
            if(selected.val() == "2co"){
            	$.cookie("eStore_gateway", "2co",{path: '/'});
                image = JS_WP_ESTORE_URL + '/images/checkout_2co.png';
                $(".eStore_paypal_checkout_button").attr("src", image);
            }
            if(selected.val() == "authorize"){
            	$.cookie("eStore_gateway", "authorize",{path: '/'});
                image = JS_WP_ESTORE_URL + '/images/checkout_authorize.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            }
            if(selected.val() == "gco"){
            	$.cookie("eStore_gateway", "gco",{path: '/'});
                image = JS_WP_ESTORE_PG_BUNDLE_URL + '/images/checkout_gco.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            } 
            if(selected.val() == "pppro"){
            	$.cookie("eStore_gateway", "pppro",{path: '/'});
                image = JS_WP_ESTORE_PG_BUNDLE_URL + '/images/checkout_pppro.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            }    
            if(selected.val() == "sagepay"){
            	$.cookie("eStore_gateway", "sagepay",{path: '/'});
                image = JS_WP_ESTORE_PG_BUNDLE_URL + '/images/checkout_sagepay.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            }   
            if(selected.val() == "auth_aim"){
            	$.cookie("eStore_gateway", "auth_aim",{path: '/'});
                image = JS_WP_ESTORE_PG_BUNDLE_URL + '/images/checkout_auth_aim.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            }
            if(selected.val() == "eway"){
            	$.cookie("eStore_gateway", "eway",{path: '/'});
                image = JS_WP_ESTORE_PG_BUNDLE_URL + '/images/checkout_eway.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            } 
            if(selected.val() == "epay_dk"){
            	$.cookie("eStore_gateway", "epay_dk",{path: '/'});
                image = JS_WP_ESTORE_PG_BUNDLE_URL + '/images/checkout_epay_dk.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            }
            if(selected.val() == "verotel"){
            	$.cookie("eStore_gateway", "verotel",{path: '/'});
                image = JS_WP_ESTORE_PG_BUNDLE_URL + '/images/checkout_verotel.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            }
            if(selected.val() == "freshbooks"){
            	$.cookie("eStore_gateway", "freshbooks",{path: '/'});
                image = JS_WP_ESTORE_PG_BUNDLE_URL + '/images/checkout_freshbooks.gif';
                $(".eStore_paypal_checkout_button").attr("src", image);
            }
       $(".eStore_gateway").each(function(){
            $(this).val(selected.val());
       });
   });
   
   set_co_img_to_selected_gateway();
   function set_co_img_to_selected_gateway(){     
        var selected = $('.eStore_gateway');
        if(selected.val() == "paypal"){
            $.cookie("eStore_gateway", "paypal",{path: '/'});
            image = JS_WP_ESTORE_URL + '/images/checkout_paypal.png';
            $('.eStore_paypal_checkout_button').attr("src", image);
        }
        if(selected.val() == "manual"){
            $.cookie("eStore_gateway", "manual",{path: '/'});
            image = JS_WP_ESTORE_URL + '/images/checkout_manual.png';
            $('.eStore_paypal_checkout_button').attr("src", image);
        }
        if(selected.val() == "2co"){
            $.cookie("eStore_gateway", "2co",{path: '/'});
            image = JS_WP_ESTORE_URL + '/images/checkout_2co.png';
            $(".eStore_paypal_checkout_button").attr("src", image);
        }
        if(selected.val() == "authorize"){
            $.cookie("eStore_gateway", "authorize",{path: '/'});
            image = JS_WP_ESTORE_URL + '/images/checkout_authorize.gif';
            $(".eStore_paypal_checkout_button").attr("src", image);
        }
   }
 });
 });


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z