Creating and configuring a basic mobile application

Exclusive offer: get 50% off this eBook here
Magento Mobile How-to [Instant]

Magento Mobile How-to [Instant] — Save 50%

Create and configure your own Magento Mobile application and publish it for the Android and iOS platforms with this book and ebook.

$14.99    $7.50
by Darko Goleš | January 2013 | e-Commerce

After everything is configured and prepared, this article by Darko Goleš, author of Magento Mobile How-to, starts exploring the Magento Mobile Admin Panel in order to create our first Magento Mobile application.

(For more resources related to this topic, see here.)

How to do it...

Follow these steps:

  1. Inside your Magento Admin Panel, navigate to Mobile | Manage Apps on the main menu.

  2. Click on the Add App button in the top-right corner. The New App screen will be shown.

  3. Since we have to create a separate application for each mobile device type, let's choose our first targeted platform.

    Under the Device Type list, we can choose iPad, iPhone, or Android.

    For the purpose of this recipe, since the procedure is almost the same for all device types, I will choose Android.

  4. After choosing the desired Device Type, click on the Continue button, and click on the General tab under Manage Mobile App.

  5. First we have to fill in the box named App Name. Choose an appropriate name for your mobile application and insert it there.

  6. Under the Store View list, make sure to choose our earlier defined Store View with updated mobile theme exceptions, our mobile copyright information, and category thumbnail images.

  7. Set the Catalog Only App option to No.

  8. Click on the Save and Continue Edit button in the top-right corner of the screen.

  9. Now you will notice a warning message from Magento that says something like the following:

    Please upload an image for "Logo in Header" field from Design Tab.

    Please upload an image for "Banner on Home Screen" field from Design Tab.

    Don't worry, Magento expects us to add some basic images that we prepared for our mobile app. So let's add them.

  10. Click on the Design tab on the left-hand side of the screen.

  11. Locate the Logo in Header label and click on the Browse... button on the right to upload the prepared small header logo image. Make sure to upload the image with proper dimensions for the selected device type (iPhone, iPad, or Android).

  12. In the same way, click on the Browse... button on the right of the Banner on Home Screen label and choose the appropriate prepared and resized banner image.

  13. Now, let's click on the Save and Continue Edit button in order to save our settings.

How it works

For each device type, we will have to create a new Magento Mobile application in our Magento Mobile Admin Panel.

When we once select Device Type and click on the Save button, we are unable to change Device Type later for that application.

If we have chosen the wrong Device Type, the only solution is to delete this app and to create a new one with the proper settings.

The same applies with our chosen Store View when configuring new app.

There's more...

When our configuration is saved for the first time, auto-generated App Code will appear on the screen and that will be the code which will uniquely identify our Device Type—the assigned application to be properly recognized with Magento Mobile.

For example, defand1 means that this application is the first defined application for the default Store View targeted on android (def = default store view, and=android).

How to use mobile application as catalog only

Under step 7 we set Catalog Only App to No, but sometimes, if we don't need checkout and payment in our mobile app, but we want to use it just as catalog to show products to our mobile customers, we just need to set the Catalog Only option to Yes.

Summary

So this is how we create the basic configuration for our mobile app

Resources for Article :


Further resources on this subject:


Magento Mobile How-to [Instant] Create and configure your own Magento Mobile application and publish it for the Android and iOS platforms with this book and ebook.
Published: November 2012
eBook Price: $14.99
See more
Select your format and quantity:

About the Author :


Darko Goleš

Darko Goleš is a Magento Certified Developer who works and lives in Croatia. He has spent over nine years learning and developing both desktop and web applications in different programming environments such as VB6, C++, VB. NET, C#, and later in PHP—Joomla, Wordpress, and so on.

After working on different projects and learning different platforms, he found that his real passion in the developer's world is web development and PHP.

For the last year and a half, he has been working as a Senior PHP Web Developer for Inchoo Ltd (www.inchoo.net).

In the beginning of his career with Inchoo, he worked as a web support Mobile team member, specializing in Web Services API development.

During that time, he developed DivineofficeHub (a content management and web service-based data delivery platform) for Surgeworks Ltd, which is used as a data provider for several Surgeworks mobile applications built by Inchoo.

After over 10 months of additional experience with web services using the Symfony2 framework, he started with Magento and then worked on extending Magento Core API features for its usage with the Mageboard iOS application.

Currently, Darko is working as a Magento backend developer on different projects, solving Magento challenges every day.

Books From Packt


 Magento 1.4 Theming Cookbook
Magento 1.4 Theming Cookbook

 Magento 1.4 Development Cookbook
Magento 1.4 Development Cookbook

Magento 1.4 Themes Design
Magento 1.4 Themes Design

 Magento 1.3 Sales Tactics Cookbook
Magento 1.3 Sales Tactics Cookbook

Magento 1.3: PHP Developer's Guide
Magento 1.3: PHP Developer's Guide

 Mastering Magento
Mastering Magento

 Mobile Web Development
Mobile Web Development

 LiveCode Mobile Development Beginner's Guide
LiveCode Mobile Development Beginner's Guide


Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software