Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to Change the Store Logo

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-04-2012, 11:47 PM
 
Marcy Marcy is offline
 

Advanced Member
  
Join Date: Feb 2012
Posts: 50
 

Default How to Change the Store Logo

Hello-

I feel like this should be basic, but I am having a very hard time with this. I am using this information from the manual:

-----

To replace the logo:

If the filename of your company logo is different to the filename of the default logo.
Log in to the Admin area and go to the Edit templates section (Administration menu -> Edit templates).
Use the Browse templates form to locate the folder where you want to keep the file with logo. It can be either the directory with the default logo file (see the table) or any other location inside the images/ directory.
After you choose where to keep your company logo, find section Upload file to the current directory at the bottom of the form and click the Browse button to open a file upload dialog window.
Locate the image file with your company logo and choose it for the upload.
Click the Upload button to upload the file to the current directory.
Click on the Edit templates breadcrumbs link at the top of the page to go back to the root skin directory skin1/.
In the Browse templates form go to the folder customer and click on the head.tpl link to open the respective file for editing.
In the Edit file form, find the following code:
<div class="logo">
<a href="{$catalogs.customer}/home.php">
<img src="{$ImagesDir}LOGO_PATH_AND_FILENAME" alt="" />
</a>
</div>
and replace the LOGO_PATH_AND_FILENAME part with the the relative path to the directory where your company logo is located and the logo filename. For example, if the image file with the logo is located in the directory <xcart_dir>/skin1/images/custom and its name is custom_logo.gif, the LOGO_PATH_AND_FILENAME part must be replaced with /custom/custom_logo.gif.
Click the Save button for the changes to take effect.

---


My logo is called "logo.jpg"

I uploaded it to skin/fashion_mosaic_grey/images/custom
AND
to skin/common_files/images

I edited the file "head.tpl" located at

skin/fashion_mosaic_grey/head.tpl
AND
skin/common_files/customer/head.tpl


I changed <img src="{$ImagesDir}LOGO_PATH_AND_FILENAME" alt="" />

to <img src="{$ImagesDir}/custom/logo.jpg"> in the fashion_mosaic_grey folder
AND
to <img src="[$ImagesDir}/logo.jpg"> common_files folder.

However the image doesn't change. I still have the stock x-Cart image. Can someone tell me what I'm doing wrong? I'm ready to pull my hair out!

Thank you!
Marcy
__________________
X-Cart Gold 4.4.5
No add-ons
Reply With Quote
  #2  
Old 02-05-2012, 06:57 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: How to Change the Store Logo

Type www.yourdomain.com/cleanup.php into your browser. This will clear the cache and when you refresh the page any changes will be displayed.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 02-05-2012, 07:07 AM
 
Marcy Marcy is offline
 

Advanced Member
  
Join Date: Feb 2012
Posts: 50
 

Default Re: How to Change the Store Logo

Quote:
Originally Posted by JWait
Type www.yourdomain.com/cleanup.php into your browser. This will clear the cache and when you refresh the page any changes will be displayed.

I had cleaned the cache but I tried this as well.

It's still displaying the stock generic logo.

-Marcy
__________________
X-Cart Gold 4.4.5
No add-ons
Reply With Quote
  #4  
Old 02-05-2012, 07:14 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: How to Change the Store Logo

Also...
<img src="{$ImagesDir}/custom/logo.jpg"> in the fashion_mosaic_grey folder should be
<img src="{$AltImagesDir}/fashion_mosaic_grey/custom/logo.jpg">.

Since you have already defined your skin any files in the common_files directory that are also in the (fashion_mosaic_grey) skin directory are no longer used.

Also be aware that the One Page Checkout and Fast Lane Checkout use different headers so you will need to change whichever one you use as well.
<img src="[$ImagesDir}/logo.jpg"> common_files folder.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
Marcy (02-05-2012)
  #5  
Old 02-05-2012, 07:16 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: How to Change the Store Logo

Oh, and you will probably need to adjust the size in your fashion_mosaic_grey altskin.css. It should be under #header .logo
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
jpactbnb (06-22-2012)
  #6  
Old 02-05-2012, 07:22 AM
 
Marcy Marcy is offline
 

Advanced Member
  
Join Date: Feb 2012
Posts: 50
 

Default Re: How to Change the Store Logo

Quote:
Originally Posted by JWait
Also...
<img src="{$ImagesDir}/custom/logo.jpg"> in the fashion_mosaic_grey folder should be
<img src="{$AltImagesDir}/fashion_mosaic_grey/custom/logo.jpg">.

I changed this but the stock logo is sill showing. I used the cleanup.php URL shown above and a forced refresh.
__________________
X-Cart Gold 4.4.5
No add-ons
Reply With Quote
  #7  
Old 02-05-2012, 07:29 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: How to Change the Store Logo

Can you PM me a link to your store?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
Marcy (02-05-2012)
  #8  
Old 02-05-2012, 07:48 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: How to Change the Store Logo

Your source says it is pulling the image from
<img src="/skin/common_files/images/fashion_mosaic_grey/custom/logo.jpg">
when it should be
<img src="/skin/fashion_mosaic_grey/images/custom/logo.jpg">

Do you have a "fashion_mosaic_grey" folder inside your "common_files" folder?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
Marcy (02-05-2012)
  #9  
Old 02-05-2012, 07:56 AM
 
Marcy Marcy is offline
 

Advanced Member
  
Join Date: Feb 2012
Posts: 50
 

Default Re: How to Change the Store Logo

Quote:
Originally Posted by JWait
Your source says it is pulling the image from
<img src="/skin/common_files/images/fashion_mosaic_grey/custom/logo.jpg">
when it should be
<img src="/skin/fashion_mosaic_grey/images/custom/logo.jpg">

Do you have a "fashion_mosaic_grey" folder inside your "common_files" folder?

No I don't. But I added the fashion_mosaic_grey folder in based on advice above.

I'm editing the file at /skin/fashion_mosaic_grey/customer/head.tpl.

This is what I have:

<img src="{$ImagesDir}/fashion_mosaic_grey/custom/logo.jpg" alt="" />

I suppose this means ha [$ImagesDir} is pointing to the image directory in the common_files area not in the specific fashion_mosaic_grey area.


Addendum: I updated so that there is a file at the location pointed to. In the source it says it is pulling the image from "<img src="/skin/common_files/images/custom/logo.jpg"> and I do have the correct image there. But it isn't displaying the custom image. :-/
__________________
X-Cart Gold 4.4.5
No add-ons
Reply With Quote
  #10  
Old 02-05-2012, 08:01 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: How to Change the Store Logo

Try <img src="{$AltImagesDir}/fashion_mosaic_grey/custom/logo.jpg" alt="" />.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:26 PM.

   

 
X-Cart forums © 2001-2020