X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Change Admin Images (https://forum.x-cart.com/showthread.php?t=72439)

CenturyPerf 07-14-2015 11:40 AM

Change Admin Images
 
What is the easiest way to change images in the admin area of XC5?

Admin Login Logo at the upper center of page (and text below it)
Upper left Logo

/skins/admin/en/images/logo.png
/skins/admin/en/images/logo_admin.png

I tried changing the images themselves and redeployed the store, but the images remain the same. I used the same image names, renaming the original images.

It would be great to be able to modify it within "look and feel" as custom CSS or something.

razortw 07-15-2015 02:33 AM

Re: Change Admin Images
 
Quote:

Originally Posted by CenturyPerf
What is the easiest way to change images in the admin area of XC5?

Admin Login Logo at the upper center of page (and text below it)
Upper left Logo

/skins/admin/en/images/logo.png
/skins/admin/en/images/logo_admin.png

I tried changing the images themselves and redeployed the store, but the images remain the same. I used the same image names, renaming the original images.

It would be great to be able to modify it within "look and feel" as custom CSS or something.


Hello.
Admin area can not be customized via Custom CSS, it only affects the front-end template.
I assume that you are referring to this image
http://i.gyazo.com/f7b19db0a7abe4dc72c87f694b9d0d87.png
It is drawn via SVG.
You should modify the /skins/admin/en/main_center/page_container_parts/header_parts/logo.tpl template to change the logo.

CenturyPerf 07-15-2015 07:40 AM

Re: Change Admin Images
 
Oddly enough,

Whatever changes made to that template file make not one bit of difference.

Whether SVG displays the image or not, if I modify the original image it should change the image when SVG processes it, correct?

razortw 07-15-2015 09:50 AM

Re: Change Admin Images
 
Quote:

Originally Posted by CenturyPerf
Oddly enough,

Whatever changes made to that template file make not one bit of difference.

Whether SVG displays the image or not, if I modify the original image it should change the image when SVG processes it, correct?


I mean you should change the actual URL of the logo.
Replace this
Code:

<div class="logo"><a href="{buildURL()}">{getSVGImage(#images/logo.svg#):h}</a></div>
with something like this
Code:

<div class="logo"><a href="{buildURL()}"><img src="https://www.google.ru/images/srpr/logo11w.png" /></a></div>

CenturyPerf 07-16-2015 10:34 AM

Re: Change Admin Images
 
Unfortunately, that does NOT change the image.

I can insert a relative or full URL and the image does not change. I can open the edited image in the web browser (using its original path--see below), but it will not change within the admin console.

The expected result after I DELETE (rename) or MODIFY the original image it would change the image by default. That is what SHOULD occur and would be considerably easier than all of these failed code edits.

original image:
/public_html/skins/admin/en/images/logo.png

Renamed to logo.png.original
Replaced by image of identical size and name (logo.png)



IMAGE DOES NOT CHANGE IN ADMIN!!! Where else is the original image hiding and preventing changes?

cflsystems 07-16-2015 10:54 AM

Re: Change Admin Images
 
Do you have cache for images on? This could be the reason.

CenturyPerf 07-16-2015 11:02 AM

Re: Change Admin Images
 
I believe cache for images is ON.

However, these images (admin side) do not exist in the /var directory and I also tried redeploying the store.

cflsystems 07-16-2015 11:04 AM

Re: Change Admin Images
 
It may be just your browser using local cached version of the page

CenturyPerf 07-16-2015 11:37 AM

Re: Change Admin Images
 
I thought of that too. Tried three different browsers, and cleared cache in each before and after each attempt.

razortw 07-18-2015 10:19 AM

Re: Change Admin Images
 
Quote:

Originally Posted by CenturyPerf
I thought of that too. Tried three different browsers, and cleared cache in each before and after each attempt.


You should re-deploy your store after editing the template to apply this change.


All times are GMT -8. The time now is 10:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.