View Single Post
  #1  
Old 11-17-2011, 04:31 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default put content of Extra Field into the <head> ?

I'm building a site in 4.4.4 and I have to use an audio player on each product page that is HTML5 compliant (with flash fallback).

Considering 42% of my customers use an iPad or iPhone to read my marketing emails (stat thanks to mailchimp!) - only having a flash/swf dependent audio player will be stupid.

SO many great audio players, but not very many are HTML5 compliant, and can embed an audio player for iPad or iPhone (without popping up the quicktime player, which I do not want!)

I found jPlayer jplayer.org/ - and that seems to do the trick, but it wants the /path/to/audio/content to be placed in a script in the <head>

Is this even possible with x-cart? I thought extra fields had to go into the <body>, yes?

Has anyone every put an extra field into the <head> section? How? Examples?

Thanks,

J

PS -- if anyone has a better solution for an audio player??? -- I need an audio player that is: iPad/iPhone compliant (to embed) and has a flash fallback for non-HTML5 browsers. .ogg or .m4a or .mp3 for audio, and each product will have Extra Fields with the path to the audio files. Surely this is a wheel that doesn't have to be invented? Thanks.

PPS -- looks like jPlayer CAN have the player <script> in the page <body> -- so that means Extra Fields will work here... it';s gonna be a late night!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote