Jump to content

How to add javascript and css to HTML template?


Recommended Posts

I have an HTML template for my ebay products.

The code have multiple <script> and <style> lines, when template is save automatically add [CDATA on my code and show this error when sync:

 

Texte d'erreur XML : "; nested exception is: org.xml.sax.SAXParseException: The element type "Description" must be terminated by the matching end-tag "".".
; nested exception is: org.xml.sax.SAXParseException: The element type "Description" must be terminated by the matching end-tag "". 

 

Any help, please?

Howto add javascript and inline css?

 

Share this post


Link to post
Share on other sites

you can use free html box module to add this script

 

install it, then open configuration page of this addon

 

from the left hand side block select "Header" as a position where you want to insert your code.

to the right hand side block paste your code and hit save button

 

after that you will not see [CDATA  anymore

Share this post


Link to post
Share on other sites

Don't work for me, this happens when I put the code in the module section in Ebay Html Template.

 

1.- Put HTML code and save

2.- when the module detects javascript or sytle, the module automatically adds [CDATA

3.- If you have [CDATA in your template code an error occurs when sync products

 

post-742915-0-69199100-1388696857_thumb.jpg

Share this post


Link to post
Share on other sites
  • 2 years later...

I'm doing sync and had the same problem. Hope this will help someone:

  1. go to phpmyadmin
  2. find ps_ebay_configuration
  3. modify column EBAY_PRODUCT_TEMPLATE

There you can enter scripts and links to css

Be carefull about scripts baceuse not all of them can be placed in ebay

Here is a great tutorial:

http://www.codentalk.com/add-nivo-slider-in-ebay-store-header/

 

sklepy internetowe Krakow

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More