Zen Cart Logo
Forums / General Questions / Firefox oddity

Firefox oddity

Locked

Views: 947

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
29 Jul 2008, 3:40 PM
#1
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Firefox oddity

I'm using Zen Cart as a CMS for a site I'm doing for my nephew. We're in the rough first stages of designing the site or I'd post the URL (I may have to anyway).

It looks fine in IE, but when viewed in Firefox, the "new products" sidebox appears to list the title of each item twice. I happens with both the classic and Future Zen templates. It seems Firefox is displaying the Alt text as well as the title. Any ideas on how to get it to stop? :blink:

29 Jul 2008, 3:46 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Firefox oddity

If you Validated the HTML for the page(s) in question, then best to provide a URL so we can see what you see.

29 Jul 2008, 3:53 PM
#3
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,591
Plugin Contributions:
0

Re: Firefox oddity

Are you using images for the products?

29 Jul 2008, 4:27 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Firefox oddity

No, the "products" are all document general without images.

29 Jul 2008, 4:45 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Firefox oddity

I just ran the HTML validation in Firefox and it comes up clean. :blink:

29 Jul 2008, 6:54 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Firefox oddity

Since it seems to want a product image, I've tried a couple of different things.

  1. I modified includes/modules/sideboxes/future_zen/whats_new.php and includes/templates/future_zen/sideboxes/tpl_whats_new.php to remove the references to images. No joy.

  2. I added pixel_trans.gif as the image for the "products". Still no joy.

29 Jul 2008, 8:37 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Firefox oddity

I've removed pixel_trans.gif as the product image since it displays the "larger image" link if it's there. :blink:

I don't know if he'll want images. The "products" are his published newspaper articles. I'm still hunting on how to get Firefox to knock it off. :D

30 Jul 2008, 3:51 AM
#8
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Firefox oddity

I found that I neglected to upload includes/templates/future_zen/sideboxes/tpl_whats_new.php, but the change I made has wiped out the display of the "what's new" sidebox and the "information" sidebox. Back to the drawing board...

30 Jul 2008, 1:56 PM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Firefox oddity

:clap:

I knew if I bashed around enough, I'd figure this out. It wasn't graceful, but I finally got there. I'm memorializing it here so when I want to do it again, I can find the solution. :D

includes/templates/future_zen/sideboxes/tpl_whats_new.php

Change

    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);

to

    $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($random_whats_new_sidebox_product->fields['master_categories_id']) . '&products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields[' '], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);

DUH!