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

NEW xcart template - xtreme Gear

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #61  
Old 07-26-2013, 08:33 AM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default 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}
__________________
X-Cart Gold 4.6
Reply With Quote
  #62  
Old 07-26-2013, 08:50 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #63  
Old 07-26-2013, 10:26 AM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default 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>
__________________
X-Cart Gold 4.6
Reply With Quote
  #64  
Old 07-26-2013, 10:34 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #65  
Old 07-26-2013, 10:47 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #66  
Old 07-26-2013, 10:57 AM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default 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}
__________________
X-Cart Gold 4.6
Reply With Quote
  #67  
Old 07-26-2013, 10:59 AM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default 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
__________________
X-Cart Gold 4.6
Reply With Quote
  #68  
Old 07-26-2013, 11:04 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #69  
Old 07-26-2013, 11:07 AM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default 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/" />
__________________
X-Cart Gold 4.6
Reply With Quote
  #70  
Old 07-26-2013, 11:09 AM
 
albertchui albertchui is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 163
 

Default 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/
__________________
X-Cart Gold 4.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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:47 PM.

   

 
X-Cart forums © 2001-2020