X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   NEW xcart template - xtreme Gear (https://forum.x-cart.com/showthread.php?t=60312)

albertchui 07-26-2013 08:33 AM

Re: NEW xcart template - xtreme Gear
 
i just wonder why Xtreme Gear does not respond and advise how to fix their problem, i sent them the support ticket and ft info, but never get respond. it's so frustrating that their skin does not like regular template file, like head.tpl, i don't know how to secure the logo images as i uploaded it in it's general setting of xg admin, below is their head.tpl, anyone advise how to change the path of logo image, many thanks


<!-- Header Begin -->
<div id="header-wrap">
{if $xg_top_logo}
<a href="{if $xg_config.top_logo_url ne ''}{$xg_config.top_logo_url}{else}/{/if}" {if $xg_config.top_logo_title ne ''}title="{$xg_config.top_logo_title}"{/if} {if $xg_config.top_logo_target ne ''}target="{$xg_config.top_logo_target}"{/if} id="logo-main"><img src="{$xg_top_logo.image_url}" {if $xg_top_logo.image_x ne ''}width="{$xg_top_logo.image_x}"{/if} {if $xg_top_logo.image_y ne ''}height="{$xg_top_logo.image_y}"{/if} {if $xg_config.top_logo_alt ne ''}alt="{$xg_config.top_logo_alt}"{/if} /></a>
{/if}
<div id="cart-info-panel">
<div class="info-panel">
{include file="customer/menu_cart.tpl" _include_once=1}
</div>
{include file="customer/search.tpl"}
<div class="header-text-xbanner {if $active_modules.XMultiCurrency ne ''}xmc{/if}">
{if $xg_config.promo_header ne ''}
<p>{$xg_config.promo_header}</p>

{/if}
{if $active_modules.XMultiCurrency ne ''}{include file="modules/XMultiCurrency/customer/complex_selector.tpl"}{/if}
</div>
</div>

{include file="customer/tabs.tpl"}


{include file="modules/TXS_Xtreme_Gear/xg_top_menu.tpl" type="xm_top_menu"}

</div>
<!-- Header End -->
{if $minicart_total_standalone}
{load_defer_code type="css"}
{load_defer_code type="js"}
{/if}

carpeperdiem 07-26-2013 08:50 AM

Re: NEW xcart template - xtreme Gear
 
Quote:

Originally Posted by albertchui
i just wonder why Xtreme Gear does not respond and advise how to fix their problem, i sent them the support ticket and ft info, but never get respond. it's so frustrating that their skin does not like regular template file, like head.tpl, i don't know how to secure the logo images as i uploaded it in it's general setting of xg admin, below is their head.tpl, anyone advise how to change the path of logo image, many thanks


FIND:
Code:

{if $xg_top_logo}
        <a href="{if $xg_config.top_logo_url ne ''}{$xg_config.top_logo_url}{else}/{/if}" {if $xg_config.top_logo_title ne ''}title="{$xg_config.top_logo_title}"{/if} {if $xg_config.top_logo_target ne ''}target="{$xg_config.top_logo_target}"{/if}  id="logo-main"><img src="{$xg_top_logo.image_url}" {if $xg_top_logo.image_x ne ''}width="{$xg_top_logo.image_x}"{/if} {if $xg_top_logo.image_y ne ''}height="{$xg_top_logo.image_y}"{/if} {if $xg_config.top_logo_alt ne ''}alt="{$xg_config.top_logo_alt}"{/if} /></a>
        {/if}


REPLACE IT WITH:
Code:

<a href="/"><img src="{$AltImagesDir}/custom/your-header_635x90.png" width="635" height="90" alt="Your Store Logo" title="Your Store Name"></a>

and put your image in
/skin/xtreme_gear/images/custom/

This serves the image from a relative path. It will not trigger https warnings.

WARNING: you will lose the ability to use the xtreme control panel to select header images.

BACK UP your files before editing.

EDIT--- the image size should be adjusted for the size of your header.

albertchui 07-26-2013 10:26 AM

Re: NEW xcart template - xtreme Gear
 
Quote:

Originally Posted by carpeperdiem
FIND:
Code:

{if $xg_top_logo}
        <a href="{if $xg_config.top_logo_url ne ''}{$xg_config.top_logo_url}{else}/{/if}" {if $xg_config.top_logo_title ne ''}title="{$xg_config.top_logo_title}"{/if} {if $xg_config.top_logo_target ne ''}target="{$xg_config.top_logo_target}"{/if}  id="logo-main"><img src="{$xg_top_logo.image_url}" {if $xg_top_logo.image_x ne ''}width="{$xg_top_logo.image_x}"{/if} {if $xg_top_logo.image_y ne ''}height="{$xg_top_logo.image_y}"{/if} {if $xg_config.top_logo_alt ne ''}alt="{$xg_config.top_logo_alt}"{/if} /></a>
        {/if}


REPLACE IT WITH:
Code:

<a href="/"><img src="{$AltImagesDir}/custom/your-header_635x90.png" width="635" height="90" alt="Your Store Logo" title="Your Store Name"></a>

and put your image in
/skin/xtreme_gear/images/custom/

This serves the image from a relative path. It will not trigger https warnings.

WARNING: you will lose the ability to use the xtreme control panel to select header images.

BACK UP your files before editing.

EDIT--- the image size should be adjusted for the size of your header.



your info is pretty helpful, thanks, i finally solved the insecured images, but the register.php still no lockpad, is the cache/var of css and script will affect it, i still found the http: links:


<!-- [if lt IE 8]> <! [endif] --> <!-- [if lt IE 9]> <! [endif] -->

<link rel="stylesheet" type="text/css" href="http://www.iphonecasestudio.com/var/cache/xm_extra_style.css" />

<link rel="shortcut icon" type="image/png" href="http://www.iphonecasestudio.com/favicon.ico" />

<link rel="canonical" href="http://www.iphonecasestudio.com/" />



<link rel="stylesheet" type="text/css" href="http://www.iphonecasestudio.com/var/cache/1.5be5c1dcd7369459527c2673274386b9.css" />
<script type="text/javascript" src="http://www.iphonecasestudio.com/var/cache/1.009217382cf016b48187804a6b8782e0.js"></script>

</head>

carpeperdiem 07-26-2013 10:34 AM

Re: NEW xcart template - xtreme Gear
 
Quote:

Originally Posted by albertchui
<link rel="stylesheet" type="text/css" href="http://www.iphonecasestudio.com/var/cache/xm_extra_style.css" />


That is a defect in the xMenus file:

/skin/common_files/modules/TXS_XMenus/include_css.tpl

FIND:
Code:

{if $xm_extra_css ne ''}
<link rel="stylesheet" type="text/css" href="{$xm_extra_css}" />
{/if}


REPLACE WITH:
Code:

{if $xm_extra_css ne ''}
{load_defer file="modules/TXS_XMenus/custom_css/xm_extra_style.css" type="css"}
{/if}


TXS failed to include the xm_extra_style.css into the load_defer css

See what I changed?
{$xm_extra_css} variable is a hard coded link. Should not be used on secure pages.

HTH,
J

carpeperdiem 07-26-2013 10:47 AM

Re: NEW xcart template - xtreme Gear
 
Quote:

Originally Posted by albertchui
<link rel="canonical" href="http://www.iphonecasestudio.com/"


Ok, one at a time.

Canonical is defined in
/skin/common_files/customer/service_head.tpl

you should have this:
Code:

{if $canonical_url}
  <link rel="canonical" href="{$current_location}/{$canonical_url}" />
{/if}

or this:

Code:

{if $config.SEO.canonical eq 'Y'}
  <link rel="canonical" href="{$current_location}/{$canonical_url}" />
{/if}


If anything is hard coded, it's not stock xcart. And that's wrong

albertchui 07-26-2013 10:57 AM

Re: NEW xcart template - xtreme Gear
 
Quote:

Originally Posted by carpeperdiem
Ok, one at a time.

Canonical is defined in
/skin/common_files/customer/service_head.tpl

you should have this:
Code:

{if $canonical_url}
  <link rel="canonical" href="{$current_location}/{$canonical_url}" />
{/if}

or this:

Code:

{if $config.SEO.canonical eq 'Y'}
  <link rel="canonical" href="{$current_location}/{$canonical_url}" />
{/if}


If anything is hard coded, it's not stock xcart. And that's wrong


yes, it's same as mentioned, the code is there:

{if $config.SEO.canonical eq 'Y'}
<link rel="canonical" href="{$current_location}/{$canonical_url}" />
{/if}

albertchui 07-26-2013 10:59 AM

Re: NEW xcart template - xtreme Gear
 
Quote:

Originally Posted by albertchui
your info is pretty helpful, thanks, i finally solved the insecured images, but the register.php still no lockpad, is the cache/var of css and script will affect it, i still found the http: links:


<!-- [if lt IE 8]> <! [endif] --> <!-- [if lt IE 9]> <! [endif] -->

<link rel="stylesheet" type="text/css" href="http://www.iphonecasestudio.com/var/cache/xm_extra_style.css" />

<link rel="shortcut icon" type="image/png" href="http://www.iphonecasestudio.com/favicon.ico" />

<link rel="canonical" href="http://www.iphonecasestudio.com/" />



<link rel="stylesheet" type="text/css" href="http://www.iphonecasestudio.com/var/cache/1.5be5c1dcd7369459527c2673274386b9.css" />
<script type="text/javascript" src="http://www.iphonecasestudio.com/var/cache/1.009217382cf016b48187804a6b8782e0.js"></script>

</head>


hi, i replaced it and clear cache, but still there, thanks

albert

carpeperdiem 07-26-2013 11:04 AM

Re: NEW xcart template - xtreme Gear
 
DO you have a copy of
service_head.tpl
in
/skin/xtreme_gear/customer/
?

look for a file that's called in <head> that has an include for canonical

use webmaster mode to help you

albertchui 07-26-2013 11:07 AM

Re: NEW xcart template - xtreme Gear
 
it seems the css and script was caused by the new version 4.6, Optimization settings

when i turn off these two

Use speed-up tool for Javascript & Use speed-up tool for CSS

then it gone and only leave the favicon and canonical

<link rel="shortcut icon" type="image/png" href="http://www.iphonecasestudio.com/favicon.ico" />

<link rel="canonical" href="http://www.iphonecasestudio.com/" />

albertchui 07-26-2013 11:09 AM

Re: NEW xcart template - xtreme Gear
 
Quote:

Originally Posted by carpeperdiem
DO you have a copy of
service_head.tpl
in
/skin/xtreme_gear/customer/
?

look for a file that's called in <head> that has an include for canonical

use webmaster mode to help you



there is no service_head.tpl in /skin/xtreme_gear/customer/


All times are GMT -8. The time now is 04:23 AM.

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