Zen Cart Logo
Forums / Customization from the Admin / Help still needed on this.

Help still needed on this.

Views: 2,261

Results 1 to 9 of 9
31 May 2015, 3:30 AM
#1
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Help still needed on this.

I followed the tutorial to add a logo to the invoice and packing slips as well as in the admin. after changing the needed files with the logo information the following happened:

First, on some admin pages, there is a large gap between the menu bar at the top and where the page actually starts. Some of the admin pages display properly.

Next when a product is added or modified and you click preview in the upper left of the preview is an exploded image of the UK flag where normally no graphic exists.

I am including screen shots of the 2 problems. I have double checked the changes I made and cannot see what would have caused these problems.

Attachment #15328

Attachment #15329

31 May 2015, 10:35 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help still needed on this.

Use the developers tool kit and search for "icon.gif"

Or replace /your_admin/images/icon.gif with a copy of pixel_trans.gif from your /images folder and rename it icon.gif then upload to /your_admin/images/

31 May 2015, 4:11 PM
#3
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Help still needed on this.

kobra:

Use the developers tool kit and search for "icon.gif"

Or replace /your_admin/images/icon.gif with a copy of pixel_trans.gif from your /images folder and rename it icon.gif then upload to /your_admin/images/

Thanks kobra, there was no icon.gif in my admin/images folder but copied pixel_trans.gif to the folder and renamed as icon.gif. However, doing that still has the exploded flag on the preview page of items.

31 May 2015, 4:22 PM
#4
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Help still needed on this.

Have you "right-clicked" and view image info to see the exact path/location of that exploded image?

/includes/languages/english/images/icon.gif

Note: there is no reference of any admin folder

If the raw image is correctly sized when opened, then the issue is most likely related to some customization you have made to the admin side of things.

31 May 2015, 6:44 PM
#5
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Help still needed on this.

RixStix:

Have you "right-clicked" and view image info to see the exact path/location of that exploded image?

/includes/languages/english/images/icon.gif

Note: there is no reference of any admin folder

If the raw image is correctly sized when opened, then the issue is most likely related to some customization you have made to the admin side of things.

Rick,

thanks, I verified the file location and it is as you stated and size has been unchanged. The changes I made to the admin were to follow the tutorial on adding company logo to the packing slips and invoices. Hence the following files were changed:

Firstly, my_admin/includes/languages/english.php was changed deleting the alt_text, logo_image filename and size to the company logo info

Secondly,

my_admin/includes/stylesheet.css to include:

.pageheading img {width:198px; height:112px}
@media print {.pageheading img {width:2.75in; height:1.55in}

Lastly, in my_admin/includes/header.php

<td align="left" valign="top" height="<?php echo HEADER_LOGO_HEIGHT; ?>" width="<?php echo HEADER_LOGO_WIDTH; ?>"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . zen_image(DIR_WS_IMAGES . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT)

These are the only changes I made to the admin, and the exploded icon is appearing on a page that usually is not there, so i am at a loss.

thanks in advance

31 May 2015, 7:08 PM
#6
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Help still needed on this.

It might be quicker to save your changes and restore the original admin files to get back to a known, out-of-the-box starting point. Then, add your changes back one at a time until it breaks. That is one thing I have learned over the past few years.... backup is my friend and restore is 2nd best friend.

I do not recall doing anything special to print our logo on invoices except to replace the stock zencart admin logo image with our logo image. I probably resized our logo image to somewhat fit within the size occupied by the stock zencart logo.

/MYADMINFOLDER/images/logo.gif

31 May 2015, 11:07 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help still needed on this.

However, doing that still has the exploded flag on the preview page of items.
Did you use the developers tool kit and search for "icon.gif"
I get this
/your_admin/languages.php

$contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . zen_draw_input_field('image', 'icon.gif')); 

You might try editing this file as follows

$contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>');

or also try commenting it out

//$contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . zen_draw_input_field('image', 'icon.gif'));

Also looking - this is where the image is
/includes/languages/english/images/icon.gif
You might replace it with pixel_trans.gif

This assumes that you do not require it for any language definition

31 May 2015, 11:29 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help still needed on this.

Skip last posting of mine
In your_admin/includes/modules/products/preview_info.php
Find this about line 108

<td class="pageHeading"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_output_string_protected($pInfo->products_name); ?></td>

Edit as follows

<td class="pageHeading"><?php echo zen_output_string_protected($pInfo->products_name); ?></td>

This has eliminated the display of the flag image on previewing product

1 Jun 2015, 3:31 AM
#9
dfontana avatar

dfontana

Zen Follower

Join Date:
May 2007
Location:
Conway, SC
Posts:
256
Plugin Contributions:
0

Re: Help still needed on this.

kobra:

Skip last posting of mine
In your_admin/includes/modules/products/preview_info.php
Find this about line 108

<td class="pageHeading"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_output_string_protected($pInfo->products_name); ?></td> ``` > Edit as follows > ``` <td class="pageHeading"><?php echo zen_output_string_protected($pInfo->products_name); ?></td> ``` > This has eliminated the display of the flag image on previewing product

Kobra, thanks, that fixed it. no more flag on the preview. Being I didn't modify that file, never would have found that.