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
  #91  
Old 09-08-2013, 10:31 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: NEW xcart template - xtreme Gear

When renewing our SSL certificate today I discovered that all our site's https pages do not displaying the secure padlock symbol because resources on the page are from an insecure source, namely xbanners and banners managed by xTreme_Gear.

Sure enough all xbanners have an http:// path on an https:// page. Any solution I can think of is made more complex by our use of MAXcdn, so all the images have a url like http://cdn.mydomain.com/

Any thoughts?
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
  #92  
Old 09-08-2013, 10:35 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 DavyMac
When renewing our SSL certificate today I discovered that all our site's https pages do not displaying the secure padlock symbol because resources on the page are from an insecure source, namely xbanners and banners managed by xTreme_Gear.

Sure enough all xbanners have an http:// path on an https:// page. Any solution I can think of is made more complex by our use of MAXcdn, so all the images have a url like http://cdn.mydomain.com/

Any thoughts?

Read my posts about this issue in this thread ? Search this thread for https.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote

The following user thanks carpeperdiem for this useful post:
DavyMac (09-08-2013)
  #93  
Old 09-08-2013, 10:51 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: NEW xcart template - xtreme Gear

Quote:
Originally Posted by carpeperdiem
Read my posts about this issue in this thread ? Search this thread for https.
I've now read your work-a-round - What a downer! I was planning on using the IP filter functionality on xBanners to serve up a geo-location specific banner for overseas customers but I won't be able to do that with hardcoded image paths!

I see that when you first discovered this failure with the TXS modules you raised tickets with TXS. What was their response?
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
  #94  
Old 09-08-2013, 11:07 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 DavyMac
I've now read your work-a-round - What a downer! I was planning on using the IP filter functionality on xBanners to serve up a geo-location specific banner for overseas customers but I won't be able to do that with hardcoded image paths!

I see that when you first discovered this failure with the TXS modules you raised tickets with TXS. What was their response?
TXS has failed to acknowledge or respond to any of my questions to them regarding secure images / https. I have bumped and sent reminders to them about these open issues, to no avail. Fortunately, it's not rocket science. But it does require not using the features of xtreme.

I think you will still be able to do what you need with geo-IP, but just don't hardcode the paths. Yes ??

I also made posts in the Xmenus thread about how to solve the https issue in xmenus.

This could have all been prevented and sorted out had TXS simply put a five dollar SSL certificate on their demo site. And yes, I did make this suggestion to them…

You simply need to look at page source while in https and search for http: And see if you discover any images or links to JavaScript or CSS that doesn't belong.

__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #95  
Old 09-10-2013, 02:05 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: NEW xcart template - xtreme Gear

I realise that I can only concentrate on one thing at a time, which is my excuse for missing all the posts in this thread regarding TXS presenting insecure images in their templates and modules.

I promise to try harder at keeping up to date with people's posts

Thanks to Jeremy for his posts on making images secure, you certainly keep us xcarters on the straight and narrow. In fact standing on the shoulders of Jeremy's work I have been able to modify my template so that all images and banners are secure on https pages AND they are still managed by extreme gear's admin interface. Here is what I did:

In file file smarty.php:

After
PHP Code:
$smarty->assign('SkinDir'$xcart_web_dir $smarty_skin_dir); 

Insert

PHP Code:
if ($_SERVER['HTTPS'] != 'on'

$smarty->assign("XGImagesDir""http://www.domain.com/images/XG"); // If you use CDN replace www with cdn
 

else 

$smarty->assign('XGImagesDir'$xcart_web_dir '/images/XG'); 


Although it is unlikely you will need to change your logo often I have included here a fix for that too:

In file skin/extreme_gear/customer/head.tpl

Replace

Code:
<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>

With

Code:
<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="{$XGImagesDir}{$xg_top_logo.image_path|replace:'./images/XG':''}" {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>

To get the banners secure ( the Footer Left Banner, Footer Right Banner, and the Quick Links Right Banner)
in file skin/common_files/modules/TXS_Xtreme_Gear/xg_front_image.tpl
Replace
Code:
<img src="{$xg_images.$type.image_url}"
With
Code:
<img src="{$XGImagesDir}/{$xg_images.$type.filename}"
If you use xMultiCurrency then to get the little flag icon to be secure
In file skin/common_files/modules/XMultiCurrency/customer/complex_selector.tpl
Around line 114 find
Code:
<img src="{$curlng.tmbn_url|amp}"
Replace with
Code:
<img src="{$XGImagesDir}/../..{$curlng.image_path|replace:'./':'/'}"
These changes have worked for me and I hope they work for you too.
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote

The following 2 users thank DavyMac for this useful post:
carpeperdiem (09-10-2013), heather@MX1 (09-10-2013)
  #96  
Old 09-10-2013, 03: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 DavyMac
These changes have worked for me and I hope they work for you too.

Cool. I already hardcoded everything, but hopefully TXS will use your work in the 4.6.1 version of xtreme. If not, it's here for the community! Thanks for sharing!!!!

J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #97  
Old 10-07-2013, 10:20 AM
 
jcrim jcrim is offline
 

Newbie
  
Join Date: Jun 2003
Posts: 9
 

Default Re: NEW xcart template - xtreme Gear

Quote:
Originally Posted by carpeperdiem
Cool. I already hardcoded everything, but hopefully TXS will use your work in the 4.6.1 version of xtreme. If not, it's here for the community! Thanks for sharing!!!!

J

Good point. Has anyone actually notified or put in a ticket with the xCart Store to receive some form of a response?

This functionality would be a requirement for any store owner building the appropriate security and trust for their customers.

-Jesse
Reply With Quote
  #98  
Old 10-07-2013, 10:33 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 jcrim
Good point. Has anyone actually notified or put in a ticket with the xCart Store to receive some form of a response?

This functionality would be a requirement for any store owner building the appropriate security and trust for their customers.

-Jesse

TXS never answered my tickets re: images when site goes to https.
But some of us have made posts for workarounds here.
Hate to suggest this - but until dozens of customers start beating TXS up on this, they may not feel it's worth their attention.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #99  
Old 10-07-2013, 10:44 AM
 
jcrim jcrim is offline
 

Newbie
  
Join Date: Jun 2003
Posts: 9
 

Default Re: NEW xcart template - xtreme Gear

Quote:
Originally Posted by carpeperdiem
TXS never answered my tickets re: images when site goes to https.
But some of us have made posts for workarounds here.
Hate to suggest this - but until dozens of customers start beating TXS up on this, they may not feel it's worth their attention.


Understood. I agree and have put in a ticket with TXS to increase the awareness of this issue and show my concern. If any output or resolution provided, I will update the group.

I appreciate all the effort and workarounds thus given so far.

-Jesse
Reply With Quote
  #100  
Old 10-08-2013, 12:38 AM
 
Will Hayes Will Hayes is offline
 

eXpert
  
Join Date: Apr 2007
Location: Waterford, Ireland
Posts: 206
 

Default Re: NEW xcart template - xtreme Gear

Hi Guys,

Just letting you know... this update to xBanners is on our list - we plan to tackle it this week and provide a fix.

regards
Will.
__________________
The xCart Store.com - Professional x-cart modules and x-cart templates
xMenus, Predictive Search, xBanners2, Busy Kitchen, xtreme Gear, Modern Living, xMobile - Smartphone template & Responsive x-cart template

x-cart 3.x.x
x-cart 4.x.x
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 02:53 PM.

   

 
X-Cart forums © 2001-2020