zviruss Posted June 27, 2015 Share Posted June 27, 2015 Hello Everyone, I cant make fancybox work, moving the code up or down disables only other scripts on the website... what else can I do? Here is the link to the shop`s product: http://shop.ciggy-point.co.uk/vivid-golden-tobacco-liquid-p-43.html Thanks in advance!! Here it is header of my template_top.php: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <meta name="description" content="Electronic Cigarettes,eliquid and e-cig supplier in Belfast UK. Vivid vapours. Hangsen liquids." /> <meta name="keywords" content="e-cig,e-cigs,e-liquids,e-smoking supplies,e.cig,e.cigs,ecig,ecigs,electronic cigarettes,eliquid,vaping,vaping kits,vaping suppliers, hangsen, vivid, starter packs, stop smoking, quit smoking, e-cig uk, e-liquids" /> <meta name="author" content="metatags generator"> <meta name="robots" content="index, follow"> <meta name="revisit-after" content="7 days"> <!--<title>Ciggy Point - Electronic Cigarettes and Accessories Online Store Based in Belfast UK</title>--> <!-- e-liquids, electronic cigarettes, vaping --> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" /> <link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" /> <link rel="stylesheet" type="text/css" href="ext/jquery/cookiecuttr.css?v=3" /> <script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script> <script type="text/javascript"> // fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484 if ( $.attrFn ) { $.attrFn.text = true; } </script> <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> <link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>960_24_col.css" /> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" /> <script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="/az_template/css/box.css" /> <link rel="stylesheet" type="text/css" href="ext/jquery/cookiecuttr.css?v=3" /> <script type="text/javascript" src="ext/jquery/jquery-1.8.0.min.js"></script> <script>window.jQuery || document.write("<script src='ext/jquery/jquery-1.8.0.min.js'>\x3C/script>")</script> <script src="ext/jquery/jquery.cookie.js"></script> <script src="ext/jquery/jquery.cookiecuttr.js"></script> <script type="text/javascript" src="ext/jquery/jquery.box.js"></script> <script type="text/javascript">// <![CDATA[ jQuery(document).ready(function (){ if (document.cookie.indexOf('visited=true') == -1){ var fifteenDays = 1000*60*60*24*15; var expires = new Date((new Date()).valueOf() + fifteenDays); document.cookie = "visited=true;expires=" + expires.toUTCString(); jQuery.colorbox({width:"580px", inline:true, href:"#homepage_popup"}); } jQuery(".open_popup").colorbox({width:"580px", inline:true, href:"#homepage_popup"}); }); // ]]></script> <div style="display: none;"> <div id="homepage_popup" style="padding: 10px; text-align:center;background-color:white;"><!-- BEGIN #homepage-container --> <div class="verifyage">VERIFY AGE TO CONTINUE</div> <div class="verifyage2">To access our website you must be over 18 years of age. Please verify your age before continuing.</div> <a href="http://www.shop.ciggy-point.co.uk/index.php"><div class="verifyage3">I am over the age of 18</div></a> <a href="https://www.google.co.uk/search?q=drink+milk&source=lnms&tbm=isch&sa=X&ved=0CAcQ_AUoAWoVChMIlOSO4KOMxgIVRusUCh1wywCx&biw=1366&bih=641"><div class="verifyage4">I am under the age of 18</div></a> </div> </div> <section id="sns_wrapper"> <noscript> <div class="global-site-notice noscript"> <div class="notice-inner"> <p> <strong>JavaScript seems to be disabled in your browser.</strong><br /> You must have JavaScript enabled in your browser to utilize the functionality of this website. </p> </div> </div> </noscript> <script> $(document).ready(function () { // activate cookie cutter $.cookieCuttr({ cookieDeclineButton: true, cookieAnalyticsMessage: "We use cookies, just to track visits to our website, we store no personal details." }); }); if (jQuery.cookie('cc_cookie_decline') == "cc_cookie_decline") { } else { var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-2942085-7']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); } </script> <script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script> <?php echo $oscTemplate->getBlocks('header_tags'); ?> <?php //#AZ AlgoZone CSS and JSS inclusions $template->az_tmpl_css(); $template->az_tmpl_js(); //#AZ ?> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-6xxxxx68-1', 'auto'); ga('send', 'pageview'); </script> </head> Tomas Link to comment Share on other sites More sharing options...
tgely Posted June 27, 2015 Share Posted June 27, 2015 Fancybox is out of date. Upgrade to colorbox. osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
zviruss Posted June 27, 2015 Author Share Posted June 27, 2015 Thanks, I do not have time to change produc_info.php which is quite different that the original coded osc file. Fancybox works ok as long as I remove all cookies related scripts... I need them more than fancybox script... The question is why some of the JSs disable others?? This is what is happening right now. Link to comment Share on other sites More sharing options...
zviruss Posted June 27, 2015 Author Share Posted June 27, 2015 Well, after struggling a LOT i have a fix: moved this: <link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" /> <script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script> just before the: </head> All Java Scripts work ok now.... Strange.... Cheers, Tomas Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.