Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

NO chance to integrate javascript. Why?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-19-2012, 09:48 AM
  pdstudio's Avatar 
pdstudio pdstudio is offline
 

Member
  
Join Date: Dec 2009
Location: Hungary / Sopron
Posts: 28
 

Exclamation NO chance to integrate javascript. Why?

Hy to all,
I have a big problem with the X-Cart I want to edit. At first I wanted to build in a JS driven xml slider (Nivo-slider). I have learned the {literal}, the way how to insert it and where I could put it when I want it only on certain pages. The js and css files were loaded directly into the <head> and the container <div> to the <body>, the JS was complete but the content was not loaded into the container <div>.
At second I wanted to implement the Facebook comments, and there was the same. The js was okay, the < fb:comments> container was on place but it was empty. On the administration area I have found the Socialize module and was like 'oh god, thanks for this, all my problems are solved', so I turned it on, went to the frontend and after a refresh there wasnt anything (this time the rating stars were also disappeared...).
Im stuck with this problem. I havent got any idea why these are not working. I use the 3-column layout template without any huge modifications (mostly I have customized the css).
Can somebody help me please?
Thank you forwards!

Laszlo Horvath
__________________
X-Cart 4.4.4
http://matricamagnes.hu/
Reply With Quote
  #2  
Old 02-19-2012, 10:49 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: NO chance to integrate javascript. Why?

The socialize mod is showing on the site in your signature. I see FB, G+, addthis
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 02-19-2012, 10:58 AM
  pdstudio's Avatar 
pdstudio pdstudio is offline
 

Member
  
Join Date: Dec 2009
Location: Hungary / Sopron
Posts: 28
 

Default Re: NO chance to integrate javascript. Why?

On the detailed product page of my site, the Facebook/G+/AddThis was pasted by me, not by the Socialize mod. But the AddThis insertion can't be the bad guy, because I have deleted it and still after this was all the same. So what I just wanted to say is, I'm sure that my problems arent caused by the AddThis code.
__________________
X-Cart 4.4.4
http://matricamagnes.hu/
Reply With Quote
  #4  
Old 02-23-2012, 02:59 AM
  pdstudio's Avatar 
pdstudio pdstudio is offline
 

Member
  
Join Date: Dec 2009
Location: Hungary / Sopron
Posts: 28
 

Default Re: NO chance to integrate javascript. Why?

Okay, I got help from the customer service. The solution was to call the javascripts in the service_js.tpl at the end. The main problem was that I've called the scripts BEFORE the jQuery library was loaded and so they were not working.

For the Socialize mod:
I use a Facebook FanBox on the site and it calls his own Facebook API js that was conflicting with the js that is called by the Facebook comments plugin.
So I put the js of my FanBox in if statement and It now not oaded where the Socialize mod is active.
__________________
X-Cart 4.4.4
http://matricamagnes.hu/
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:18 PM.

   

 
X-Cart forums © 2001-2020