Supremacy2k Posted December 11, 2012 Share Posted December 11, 2012 (edited) Hi Folks. I just noticed on my 1.5.2 store the following messed up code in the top of my shop. <script type="text/javascript">/* <![CDATA[ */ $(document).ready(function(){$('#payment_paypal_express_checkout').click(function(){var nb=$('#quantity_wanted').val();var id=$('#idCombination').val();$('#paypal_payment_form input[name=quantity]').val(nb);$('#paypal_payment_form input[name=id_p_attr]').val(id);$('#paypal_payment_form').submit();});function displayExpressCheckoutShortcut(){var id_product=$('input[name="id_product"]').val();var id_product_attribute=$('input[name="id_product_attribute"]').val();$.ajax({type:"GET",url:baseDir+'/modules/paypal/express_checkout/submit.php',data:{get_qty:"1",id_product:id_product,id_product_attribute:id_product_attribute[spam-filter]).success(function(result){if(result=='1') $('#container_express_checkout').slideDown();else $('#container_express_checkout').slideUp();return true;});}$('select[name^="group_"]').change(function(){displayExpressCheckoutShortcut();});$('.color_pick').click(function(){displayExpressCheckoutShortcut();});if($('form[target="hss_iframe"]').length==0){if($('select[name^="group_"]').length>0) displayExpressCheckoutShortcut();return false;}else{var hostname='http://'+window.location.hostname+'/';var modulePath='modules/paypal';var subFolder='/integral_evolution';var fullPath=hostname+modulePath+subFolder;var confirmTimer=setInterval(getOrdersCount,1000);}function getOrdersCount(){$.get(fullPath+'/confirm.php',{id_cart:'31'},function(data){if(data&&(data>0)){clearInterval(confirmTimer);window.location.replace(fullPath+'/submit.php?id_cart=31');$('p.payment_module, p.cart_navigation').hide();[spam-filter]);[spam-filter]);/* ]]> */</script> Is this normal? To me the CDATA tag looks wierd. - Kris. Edited December 20, 2012 by Supremacy2k (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now