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

js Ultimate & bretteleben slideshows doesn't run from inside x-cart 4.4.3

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 06-09-2011, 04:23 AM
 
frontliner frontliner is offline
 

Advanced Member
  
Join Date: Apr 2011
Location: Mons - Belgium
Posts: 53
 

Default Re: js Ultimate & bretteleben slideshows doesn't run from inside x-cart 4.4.3

Thank you very much guys !!!!

IT WOOOOORKS !!!!

...it worked in just two minutes : Problem was simply wrong default folder for the js file (or not defined).

Now, i moved all slideshow files + images in a unique folder at root and corrected the paths in only 5 minutes.

Maybe i should ask your help more early and not loose so much time turning around the problem by myself.

Just did not know that the default folder for execution of scripts is the root folder (thought it was near the file calling it)

Thank you again for sharing your knowledge guys !!!
__________________
X-Cart Gold v4.4.3
Reply With Quote
  #12  
Old 06-11-2011, 07:10 AM
 
frontliner frontliner is offline
 

Advanced Member
  
Join Date: Apr 2011
Location: Mons - Belgium
Posts: 53
 

Default Re: js Ultimate & bretteleben slideshows doesn't run from inside x-cart 4.4.3

Balinor,

I've just noticed that when i go for any other page than homepage, i get the error : "DIV ID wiht fadeshow1 not found on page !"

So, i reminded your post http://forum.x-cart.com/showpost.php?p=193517&postcount=15 in reply to Fotodog where you adviced to insert a condition to call the slideshow to be displayed only onto the homepage.

First, as the code from my version is a little bit different i created a new js file (called callfadeslideshow.js) to move there all data related to the slideshow. However, differently to the path you specified ($skindir), i prefered to specify the same root directory where i have already stored fadeslideshow.js and images (to group all together).
It did not work... (btw is it allowed for a js file to call for another js file because v2.4 fadeslideshow has already one js file ?)


Then i tried to move callfadeslideshow.js to $skindir value as you stated... but problem is i'm not sure what is the current skindir (/skin ? /skin/2columns ? the one i'm currently using)... i tried both but could not have te slidshow working again, unfortunately

So, i restored my working code to customer/home.tpl and inserted your condition at first line and closed all existing code by the {/if} at the end.

I could not simplify it more while keeping my working code...

...but it still doesnt't work and this time i see in header just over the search bar :
Code:
{if $main eq "catalog" and $current_category.category eq ""} {/if}
which is the condition code in clear but without the scripts lines.

So, i don't understand again what happens here.

Can you help again, otherwise i get an error on any other page than homepage ?

I understand i have now to learn how js structure work in details to be able to go further...

Please help.
Thanks.
__________________
X-Cart Gold v4.4.3
Reply With Quote
  #13  
Old 06-11-2011, 07:43 AM
 
frontliner frontliner is offline
 

Advanced Member
  
Join Date: Apr 2011
Location: Mons - Belgium
Posts: 53
 

Default Re: js Ultimate & bretteleben slideshows doesn't run from inside x-cart 4.4.3

...i found myself : condition has to be outside of {literal}js code{/literal} now it works.

However, how to migrate the whole code into a js file to keep the home.tpl code clean ?

Can i call a the DD script fadeslideshow.js from another js file ?

Thanks.
__________________
X-Cart Gold v4.4.3
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:42 PM.

   

 
X-Cart forums © 2001-2020