Post by aaron1988 » Mon May 16, 2011 10:22 pm

Hi i wondered if someone could help me.

In IE8 / IE7 and Chrome i have added an option for Fonts and i have created images for the fonts and when you choose the font it is meant to change to that image it worksi n FF and IE9 but when viewed in Ie8, Ie7 and Chome and probably opera and safari the images do not show for any of the personalizations? and have no clue why.

If someone could enlighten me on this it would be good the url is:

http://bluegeeks-testserver.co.cc/jacly ... oduct_id=1

EDIT: sorry i have only created an image for the AirStrip font, Also i have been reading and it says onclick event handlers dont work in IE or goog,e Chrome so this is the code which is effecting me:

Code: Select all

<?php if($option['mode'] == "select"){ ?>
                      <select name="option[<?php echo $option['option_id']; ?>][]"id="option[<?php echo $option['option_id']; ?>]"<?php echo $option['option_value'][0]['extra']['reqd'] == '1' ? ' validate="required:true"' : ''; ?><?php echo isset($option['option_value'][0]['extra']['allowmultiple']) && $option['option_value'][0]['extra']['allowmultiple'] == '1' ? ' multiple="multiple"' : ''; ?><?php echo isset($option['option_value'][0]['extra']['list_height']) ? ' size="'.$option['option_value'][0]['extra']['list_height'].'"' : ''; ?>>
                        <?php foreach ($option['option_value'] as $option_value) { ?>
                        <option value="<?php echo $option_value['option_value_id']; ?>" <?php echo (isset($option_value['option_image']) && !empty($option_value['option_image']) ? 'onchange="getPreview(\''.$option_value['option_image_thumb'] .'\', \''.$option_value['option_image_popup'] .'\');"' : ''); ?><?php echo $option_value['name']; ?>
                        <?php if ($option_value['price']) { ?>
                        <?php echo $option_value['prefix']; ?><?php echo $option_value['price']; ?>
                        <?php } ?>
                        </option>
                        <?php } ?>
                      </select></td>
                    <?php } //end if select ?>
and the javascript for this i believe is:

Code: Select all

<script type="text/javascript"><!--
function getPreview(image,popup){
$('#image').attr('src', image); //return a preview file
$('a.thickbox').attr('href', popup); //return a preview file
}
//--></script>
Regards,
Aaron

Aaron

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by aaron1988 » Tue May 17, 2011 7:14 pm

Sorry for the bump but does anyone know how to change the code to work with IE7, IE8 :( i know its probably jquery but i not sure how to change the code to work for jquery

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by traceofwind » Tue May 17, 2011 8:47 pm

Hi Aaron,

Just noticed another user had a similar problem but posted a juicy something for you -it's not a solution but it might be of interest: that image changes work across browsers when you use radio buttons.

Maybe change that drop down to a list of radio buttons?

As a user I'd actually prefer to see a list of radio buttons for those particular options... makes the site feel more 'sticky', more interactive -if you catch my drift? :)

Here was his post: http://forum.opencart.com/viewtopic.php?f=112&t=27889

All the best!

Gary

New member

Posts

Joined
Fri Jul 02, 2010 6:37 am

Post by aaron1988 » Tue May 17, 2011 9:28 pm

Yes i looked at that thanks :) i no why doesnt work with IE or Chome and its because Ie doesnt recognise the onClick event handler on select boxes so it needs to be implemented with jquery .click function or something and thats where i am stuck lol

Regards,
Aaron

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by traceofwind » Tue May 17, 2011 9:32 pm

Ah righto! Good luck with that, maybe you should try a jquery forum?

On another note, did you ever hear back from the GMO author? Sadly he seems to be on a sabbatical! ;(

Gaz

New member

Posts

Joined
Fri Jul 02, 2010 6:37 am

Post by aaron1988 » Tue May 17, 2011 9:34 pm

Well i rang him today and it was like 22:18 there lmao as hes in australia so i spoke to him and hes going to look into it. and for the CSV import for it he hasnt done it yet but he will soon he said in an email

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by traceofwind » Tue May 17, 2011 9:43 pm

Well played, both of you!

Keep us posted!!

New member

Posts

Joined
Fri Jul 02, 2010 6:37 am

Post by aaron1988 » Tue May 17, 2011 10:35 pm

thanks

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am
Who is online

Users browsing this forum: No registered users and 3 guests