View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006024 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2015-01-21 09:11 | 2015-02-24 15:51 |
| Reporter | d.bloessl | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | won't fix | ||
| Product Version | 4.9.2 / 5.2.2 | ||||
| Summary | 0006024: oxscript not working for ajax-requests | ||||
| Description | If you load a full page via Ajax (HTTP_X_REQUESTED_WITH == xmlhttprequest), the oxscript smarty tag does not render the scripts, added as includes. Problem is located in smarty_function_oxscript(), because $blAjaxRequest will be set to true, but it's not a widget request. This leads to big problems, if you are running a full page cache in front of your shop! | ||||
| Steps To Reproduce | I attached a test.php file, which can be put in the document root and where a path to a article detail page has to be put in. If you are testing with Azure theme, you will see, that the whole script-block is not in the source code anymore, after requesting it via AJAX. Completely missing: <script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/jquery.min.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/cookie/jquery.cookie.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/jquery-ui.min.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxcookienote.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxmodalpopup.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxfacebook.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/superfish/hoverIntent.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/superfish/supersubs.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/superfish/superfish.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/libs/cloudzoom.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxarticleactionlinksselect.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxrating.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxamountpriceselect.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/modules/oe/oepaypal/out/src/js/oepaypalonclickproceedaction.js"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxmorepictures.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxzoompictures.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxinputvalidator.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxreview.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxarticlebox.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxflyoutbox.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxloginbox.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxinnerlabel.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxtopmenu.js?1415871394"></script> <script type="text/javascript" src="http://azure.site/out/azure/src/js/widgets/oxequalizer.js?1415871394"></script> | ||||
| Additional Information | The bug is reproducable in an OXID EE 5.1.7 and OXID PE 4.9.2, I guess in all shops, that are using widgets. | ||||
| Tags | No tags attached. | ||||
| Attached Files | test.php (401 bytes)
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript">
$(document).ready( function() {
$.get('/Wakeboarding/Wakeboards/Wakeboard-LIQUID-FORCE-SHANE-2010.html', function(data) {
$('body').text(data);
});
});
</script>
</head>
<body>
</body>
</html> | ||||
| Theme | All | ||||
| Browser | All | ||||
| PHP Version | any | ||||
| Database Version | any | ||||
|
|
waiting for the PO decision |
|
|
Hi, We changed severity to feature, because it is more feature request. Our current implementation uses widgets for caching. From the first look, you are trying to implement custom caching solution, which is not using commong mechanisms provided by OXID eShop core. Please allow me to know the reasons behind it, so we could help. Best regards, Jurate |
|
|
no feedback from reporter for 2 weeks. closed. |