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

xMobile - Smartphone mobile template

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #101  
Old 10-15-2013, 06:15 AM
 
DavyMac DavyMac is offline
 

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

Default Re: xMobile - Smartphone mobile template

Quote:
Originally Posted by carpeperdiem
I'm confused because you said you were going to add this to xMobile, yet Ilya advised that my server is already sending the Vary: header, yet, I have no record of adding it, and a fulltext search on my server can't locate the source of this.

livehttpheaders reports:
Vary: Accept-Encoding,User-Agent

Ok. Is that the correct header?
If so, how is it getting there?

Is the Vary header something the host could have included in the php build?

Please help me understand what is going on... what does
Vary: Accept-Encoding,User-Agent
mean to the search engines?

I see the header entry:
Vary: Accept-Encoding,User-Agent

for both xMobile and desktop.
Is that telling Google that we are serving dynamic content.

I am truly not grasping what Google is expecting and what the server needs to send and what xMobile should be sending.
If this is a server side configuration, why would my VPS host setup php for this under normal circumstances?

I am going to ask my host for clarification as well. Thanks,
J

I hope that you get more info from your host than I did - my host was unable to explain how to set the vary header.
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
  #102  
Old 10-17-2013, 05:14 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: xMobile - Smartphone mobile template

Quote:
Originally Posted by DavyMac
I hope that you get more info from your host than I did - my host was unable to explain how to set the vary header.

My host (Hands-on) WAS able to explain...

It is a default setting in Hand-on VPS' Apache mod_headers config

My server IS sending Vary: User-Agent in the headers.

Your host can add this to the headers and we don't need xMobile to go there.
In my opinion, now that I fully understand what is going on, this SHOULD be a server configuration, and not the template.

I think xMobile should explain in the installation docs what is needed, and then provide some resources so you can have your host set this up.

Will, if you are reading this, I urge you NOT to add this function to xMobile, and instead to DISCUSS the server configuration that is required. This is NOT a template function. I'm glad I spent the time investigating this.
J
__________________
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 (10-17-2013)
  #103  
Old 10-17-2013, 06:12 AM
 
DavyMac DavyMac is offline
 

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

Default Re: xMobile - Smartphone mobile template

Thanks for that J. It would be great if TXS were able to give an unambiguous explanation of what is required to set the vary header.

My host EWD referred me to a site detailing problems with using vary: user-agent https://github.com/h5bp/html5-boilerplate/issues/414 It would seem that caching can be a problem, for example I found this question and answer on the MAXCDN forum:
Quote:
Q: Internet Explorer is not caching my files because of the VARY Header, but other browsers are! What do I do?
A: Add ⌠BrowserMatch ⌠MSIE■ force-no-vary■ to your .htaccess file or its equivalent for NginX/IIS in order to unset the vary header and allow your content to be cached properly.
However, since you have been operating with vary: user-agent AND you use MaxCDN I would have thought you'd have witnessed any problems!?

The cloud of confusion around the use of the vary header makes it difficult to know for sure what the risks of using user-agent actually are!
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote
  #104  
Old 10-17-2013, 07:37 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: xMobile - Smartphone mobile template

Quote:
Originally Posted by DavyMac
The cloud of confusion around the use of the vary header makes it difficult to know for sure what the risks of using user-agent actually are!

I'm no expert on this, but my understanding of the Vary header is that it is relatively simple:

It tells the visitor (search engine) that the content will vary based on user agent. It is up to xcart to send the appropriate content (template and all associated includes) based on user-agent, or in our case with xmobile, screen size.

I don't think browser caching is an issue for us -- because we are serving DIFFERENT content to smartphone vs. desktop.

Same for CDN static content -- I think -- because it's a DIFFERENT css file.

xMobile does the device check in file, /modules/TXS_XMobile/init.php
(unfortunately for us this is encrypted, and we can't set parameters)
So xcart is serving different content based on screen size.

Vary user-agent header tells the browsers (search engines) that there WILL be different content depending on the browser/device -- but I don't think it prevents content from loading or being used. The cdn cache only serves what it is being asked for. IF mobile, it serves mobile css. IF desktop it serves desktop css. I am not sure the gitgub thread has anything to do with what we are doing here. I think.

I have an email out to my contact at Google.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #105  
Old 12-09-2013, 08:14 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: xMobile - Smartphone mobile template

Anyone successfully configure Colorbox to work within xMobile?

I keep failing -- I know that xmb has its own
service-head.tpl
and
service_js.tpl

I tried inserting the colorbox css into xmb service-head using {load_defer
and the script js file using load_defer include into service.js AFTER {if $main eq 'product'} --

But I can't make it work.
It was a breeze to get it working on the desktop (using xtreme gear)

Did anyone get Colorbox working with xMobile?
I must be missing an include?
Is there a jquery compatibility issue?

THx
J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #106  
Old 04-07-2015, 11:18 PM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: xMobile - Smartphone mobile template

Hi,
I want to show x-cart modules refine filter in x-mobile.How to achieve that?Anyone please help me in this concern.

Thanks,
xtech
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #107  
Old 04-23-2015, 11:30 AM
 
chrischall chrischall is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 36
 

Default Re: xMobile - Smartphone mobile template

Would also love to get Refine Filters on Xmobile too!


We have anonymous checkout set up but for some reason if you try and checkout on xmobile without filling in a password a box pops up and wont let you continue


http://www.gapyeartravelstore.com/images/anon-checkout.png



Only seems to happen on our 4.6x installs. Got a ticket open with xcartstore but wondered if anyone had come across this?

Cheers,
Chris
Attached Images
File Type: png IMG_2505.PNG (61.8 KB, 6 views)
__________________
X-Cart version 4.6.3
Reply With Quote
  #108  
Old 09-10-2015, 02:33 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: xMobile - Smartphone mobile template

How to display filter in x-mobile skin.Please help me
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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:23 AM.

   

 
X-Cart forums © 2001-2020