| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Removing Javascript | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Removing Javascript
Does this js need to be in the header?
<script type="text/javascript"> <!-- var number_format_dec = '.'; var number_format_th = ''; var number_format_point = '2'; var store_language = 'US'; var xcart_web_dir = ""; var images_dir = "/skin1/images"; var lbl_no_items_have_been_selected = 'No items have been selected'; var current_area = 'C'; -->If so where is it at to link to it instead of it being on each page? I have tried to remove it and link to it but I get errors.
__________________
Cyber Matrix ------------------- X-Cart 4.1.9 |
|||||||||
#2
|
|||||||
|
|||||||
Re: Removing Javascript
Yes, you need it and it has to stay visible.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Removing Javascript
can this script be moved from presets_js.tpl to a .js file to remove it from the head html? If we have a site that only sells in the US, one language and one user type? Can we hard code it like this:
old code: Code:
new code stored in a whateveryounameit.js file Code:
and have the whateveryounameit.js file contain the following: Code:
What are the limitations? Thanks a bunch! bunnyburybaby
__________________
X-Cart Version 4.1.8 |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Removing Javascript
If it can be placed in a static form in an external .js file, could it be placed in the /skin1/common.js file?
__________________
X-Cart Version 4.1.8 |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Removing Javascript
Quote:
Sorry to ask about it (maybe a silly question) but I have just removed the content of this template (in a test site) and my cart seems to work perfect. Which is the problem about deleting this JS? Yours
__________________
X-Cart 4.1.5 PHP 4.3.9 Mysql 4.1 VPS CentOS 4.2 Mods: Too much... * Moving to 4.1.8 and to a dedicated server * |
|||||||||
#6
|
|||||||
|
|||||||
Re: Removing Javascript
Any conclusion to this? Can it be removed safely?
__________________
X-cart version 4.1.7 Apache/2.0.52 (CentOS) My SQL 5.0.58 PHP Version 5.1.6 |
|||||||
|
|||
X-Cart forums © 2001-2020
|