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)
-   -   xMobile - Smartphone mobile template (https://forum.x-cart.com/showthread.php?t=64540)

DavyMac 10-15-2013 06:15 AM

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.

carpeperdiem 10-17-2013 05:14 AM

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

DavyMac 10-17-2013 06:12 AM

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!:?

carpeperdiem 10-17-2013 07:37 AM

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.

carpeperdiem 12-09-2013 08:14 AM

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

xtech 04-07-2015 11:18 PM

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

chrischall 04-23-2015 11:30 AM

Re: xMobile - Smartphone mobile template
 
1 Attachment(s)
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

xtech 09-10-2015 02:33 AM

Re: xMobile - Smartphone mobile template
 
How to display filter in x-mobile skin.Please help me


All times are GMT -8. The time now is 10:30 AM.

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