The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 08-24-2011, 12:03 AM
gcampton's Avatar
gcampton is offline
 
Join Date: Aug 2011
Posts: 52
Default

Wordpress and Mobile intergration


I'm currently using wordpress plugin "Smooci 2 for wordpress mobile" and "Smooci" theme for users on mobile phones to view my site.
Of course this doesn't work for the store so I have been trying to figure out how to add the mobile version so when users are on mobile and the click on my store link they get taken to one of my pages with the mobile store.

I've found a couple resources, php scripts. However I'm not sure how to add these, I think this is just as much a wordpress help problem more than ecwid now that I think about it. However I'm sure there's many others that have had to do the same here.
I need to know where to copy this file and how to call it into the wordpress header for the "store page" only.

Or alternately edit the smocci or WP mobile plugins so they redirect to the small shop version when on the store page. Any ideas?

This script is probably old, I'm unsure where I found it...
Mobile Redirection:
Code:
<?php
/*
===========================
Mobile version detection
===========================
*/

$mobile = "http://kustcom.ecwid.com";
$text = $_SERVER['HTTP_USER_AGENT'];
$var[0] = 'Mozilla/4.';
$var[1] = 'Mozilla/3.0';
$var[2] = 'AvantGo';
$var[3] = 'ProxiNet';
$var[4] = 'Danger hiptop 1.0';
$var[5] = 'DoCoMo/';
$var[6] = 'Google CHTML Proxy/';
$var[7] = 'UP.Browser/';
$var[8] = 'SEMC-Browser/';
$var[9] = 'J-PHONE/';
$var[10] = 'PDXGW/';
$var[11] = 'ASTEL/';
$var[12] = 'Mozilla/1.22';
$var[13] = 'Handspring';
$var[14] = 'Windows CE';
$var[15] = 'PPC';
$var[16] = 'Mozilla/2.0';
$var[17] = 'Blazer/';
$var[18] = 'Palm';
$var[19] = 'WebPro/';
$var[20] = 'EPOC32-WTL/';
$var[21] = 'Tungsten';
$var[22] = 'Netfront/';
$var[23] = 'Mobile Content Viewer/';
$var[24] = 'PDA';
$var[25] = 'MMP/2.0';
$var[26] = 'Embedix/';
$var[27] = 'Qtopia/';
$var[28] = 'Xiino/';
$var[29] = 'BlackBerry';
$var[30] = 'Gecko/20031007';
$var[31] = 'MOT-';
$var[32] = 'UP.Link/';
$var[33] = 'Smartphone';
$var[34] = 'portalmmm/';
$var[35] = 'Nokia';
$var[36] = 'Symbian';
$var[37] = 'AppleWebKit/413';
$var[38] = 'UPG1 UP/';
$var[39] = 'RegKing';
$var[40] = 'STNC-WTL/';
$var[41] = 'J2ME';
$var[42] = 'Opera Mini/';
$var[43] = 'SEC-';
$var[44] = 'ReqwirelessWeb/';
$var[45] = 'AU-MIC/';
$var[46] = 'Sharp';
$var[47] = 'SIE-';
$var[48] = 'SonyEricsson';
$var[49] = 'Elaine/';
$var[50] = 'SAMSUNG-';
$var[51] = 'Panasonic';
$var[52] = 'Siemens';
$var[53] = 'Sony';
$var[54] = 'Verizon';
$var[55] = 'Cingular';
$var[56] = 'Sprint';
$var[57] = 'AT&T;';
$var[58] = 'Nextel';
$var[59] = 'Pocket PC';
$var[60] = 'T-Mobile';    
$var[61] = 'Orange';
$var[62] = 'Casio';
$var[63] = 'HTC';
$var[64] = 'Motorola';
$var[65] = 'Samsung';
$var[66] = 'NEC';

$result = count($var);

for ($i=0;$i<$result;$i++)
{    
    $ausg = stristr($text, $var[$i]);    
    if(strlen($ausg)>0)
    {
        header("location: $mobile");
        exit;
    }
    
}
?>
  #2  
Old 08-31-2011, 11:56 AM
gcampton's Avatar
gcampton gcampton is offline
 
Join Date: Aug 2011
Posts: 52
Default

yes no anyone?

On a side note, I just signed up as a silver user, and noticed that when javascript is disabled while standard html is used (better SEO?). 1. there is no way for a customer to buy a product with javascript turned off and 2. There's no friendly URL addresses, it's the same random letters and symbols.

Last edited by gcampton; 08-31-2011 at 12:19 PM.
  #3  
Old 09-01-2011, 10:34 AM
gcampton's Avatar
gcampton gcampton is offline
 
Join Date: Aug 2011
Posts: 52
Default

Surely I'm not the first person who has had this problem.
Does this work automatically with the standard WP mobile theme?



BUMP NUMP BUMP NUMP NBMNASKLDN Everyone died?

Last edited by gcampton; 09-01-2011 at 11:11 AM.
  #4  
Old 09-12-2011, 05:37 AM
gcampton's Avatar
gcampton gcampton is offline
 
Join Date: Aug 2011
Posts: 52
Default

Still waiting.

Perhaps my question is not understood.
When you visit my website on a computer you see a desktop theme with ecwids regular store.
When you visit my website on a mobile you see a mobile theme with ecwids regular store.

I need to fix it so that when you visit my site on a mobile you see the mobile theme with ecwids mobile store.

Any ideas?
  #5  
Old 09-12-2011, 07:19 AM
gcampton's Avatar
gcampton gcampton is offline
 
Join Date: Aug 2011
Posts: 52
Default

The way I see it, this is an Ecwid problem not wordpress.(perhaps wordpress theme related)
The ecwid wordpress plugin should detect mobile and auto load the mobile browser.

If it does this already then I need to know because it will be a theme problem, not the plugin.
If it's a plugin problem then surely it wouldn't be too difficult to hack.

Would be nice if a admin could comment I've been waiting to resolve this for 3 weeks.
  #6  
Old 09-13-2011, 02:39 PM
gcampton's Avatar
gcampton gcampton is offline
 
Join Date: Aug 2011
Posts: 52
Default

Did I get blacklisted or some crap?
  #7  
Old 12-17-2012, 03:46 AM
Aussie's Avatar
Aussie Aussie is offline
 
Join Date: Sep 2011
Location: Central Florida
Posts: 30
Smile Wordpress and ECWID for mobile

Hi,
I have found the weaver II pro theme works quite well with ECWID.
I have it running both as a desktop and mobile all under control of the theme, so did not have to add a redirect.

There are a few issues, but I'm happy with it for now.
Take a look at my site and see what you think. Weaver gives you control for mobile devices and it works ok.

QRSeeds.com

Check it out in desktop and mobile.
good luck, I know its a pain when you are already comfortable with one theme to even think about switching, but for me weaver allows me to develope one time and support an array of devices.
cheerz
aussie
The Following 2 Users Say Thank You to Aussie For This Useful Post:
Margriet Pronk (12-31-2012), Viktor D. (01-10-2014)
  #8  
Old 12-31-2012, 04:10 PM
Margriet Pronk's Avatar
Margriet Pronk Margriet Pronk is offline
Senior Member
 
Join Date: Sep 2012
Location: The Netherlands
Posts: 114
Send a message via ICQ to Margriet Pronk
Default

Thanks for this solution. And there is another: if you want to keep your original theme, use then a plugin that switch to the weaver theme when someone with a mobile device visits the site.

Perhaps that is an idea.

Happy newyear!
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
intergration, mobile, redirection, wordpress

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:19 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.