| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
replace javascript in catalog pages with call to external js | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() When I generate the html catalog pages, I'd like to replace the large block of javascript with a call to an external javascript file. From what I understand, the one line call to an external js file is better for SEO than the really long block of javascript code as it is now.
I looked at the admin/html_catalog.php file but could not make heads/tails of it for what I want to do. ![]() Can anyone point me in the right direction? Thanks, Scott
__________________
Version 4.0.12 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Hey, someone online here mailed me about whether or not I'd gotten this working. The answer is no - not a peep from anyone about how to do it.
Basically, I put the whole issue on back burner. I would still like to accomplish this. Can anyone on the XCART team point me in the right direction? Great product... I'm a little surprised posts like mine can get several months old without *any* reply whatsoever... I didn't think it was *that* bad of a request. -scott
__________________
Version 4.0.12 |
|||||||||
#3
|
|||||||
|
|||||||
![]() any news so far?
__________________
Version 4.0.17 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() NO, I have never received a reply - positive or negative - to my question. So far as support for the product, the forums are useless. I've basically given up on getting an answer from anyone who is part of the "XCART TEAM".
H*ll, even if they replied - don't know and not working on it - it would be better than totally being ignored. Or even, hey, "you posted to the wrong place" or "hey, you have to pay for an answer" - but NOTHING. CUSTOMER SUPPORT = BIG FAT ZERO on this one. Guess I'm lucky it hasn't been mission critical.
__________________
Version 4.0.12 |
|||||||||
#5
|
|||||||
|
|||||||
![]() Remember, this board is run by users, not X-Cart themselves. If you want a guaranteed response, best to open a ticket with X-Cart.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||||
|
|||||||||
![]() For the benefit of the forums here, I recommend someone looking to make sure posts just don't fall through the cracks without ever getting a reply.
It is confusing to post on a form on x-cart.com and never hear anything at all. I appreciate your post. I'm disappointed it took a crappy message like I posted minutes ago in order to get a reply. Back to the topic at hand, now that there is some activity... any ideas on the original question? I think there are at least three of us interested from the mail I have received and the additional post on the forum. Thanks in advance, Scott
__________________
Version 4.0.12 |
|||||||||
#7
|
|||||||
|
|||||||
![]() Scott,
Do you have any idea how many posts are added here each day? There are over 7000 users of this forum, and 3 VOLUNTEER moderators. We try to keep things running smoothly, but there is absolutely no way we are going to guarantee an answer to every post. As with most forums, 99% of the members here want immediate help, but don't ever give anything back to the community. The 1% of people who do can only do so much. On top of that, if no one has an answer to your question, you obviously aren't going to get an answer, which is what probably happened with this post. If I had an answer for you, I'd be happy to help, but I don't. As I said above, if you want a guaranteed answer, post a ticket in your X-Cart help desk.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
![]() Hi Ryan,
this is the what is in the home.tpl I am guessing the javascript is this if $body_onload ne ''} onload="{$body_onload}"{/if} if so where do you think I can find this tag so i can change it to a .js file <BODY leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0"{if $body_onload ne ''} onload="{$body_onload}"{/if}> { include file="rectangle_top.tpl" } { include file="head_customer.tpl" } {if $active_modules.SnS_connector} {include file="modules/SnS_connector/header.tpl"} {/if}
__________________
Version 4.0.17 |
|||||||
#9
|
|||||||
|
|||||||
![]() i think i found the file it is
common_js.tpl now how do I call it as <SCRIPT src="common.js"></SCRIPT>
__________________
Version 4.0.17 |
|||||||
#10
|
|||||||||
|
|||||||||
![]() This should do the trick...
Code:
Code:
I have NOT tested this extensively (just a few clicks around my local install) but I can't see any reason why it wouldn't work... Also FYI to echo balinor's comment - you can't exactly enter a forum and demand answers. 99% of this Forum is powered by other users with very little involvement from X-cart staff. Hang in there and usually someone will come through with an answer. If not perhaps no one has an answer just yet...
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|