Magento Mobile and Desktop with same database - php

We have a website developed in Magento (ex: www.example.com) and we are planning to develop mobile website which will run on sub-domain (ex: m.example.com).
Desktop version - www.example.com
Mobile version - m.example.com
We want to use same Magento database for both Mobile and Desktop sites. As I know we can't use same database for both sites as everything in Magento depends on {{base_url}}. I am unable to find if there are any ways to do this. Please help us with your ideas.
Edit:
I found this link which explains how to add multiple sites with same database but it seems to be applicable only for localization purpose because in my case, I need to have two different codes for desktop and mobile sites, with same database.
Any help would be appreciated.

Related

how to manage magento multi site in local and in live server

I am still new to magento. I have successfully installed magento ce on my local wamp server. I choose magento because I heard that it has multi site feature. My client have three separate website that are running on three domain name(www.sample1.com, www.sample2.com, www.sample3.com). I am planning to control them on one admin.
I would like to know how can I manage to create multi site on my local and how can I upload it on live server.
Also, can someone explain to me in simple the architecture of multi site of magento. If I'm not mistaken, I understood it this way.
admin -> my backend maybe running soon www.sample1.com that handles all my website.
website -> This is where I will give separate domain. for example website one is running on www.sample1.com. website two is running on www.sample2.com. and finally website three is running on www.sample3.com
store -> I don't have clear understanding of it.
store view -> this is the presentation layer. the most fron-end of the website where products, themes are displayed.
This is kind of stupid but i'm still new to magento.
Thanks!

Single Sign on between Joomla and Php

I have two sites having different database first site is in joomla name suppose www.abc.com second is job portal written in Php run as www.abc.com/jobs. I want to do single sign on for both . How i do that any help ?
You could use an LDAP Database as the primary storage for both your Joomla & Job portal site and the
LDAP Directory - http://extensions.joomla.org/extensions/clients-a-communities/user-management/13128
Can help you manage the clients with Joomla however depending on the platform of your portal the integration would have to be custom written but this should be a good starting point.

how to convert php existing web application to mobile application

i have developed a webpage with joomla 1.5, now i need to convert my web application to mobile application. the user can download my application through mobile apple or etc then they can access. Tell any tips and kindly guide me...
You could take a look at phonegap ( http://phonegap.com/ )
It is a java framework that you can control with javascript to ring, vibrate, determine position, etc.
There are tutorials for how to make an application for every phone operating system, and they are pretty understandable for beginners. However, since you use joomla, your code has to run on a php server. (The tutorial covers only how to embed local html files in your app).
There are some tutorials out there that cover the use of phonegap with 'existing' websites. Google for it.
In the future, you might want to have a look at jquery mobile, there is an interface builder on their site http://jquerymobile.com/ and it is designed to look good on every device. You can use their themeroller and some additional css to achieve quite a nice app.
Suresh, because it will be important that your users interact with your server where your Joomla installation is hosted, it will be most feasible for you to create separate CSS stylings for your website that will be mobile specific.
Because Joomla has a user community, it is likely that plugins or templates have been written that can help speed this process up. Here's an extension that accomplishes some of what you're looking for, in-so-far as it will allow users on mobile phones to interact with your website via a browser in a comfortable way.
http://extensions.joomla.org/extensions/mobile/mobile-display/11722
Have you tried Mobile Joomla? It's a great extension that would be an easy first step to getting your site mobile-friendly.
"Mobile Joomla!® is the best way to mobilize your Joomla! site, displaying beautifully on iPhone, iPad, Android, Windows Phone and all other phones."
http://www.mobilejoomla.com/
for converting the existing web application to mobile application,you have to create web services of the web application and return the data in XML or json format.at the end of mobile development like on android plateform you have to parse those data on simulator,and this way you can test the application and use in mobile.
Humm joomla is not a good bet for mobile web apps. Even with adapted css and layouts, If you have a lot of extensions, some might break in mobile view.
I would build a a web app from scratch (using jquery mobile, that as a good cross platform support) and get the data from the original website. It might take a while longer, but the experience for your users will surely be better.
EDIT:
From what I gathered from your comments, it seems you want a landing page where people can download a "game" to their mobile phones, is that right? Please explain exactly what you want to accomplish so we might help you.

Build a mobile website without touching the original website

We just got a idea to show the power of mobile web to clients. So we were thinking to show clients website in mobile. So its obvious that we wont get access to client code or website. The client website is in PHP. So is there any external tool or application that we can use to configure the website on mobile, with out getting the actual code. Like we have Kurogo . But i found that the amount of effort needed in configuring it for a website is too much. So is there any simple tool which we can use. It should just handle images, links and basic content. Just take it and display properly in mobile
All requests made to example.com should be redirected to m.example.com and in m you provide the necessary web interface for mobile devices.
JQuery Mobile is very useful tool for building websites design for mobile.

How to develop a mobile version website, without changing it's domain name?

I want to develop the mobile (also includes iphone,ipad,andriod) version of my original site. But I don't want to create another sub domain like www.m.mydomain.com, can i dynamically change the document root separately for mobile version and the existing one?
I have also noticed that, when I open facebook form iphone or any andriod mobile it opens with it's original domain name like http://www.facebook.com/ bt when i open it from any other mobile like nokia or samsung it comes with http://m.facebook.com/, what is the difference between this 2?
When it comes to iPhone and Android deveices, a website needs very little adjustments because their web browsering capabilities are really good.
For other devices where the web browsing user experience is less satisfying, the site would dynamically switch them to an alternate and less "intense" version of the website.
As for the m.domain.com feature, this is just a subdomain of the domain.com website. Obviously, it represents a mobile version of the main site and will strip out things like flash and javascript basically anything which will be too much for a basic mobile browser.
The dynamic switching of browsers is done via code. There are ways of detecting what browser just requested your website. Based on the information returned you can then redirect to specific scripts which will handle the user requests from then on.
As an example, you can use this standard argument to check the browsers visiting your site:
$_SERVER['HTTP_USER_AGENT']
Hope that helped.
You can differentiate it by User-Agent property either on Apache level, or PHP level. Though that will not be guaranteed because UA can be spoofed. (But how many mobile users would do UA spoofing to pretend they're not mobile?)
you could possibly use some solution:
create a specific mobile website and put it on folder/subdomain and redirect any user with mobile to that site, example: mydomain.com/m/ or m.mydomain.com
example on redirection:
http://detectmobilebrowsers.mobi/
http://mobiforge.com/developing/story/lightweight-device-detection-php
or
you could use responsive webdesign technique, some framework already available for this
http://csswizardry.com/inuitcss/
http://www.columnal.com/
http://stuffandnonsense.co.uk/projects/320andup/
The difference is that high end mobile devices like iphone/android have enough support and functionality to support the original version of the website (zooming/javascript etc). Other devices are better served an basic website developed for mobile devices with a limited display and/or support.
You do want an special URL for your mobile website - as you'd like your mobile website to correctly appear in the mobile search of search engines.
www is actually also a subdomain, but it is so often used, people do not usually realize it, Usually most browsers add it by default and this is why most servers have it enabled by default.
The case you pointed out is also of subdomains. The server check your HTTP request's user-agent and redirects you to the mobile subdomain appropriately.
This isn't really a quick solution for you, but I highly recommend reading Ethan Marcotte's Responsive Web Design articles on alistapart.org. He goes over the philosophy as well as the practical steps to make a site work well for different contexts - desktop browser to mobile device, etc. There are several articles on the site (just search for responsive web design you'll get several of his articles in your results.)

Categories