HELP! Head script causing problems...

User 2539483 Photo


Guest
8 posts

I want to add some script into the head of my site for a slide show on the home page. The problem is that if I insert the code into the head (via your shop/custom markup), the shipping options selected by customers dont add to the total in the cart without refreshing via 'Update Cart'

As soon as I remove the script, everything is fine...

How do i get round this affecting the cart?

See the script below:

<!-- Start VisualSlideShow.com HEAD section -->
<link rel="stylesheet" type="text/css" href="http://www.nilarubia.co.uk/engine/css/slideshow.css" media="screen" />
<style type="text/css">.slideshow a#vlb{display:none}</style>
<script type="text/javascript" src="http://www.nilarubia.co.uk/engine/js/mootools.js"></script>
<script type="text/javascript" src="http://www.nilarubia.co.uk/engine/js/visualslideshow.js"></script>
<!-- End VisualSlideShow.com HEAD section -->
User 2147626 Photo


Ambassador
2,958 posts

Sometimes scripts simply conflict. That may or may not be the case here. Some scripts require running before other scripts on a page. Is this the only thing in the <head> ? If so, you may still have a problem. If not, then try entering this script before or after anything else and see if it makes a difference. If this is the only thing in the head you may have to hang tight till one of the better coders chimes in. I'm sure someone can help you figure this out.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 187934 Photo


Senior Advisor
20,271 posts

Looks to be a JQuery conflict.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2539483 Photo


Guest
8 posts

As this is the coffee cup shopping cart creator I dont have any control over where the script goes, its just a box that you get in Shopping Cart Creator that allows you to insert custom markup into the head of each page.

Thats the problem here, any markup you insert goes into the head of every page in the site.

Maybe I can put the slide show on a stand alone page outside the shop website, and then insert it into the shop homepage within a frame, then the head script wouldn't screw up the shipping page.
User 187934 Photo


Senior Advisor
20,271 posts

Try this method.
http://progrower.coffeecup.com/shop/vie … groupid=31
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2539483 Photo


Guest
8 posts

Thats the sort of thing im looking for -great!
As long its stable across all browsers this should do the trick.
I wil let you know how I get on.

Thanks Eric.
User 187934 Photo


Senior Advisor
20,271 posts

Your Welcome. Have fun.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2539483 Photo


Guest
8 posts

Great looks OK I just need to create a transparent border around the slide show as the text is too close but I cant seem to do this. Tried changing a few thing but made no difference. What would I change in the script to create this?

www.nilarubia.co.uk
User 2539483 Photo


Guest
8 posts

I even tried (in desparation) putting a small white strip down the right side of each image in the hope that this would create the small space im looking fo but for some reason this has made no difference! Is the reason for this a z-index thing? Anyway anything to create a space would be good but would reallty need to be transparent if it was going all the way round.

Check it out below:
www.nilarubia.co.uk
User 2539483 Photo


Guest
8 posts

Stupid me! iframe width-- Derrrrrr. Now its fine....

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.