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

adding custom jquery

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-11-2011, 02:44 PM
 
spiderling spiderling is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 45
 

Default adding custom jquery

I am using a trial version of X-Cart Gold 4.4.2 and would like to add some custom jQuery code for a CSS / jQuery sub menu navigation. I've tried <script src="http://www.domainname.com/foldername/filename.js"></script> in the <head> tag in the /skin/common_files/customer/service_head.tpl file, but no luck.

How would I do this, please?
__________________
2 - X-Cart Gold 4.4.2
1 - X-Cart Gold 4.4.4
Reply With Quote
  #2  
Old 04-11-2011, 03:47 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: adding custom jquery

In /skin/skinName/customer/service_js.tpl add some code like this after the jquery call:
Code:
{load_defer file="js/YourJSFile.js" type="js"}

Put your JS file in /skin/skinName/js/
__________________
- Shane Munroe
Reply With Quote

The following 2 users thank Shamun for this useful post:
ambal (04-11-2011), spiderling (04-11-2011)
  #3  
Old 04-12-2011, 09:08 AM
 
waytoecommerce waytoecommerce is offline
 

Newbie
  
Join Date: Apr 2011
Posts: 5
 

Default Re: adding custom jquery

There is other way to do this which to include your file at the home.tpl file. If you will include it on the other place automatically the codes will strip off.
__________________
http://www.waytoecommerce.com/
Ecommerce Development | Online Shop Development
Reply With Quote

The following 2 users thank waytoecommerce for this useful post:
ambal (04-12-2011), spiderling (04-13-2011)
  #4  
Old 04-19-2011, 11:15 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: adding custom jquery

I have added a custom jquery for category in the place of horizontal menu bar but it will conflict with product detail's tab.

How to resolve this conflicting issue in 4.4.2??
__________________
4.6.1 Platinum


Reply With Quote
  #5  
Old 04-20-2011, 10:29 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: adding custom jquery

What's the reported conflict?
__________________
- Shane Munroe
Reply With Quote
  #6  
Old 04-20-2011, 09:17 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: adding custom jquery

Hi Shamun,
Thanks for your reply.
When I add custom jquery in the place horizontal category navigation it works fine but the product details tab vanishes and after adding add to cart mini cart is not showing.

Have there any cookie issue??

Why this problem?

Can you help me??
__________________
4.6.1 Platinum


Reply With Quote
  #7  
Old 04-21-2011, 02:05 AM
  ambal's Avatar 
ambal ambal is online now
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,121
 

Default Re: adding custom jquery

Moved to X-Cart Customization > Storefront Design & Template Editing in v 4.4.x
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
Reply With Quote
  #8  
Old 04-21-2011, 05:13 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: adding custom jquery

Your custom jquery my be referencing same classes or id's for elements, make sure they are not in use by some other elements
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 06:53 AM.

   

 
X-Cart forums © 2001-2020