} jQuery("a:not([href*=add-to-cart],.product_type_variable, .product_type_grouped)").on("click",function(){ t_url=jQuery(this).attr("href"); //home page call for click t_call_fired=prod_exists_in_JSON(t_url,tvc_fp,"fp"); if(!t_call_fired){ prod_exists_in_JSON(t_url,tvc_rcp,"rp"); } }); //ATC click jQuery("a[href*=add-to-cart]").on("click",function(){ t_url=jQuery(this).attr("href"); t_qty=$(this).parent().find("input[name=quantity]").val(); //default quantity 1 if quantity box is not there if(t_qty=="" || t_qty===undefined){ t_qty="1"; } t_call_fired=prod_ATC_link_exists(t_url,homepage_json_ATC_link,tvc_fp,t_qty); if(!t_call_fired){ prod_ATC_link_exists(t_url,homepage_json_ATC_link,tvc_rcp,t_qty); } }); tvc_smd={"tvc_wcv":"4.9.2","tvc_wpv":"5.6.1","tvc_eev":"2.3.6.1","tvc_cnf":{"t_ee":"on","t_df":false,"t_gUser":false,"t_UAen":null,"t_thr":"3","t_IPA":true,"t_OptOut":true,"t_PrivacyPolicy":true}}; });