Latest Blogs

Cloud Computing

Arpatech Website

Jan 07, 2025

Application Modernization Strategies: 5 Best Practices Explained

As technology evolves at a rapid pace, businesses must modernize their legacy applications to remain competitive and meet changing customer expectations. Application modernization involves updating outdated software systems to improve their performance, scalability, and alignment with current business requirements. Whether...

Read More...

Blog Directory

“The Power of Magento, In My Opinion, Comes With Its Awesome Community of Smart People.” -Interview With Tobias Hartmann

“The Power of Magento, In My Opinion, Comes With ...

Tobias is a designer/developer and a Magento enthusiast. He is currently working as a Magento Front-end developer at Sitewards. In this interview, Tobias shared his valuable insights regarding Magento and development practices. On a casual note, he even told us about the best places he has visited and shared his passion about hiking and trekking. So, let’s get to know him more and start with the interview:

Arpatech:  Tobias, you are a front end developer of Magento. What is the best thing about front end development of Magento 2 version when compared with version 1?

Tobias: I would see myself as a front end developer who is currently working with Magento. For me, this is because I’m more into CSS, SASS, LESS, HTML, JavaScript and not so into XML and other Magento specific templating.

The best thing about Magento 2 Frontend… well, that’s a hard question, and we should see it from different angles. If we see it as the Magento System, compared to Magento 1, Magento 2 made the Framework very complete by adding “modern” front-end techniques like LESS processing, RequireJs, a Grunt workflow and some more interesting additions. By that, we could say the way how Magento 2 works with LESS is a quite interesting approach, and by integrating RequireJs and Jquery in the framework they did a great job. For the Magento ecosystem, a complete framework or environment can also be considered as a very good thing, I guess.

If we now see it as a front end developer who already worked with the newest technology like SASS, post CSS, etc., maybe within Magento 1 and had an established framework like foundation or bootstrap, there is no such best thing. Magento 2 kind of reinvented the wheel by building its own complex framework, using older technology like LESS and added additional complexity on top of the common workflows.

For me, what I also discussed in my talk on Meet Magento Netherlands this year, the Magento 2 framework is a very interesting one with all that additional complexity. But it seems not ready yet, not shaped enough to become a framework people love to work with. There are a lot of smart ideas behind its complex workflows and with the power of the community, this could become a very very powerful.

The only Problem, in my opinion, the community will most likely not go deeper into it, since we frontend devs already have a lot of complex things running and particularly want to get rid of them if you see nowadays discussions on tooling and the front end workflows.

Means, the one “best thing” is not yet there but together, the community and Magento, could build a more attractive, modern tool chain for front-end developers.

Arpatech: Magento happens to be the most popular ecommerce platform. What guidelines will you give to a newbie of Magento about front end development?

Tobias: Can I say, try something different then Magento? Ok, just kidding. 🙂

The power of Magento, in my opinion, comes with its awesome community of smart people. So what I did and would do again is, first get your hands dirty by hacking into the system and make everything wrong you can, then take one of the Magento trainings to learn how to do it right and third, register in the slack channels, visit Magento Unconferences, find the people on twitter and start to communicate. Be a part of the Magento world and you’ll have superpowers for your work with Magento and for yourself as a developer.

Arpatech: What is the best project you have been engaged with so far? What motivated you to choose Magento as a career?

Tobias: I don’t have a single “best project” but a couple have stood out to me. To me these were the most interesting and helped me to learn a lot about coding for e-commerce and Magento and were mind blowing.

One of these was a configurator for a scooter, based on Magento. The first challenge was how we were going to realize this since the product types within Magento did not reflect everything that we needed. There were core parts to the scooter but also additional parts, colors, sticker and insurance. So we made a plan on how to fit all these into the Magento available products.

After we sorted the product type the decision was made to use a complete javascript configurator front end. We wrapped our minds on how to build a flexible but performant API from Magento to the javascript configurator  and a fast and animated front end. This consisted of Requirejs, Backbonejs and Marionettejs. For me this was a great combination of interesting techniques with a nice and flexible result.

Can we choose Magento as a career? I didn’t do so, I have chosen e-commerce, frontend development and public speaking as career and Magento as the framework I stick to. But thinking about, what would make me choosing Magento as the career, I would say the community. The community of a framework is such a big motivation driver.

Within the Magento community, there is a lot of potential for frontend developers. What I really enjoy is that it is a very open minded friendly community with a lot of very great people. I might repeat myself on that topic over and over again but a community is one of the most important parts, it decides if a framework will stay alive or will die and it is by far, in my opinion, one of the biggest motivators for a developer to stay with a certain technology or framework.

Arpatech: You have a vast experience in Magento development.Can you recommend the top 5 free themes and extension available for Magento 2 and Magento 1.9 respectively to our newbie developer?

Tobias: As we did not play that much with Magento 2 I can’t point you to extensions but what I really like is the SASS Theme from Snowdog (https://github.com/SnowdogApps/magento2-theme-blank-sass). So if you start with Magento 2 either take that SASS Theme in the beginning or take some time to investigate deeply how Magento 2 frontend framework works.

For Magento 1 there are a lot of cool and helpful extensions out there, so I give less direct extensions but more of an advice where to search.

For building a bootstrap based boilerplate theme I recommend the Webcomm Bootstrap Boilerplate. A lot of good and helpful extensions are from firegento, so check their GitHub repositories. People involved in the firegento group also have a lot useful extension, which you should check. It is also very beneficial to check out some Agencies with love for Magento, for example, IntegerNet who developed a Solr extension as an example, or AOE and Firebear Studio, who do a lot of extensions and have helpful Articles. And for sure you should check out Lizards & Pumpkins for the catalog.

Arpatech: We all have some mentors and inspirations in our lives. Can you name some people in Magento community who inspired you or whom you admire?

Tobias: Yeah, let’s start with Ben Marks, I really like to hear him talking on stage and I think he’s a very great and inspiring speaker. Since I started now with talks as a topic, I want to name David Manners too, who gives, the funniest and impressing talks also, he is a great developer with a very nice pragmatism on how to solve problems. So if you want interesting talks which drive you crazy (in a good way) and keeps you thinking, then you should talk to David. I also gain a lot of motivation and inspiration from Fabian Blechschmidt, who counts for me to all those great persons on Stage, too.

Since the Magento community mostly consists of PHP developers, don’t judge me on that, I can’t tell names about inspiration on coding. Here I have to go out of the Magento community and name people like Harry Roberts for CSS coding, Gregor Martynus for JS-Coding and community work; I just realize that I can name a lot of people here because there are so many who can inspire in so many different ways.

Just keep your eyes open and you’ll find inspiration and motivation everywhere.

Arpatech: Since you are a front end developer, can you give details of some useful front end features of Magento 2? Please guide our readers about the best practices to follow while working as a front end developer.

Tobias: The Magento 2 framework has a build in living documentation on its stylesheet components, unfortunately, this applies not to changes made within themes, but at least there is something for all the base components and for the base theme.

I don’t know if it is useful in the current state of implementation but also the override less file technique can give a lot of power and flexibility, on the other hand, it makes the standard less process very complex. When It comes to less, the use of guard methods can help a lot, which was a good move to make the components better adjustable. The way we deal with the media queries is also an interesting idea, although, I don’t like the actual implementation. Depending on media queries and guard functions, there are several CSS files created, such a styles-m and styles-l where we have screen size dependent sheets, which should make loading the page a lot better. One of the problems currently is, that all small styles go together with styles marked as common into the mobile stylesheet, so at the end, the mobile stylesheet is the heavy one, which doesn’t make much sense.

But anyway a really nice idea for modularizing things and only load them if necessary.

Since I did not work on a project with Magento 2, and for me, the front end feels not ready, I can’t suggest the best practice yet. I’m watching how the system advances and there are already a lot of changes in it currently, so everything I say might be already too old. The only I could tell is something general, so if you work with a new huge framework like Magento 2, make sure that you know your tools. The best practice is either to use the framework completely and its powers or deactivate it, don’t try to just blindly make override files or try to build a theme, based on the Magento 2 given themes, without knowing what and how to do, there is no such thing then simply changing variables.

Arpatech: Since I follow you on twitter, I have noticed that beside your professional career, you happen to love climbing. What are the best places you have been for climbing expeditions? Also, do you love hiking? What else do you prefer to do in your free time?

Tobias: I love hiking nearly the same as much as climbing because you can explore most beautiful areas which you otherwise never would see. Besides that, there is nearly no way to climb outside without hiking since Mountains are mostly unreachable directly from a street or parking place.

The best places so far were in Mallorca, Austria and Croatia.

Mallorca is so awesome for hiking and climbing, you would never expect that this tourist overcrowded party island can be such a nice place.

For example, pack your things for deep water, solo climbing and head out to Cala Sa Nau. You can hike along the south-east cost to that wonderful place, it is a small beach with great but not very hard climbing routes, starting directly from the beach. In evening hours, there might be a DJ on the beach pub, playing electronic sounds while you climb along the coast. It’s so amazing, especially in the evening hours.

If you’re interested into pictures about those places continue following me on twitter or better on Instagram (https://www.instagram.com/toh_82), a couple of days ago I posted some views from Lake Garda Italy.

My other free time is usually spent on sports like functional and crossfit training, hanging out with friends, chasing the best Beer and Coffee in town or while playing blizzard’s Overwatch. So, if you’re in Frankfurt or I’m near you, just drop me a message, I’m always in for Beer or Coffee.

Arpatech Website

Nov 4, 2016

Simple Steps On How To Display Products From A Specific Category In Magento

Simple Steps On How To Display Products From A Specific...

In our last tutorial, we learned to display customized category listing in Magento. So, today we will focus on the easiest way to display products from a specific category on your website’s Homepage or any other page.

 

As we all know Magento is a powerful e-commerce platform that provides a sustainable solution to the e-commerce merchants. But, at times we get confused about what to display on the Homepage of our store in order to maximize our conversions and increase sales. So, we end up cluttering the page and buyer get confused with too much information overload. You might want to display a specific category that is in demand or range of specific products that your user would most likely purchase. So, let’s get started with the process:

 

From your Admin panel, navigate to Catalog-> Manage Categories

Select the category you want to list on the Homepage and note down the category ID.

Next, navigate to CMs->Pages

 

Select the page in which you would like to display the products from a category. For this tutorial we will choose Homepage.

 

Select content and click on Show/Hide Editor

 

Write the following code:

{{block type="catalog/category_list" column_count="4" category_id="4" template="catalog/product/list.phtml"}}

The column_count here restricts the number of columns to be displayed. While category_id is used to get the specific category through its id.

content

Now navigate to Systems->permissions->Blocks

Click on ‘Add new block’

Now enter the block name. In our case, it is catalog/ category_list

Select “Yes” from drop-down box IsAllowed and save the block.

Now products from specific category will be listed on the home page. You can see this by going to the front-end of your store.

So, today we have learned the easiest way to show products from specific Category in Magento. If you have any query, feel free to comment below:

Arpatech Website

Oct 31, 2016

“Don’t Get Discouraged If You Fail. You Only Truly Fail If You Give Up!” – Interview With Sean Breeden

“Don’t Get Discouraged If You Fail. You Only Tr...

Sean Breeden is a Magento Certified Developer and Developer Plus. He is currently working at Jamersan as a Magento Developer, and has a vast experience working in different organizations in senior and leading positions. He was awarded the “StackOverflow Magento Badge” which is a sheer proof that he is a super-active member in Magento community. So, we contacted him and got in touch with him to know more about what he’s up to  nowadays. So, read along and let’s find out:

Arpatech: Sean, you have a vast experience of the development side. From 2006 to 2016 you were working in InteractOne as Senior Developer. How was your experience with InteractOne? What challenges did you face in these years?  How did you start your career with Magento? Share some interesting experiences and some challenging times of your career with our readers.

Sean: Like any developer in any agency, my experiences in the decade that I was with InteractOne had its ups and downs. I always tried to be helpful to developers who were just starting out and provided support to everyone whenever it was needed. I’d like to think that I taught as much as I learned over the years. Even though I have moved on, I do wish them all the best.

I got started with Magento on the recommendation from a friend when it was still in beta. After spending some time evaluating Magento as a possible alternative to our current e-commerce solutions, I brought it to the attention to our VP. It was very frustrating trying to work with Magento at first but as time went on, it became more familiar. Now, I love it and can’t imagine not working with it every day.

The most difficult challenge early on was getting clients to make the jump to Magento. Few people had heard of it and were skeptical about making the switch. It seemed that e-commerce was in a state of flux in the mid-2000s with a lot of companies attempting to make a great online shopping package but no one had anything that was secure and affordable. There were the usual expensive giants out there and there was also no shortage of smaller, loosely maintained packages. No one stepped up to the plate the way Magento did. I knew it was the way to go and I’ve never regretted my decision to specialize in it.

My first professional project with Magento was a site that needed a brand’s page with images that linked to detail pages. Figuring out how to write my first Magento grid and uploader was challenging so it took a few weeks to complete the project. It’s something I could do in less than an hour now. Looking back to the beginning it amazes me how far it’s all progressed in a relatively short period of time.

Since then I have worked on projects ranging from very small businesses to Fortune 500 companies.

Arpatech: Currently you are working in Jamersan as Senior Developer, What are the common queries you faced during your work? When did you realize that you have a passion for programming?

Sean: Jamersan’s team has some of the most talented people I’ve ever had the pleasure of working with. It’s a fast-paced environment with an emphasis on continuing education. Our boss, TJ, wants us to be the best and makes sure that we have the tools we need to reach that goal.

Every day presents new and interesting challenges. The types of tasks I work on range from small code tweaks to creating in-depth custom modules to meet the client’s requirements. I enjoy figuring out the best Magento-friendly approach to solving problems. It’s very rewarding to finish a task then commit a well-formed module. Getting positive feedback from everyone after watching my code go from concept to production is a great feeling.

The earliest memory I have of wanting to be a programmer was when I started tinkering in Basic on a TI-99/4A when I was 11. Soon after, I wrote a blackjack program and a non-player character generator for Dungeons & Dragons in Basic on a Commodore Vic-20. Later on, I spent many days typing out the Basic programs from Compute magazine on my Commodore 64. It was around that time that I knew that programming was something that I never wanted to stop doing.

Arpatech: Nowadays, Magento is a very popular e-commerce platform. What are some useful features in Magento 1x for developers? Share some tips for newbies who want to get started with Magento?

Sean: There are some built-in developer tools in Magento that are good to know. Under System -> Configuration -> Advanced, there’s a section named “Developer” that has the Template & Block Hints feature. That’s a pretty commonly used built-in feature but there are third-party utilities that make troubleshooting Magento a lot easier.

The oldest and most useful utility I would recommend for Magento developers is CommerceBug by Alan Storm. He recently released CommerceBug 3 which has support for Magento 1 and 2.

Another good tool that’s educational and useful is Chris Manger’s Enhanced Developer Tools Extension. It has a lot of really useful features for Magento developers and people who want to learn about Magento. When a developer types in a word that’s in a block, then it provides the block’s name, class, template file, layout XML file, and other miscellaneous information.

n98-magerun is another must-have for any serious Magento developer. The magerun.net site describes it as “a huge set of well-tested command line commands which save hours of work time.” That’s it in a nutshell. There are versions for Magento 1 and Magento 2.

The most important advice I can give to someone starting out with Magento is to choose a good IDE. I highly recommend phpStorm with the Magicento plug-in. If you’ve never tried phpStorm then what are you waiting for?

Arpatech: In 2014 you were awarded StackOverflow Magento Badge, How do you feel about achieving these awards? What was your reaction when you were nominated :)?

Sean: StackOverflow is great and I try to participate as much as time allows. Achieving the Magento badge means that my answers have helped a lot of people.

According to StackOverflow, my answers have reached ~456,000 users. I’ve had co-workers and other developers tell me that they were looking for an answer to a problem and my name came up from SO during their search. Programmers everywhere use it regularly to find answers to their problems. To be able to get help from talented people like Ben Marks, Vinai Kopp, Marius Strajeru and too many others to name, makes StackOverflow and Magento StackExchange an incredibly valuable resource.

Arpatech: Sean, You have multiple Magento certificates (MCSS, MCD+, MCD). What’s your recommended learning platform for Magento certification? What are the advantages of being a certified Magento Solution Specialist and Developer Plus?

Sean: I learned a lot by filling in the study guide outline provided by Magento for the MCD exam.  I don’t think it’s a good idea to get a certification just for the sake of having it. A certification should be something that happens organically as a programmer’s skill level improves.

In March of 2011, I was able to attend Magento U led by Ben Marks and Vinai Kopp. I learned more in that week that the previous years of working with Magento.

I took the beta MCD certification at Innovate in 2011 and failed in it. I tried again in 2012 and missed it by 3 questions. I’m a horrible test taker and tend to blank out during tests. After that failed attempt, I spent every spare minute of the next three months studying. By the time I re-tried I passed by a very comfortable margin. Don’t get discouraged if you fail. You only truly fail if you give up!

The main advantage of having any Magento certification is that it helps confirm that I’m familiar with the platform. The MCD+ demonstrates that I understand the back-end/coding side of Magento Enterprise and the MCSS lets people know that I’m familiar with the Magento admin and that I know how to use Magento to meet a client’s business needs.

Arpatech: Extensions are very useful. Which extensions do you recommend for speeding up Magento 1.x? Or do you recommend coding your own extensions? Share some useful tips for those developers who want to build their own extension.

Sean: Mirasvit’s FPC extension is a great full page caching module for speeding up Magento 1. Of course, simply following best coding practices is crucial to keep a Magento store running quickly. When a client has speed complaints from a site and they’re on a decent web host then chances are they have some improperly coded features bogging things down.

More recently I’ve been working with Google PageSpeed. It’s an amazing server component but it takes some server admin experience to get everything working properly. I have been very impressed by the results of a finely-tuned PageSpeed configuration.

I recommend coding your own extensions whenever possible. Purchasing extensions can be a huge time-saver as long as it’s high-quality and has ongoing support. It can be overkill if the goal is to add a minor change to the site.

Arpatech: How do you see Magento in the coming years with Magento 2? How can merchants improve their sales with Magento 2? What further features are you excited to see in Magento 2? If you get a chance to include some features in Magento 2, what would be those features? What are your expectations for Magento 2 in 2016?

Sean: Considering that there’s still sites running older e-commerce platforms that pre-date Magento, I don’t expect Magento 1 to go away at it’s prescribed end-of-life. It wouldn’t surprise me to see someone fork it to continue improving the platform after Magento officially stops supporting it.

Any developers that think Magento 2 is like “starting over” need to remember that the Magento developers have taken all of the lessons learned throughout the course of building Magento 1 and incorporated them into 2.

I’m still learning Magento 2 but it’s all really clicking into place for me. I like it very much! I look forward to being as engrossed in Magento 2 as I currently am in Magento 1.

Merchants can expect better performance and scalability with Magento 2. It has a more contemporary feel to it and is built with responsive design in mind from the beginning. A faster site with multiple browsers and mobile device support means that a Magento 2 site can reach a larger audience with faster page load times which will result in higher conversions.

Arpatech: You were an attendee of Magento Imagine 2015. In your opinion, what are the advantages of attending the Magento conferences like Magento Imagine, Meet Magento, Mage Titans for amateurs who want to involve themselves in the Magento Community? Share some of your interesting moments from Imagine with our readers.

Sean: Magento goes all out at their conferences. They’re a lot of fun and even someone who has just started learning Magento can benefit from the experience. Being able to attend lectures hosted by the top people in the community is awesome.

It would be impossible to pick a specific moment that stands out because the entire event is amazing!

I always learn a lot, whether by watching a presentation by a Magento master or chatting with other attendees throughout the day. I always leave feeling like the costs to attend were well worth it.

Arpatech: Sean, Which conferences you are going to attend in the future? In 2011 you made a big Magento group “Magento Certified Developers” on Facebook. So, how has your experience been so far with the community members? Which social platforms are you using to stay connected with the Magento community?

Sean: I’m planning on attending Magento Imagine in 2017. I look forward to seeing what’s in Magento 2’s future first-hand, straight from the mouths of the developers and other giants in this industry.

I started the Facebook group in 2011 before the MCD certification was released. The goal was to create a social media forum that was focused on helping people find resources to learn about Magento. There’s close to 3,000 members now and no spam allowed. I will only approve posts that contribute something to the community.

I love the Magento community. I don’t think there’s another group out there more willing to help it’s members and freely share knowledge for the overall good.

Arpatech: So, Sean, let’s put Magento aside and talk about your personal interests. How you spend your time besides work? Do you like Sports? What’s your favourite place and how many international trips have you taken so far?

Sean: I’m not really a sports fan. I enjoy what I do so much that a lot of the time it doesn’t feel like work, so my work and hobbies sometimes overlap. In my free time, I follow augmented and virtual reality closely. I’m very excited to see the technology finally start to catch up with the VR dreams of thirty years ago.

My favorite place is where I live right now here in Port Orange, Florida. We were slammed pretty hard by Hurricane Matthew but luckily my area was spared a lot of the devastation that people close by experienced. My fence was blown away and we had some superficial damage but that’s obviously nothing compared to what others have lost. I was very fortunate but it’s bittersweet to be relieved about that since so many lost their lives and homes.

I don’t travel a lot but I visited the UK (London) for six months in 2010. It was interesting to see how life is in another country. One of the major highlights was when my wife and I went to see Stonehenge on an after-hours tour where they allowed a small group of us to walk inside the circle of stones for an hour.

Arpatech: The Magento Community is huge. There are always some individuals who stand out in the crowd. Name some peoples that inspired and influenced you in the Magento world and inspire you with their work?

Sean: I tend to listen to everything that Ben Marks and Vinai Kopp have to say about Magento. I enjoy Vinai’s Mage2Kata series and would like to see more developers do similar things.

I worked directly with Ryan Street for a while and have learned a lot from him. He’s a very talented individual!

Alan Storm always gives back to the Magento community with his blogs and is very helpful. I have the highest respect for those that have taken the time to give back like he does.

A few months ago Alan Storm asked a question about Magento 2 on Twitter. I responded by posting “It makes me nervous when you have to ask Magento questions. You usually are the one with the answers.”  He replied, “I have the answers because I ask the questions.”  That stuck with me. I’ve never been afraid to say “I don’t know” and seeing a talented programmer like Alan Storm ask others for help has been motivating me to ask a lot more of my own questions.

Arpatech Website

Oct 28, 2016

How to Configure Multiple Stores in Magento 2

How to Configure Multiple Stores in Magento 2

Being one of the most powerful ecommerce platform in the industry, Magento boasts a stellar reputation because of its fluid functionality and secure infrastructure. And in this article we will discuss about how to configure multiple stores in Magento 2. So, we are all well-aware of the fact that there are many features which are launched by Magento from time to time. Multistore function is one of the features in Magento 2 which is for the merchants and developers. Magento 2 also provides you with the facility to setup multiple stores which you must have used in Magento 1 as well. But since we know that Magento 2 is absolutely different than the previous versions, it is a little difficult to manage features in it for those peoples who have just started doing development in Magento 2. This is because of the advancements that been made in the file system. So, without further ado, I’ll teach you the complete store configuration in Magento 2, so that you can further configure multiple stores in Magento 2 like a boss:

Let’s Begin:  

When you want to create a second store in Magento 2, you have to go to the Admin dashboard of your Magento 2 store and from there follow this path Stores/ Settings / All Storesimage08

  • There are three options present under “All Stores” which you can see as “Create Website”, “Create Store View”, “Create Store”. The first thing you have to do is to click on the ‘Create Website’ Button.

image02

  • Now you have to enter the name of your second store in the Name field.
  • Then enter your second store’s code name in the code field. (Make sure you remember your second store’s code)

image01

  • Next, for your second store’s website you have to click on ‘Create Store.’

image04

  • Go in the “Web Site” option and select your website for your Magento 2 Store.
  • Go in the “Name” field and enter the view name.
  • Go in the “Root Category” there select “Default Category” and then click on the “Save Store” button.

image03

  • Once you have created your store, you now have to create the store view for your second store for Magento 2. Now Select and click on “Create Store View”

image06

  • Go in the“Store” field and Select your Magento 2 store
  • Go in the “Name” field and then you have to enter your Store View Name
  • Go in the “Code” field and enter the code which you previously entered in “Create Website”

image05

  • Once you have done this, now click on “Save Store View” button. After completing this step you can now connect your second store domain with the new store that you have just created. Now follow this path Stores > Settings > Configuration
  • In “Configuration” click on your second store by selecting the option in “Store View”, it will be similar to what you can see in the top image.

image07If you’ve followed the Magento 2 store configuration we’ve mentioned above, you must have successfully created your second store in Magento 2. Next you have to set values for MAGE_RUN_TYPE and MAGE_RUN_CODE which you can do by applying the following code in your index.php entry point:

<?php
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'yourcode.yourdomain.com';
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);
?>

Now make sure you Save your index.php file. After doing this you have to set the values in .htaccess file. This section here discusses the process through which you can set values for MAGE_RUN_TYPE and MAGE_RUN_CODE for using Apache Server Variables SetEnvIf or RewriteCond. To setup SetEnvIf, you have to add the following in your .htaccess file after “RewriteEngine on” this:

SetEnvIf Host .*example.com.* MAGE_RUN_CODE=yourcode.yourdomain.com
SetEnvIf Host .*example.com.* MAGE_RUN_TYPE=website

To setting up RewriteCond, you should add the following code in your .htaccess file after “RewriteBase /magento/” This:

RewriteCond %{HTTP_HOST} ^(.*)example\.com
RewriteRule .* – [E=MAGE_RUN_CODE:yourcode.yourdomain.com]
RewriteCond %{HTTP_HOST} ^(.*)example\.com
RewriteRule .* – [E=MAGE_RUN_TYPE:website]

Now again Save your .htaccess file.

Conclusion

Congratulations! Now you have successfully configured multiple stores in Magento 2 and you can get started with it. I suggest since you’ve worked so hard configuring it, it’s integral that you host it on a secure and best ecommerce hosting platform. So that you get the best security, and your cart’s abandonment ratio remains below the danger zone at all times. So, let us know which hosting platform you are using for your ecommerce business in the comment section below and if you’re satisfied with it.

Arpatech Website

Oct 25, 2016

Magento-Adobe Partnership Will Soon Revolutionize E-commerce Experience

Magento-Adobe Partnership Will Soon Revolutionize E-com...

The E-commerce leader Magento announces partnership with Adobe to transform consumer experience. This partnership was officially announced at Shop.org Retail’s Digital Summit event. This partnership is bringing powerful personalizing tool together with the flexibility of E-commerce suite which will be able to provide the shoppers more freedom and customization.

The comprehensive content Management of Adobe Experience Manager (AEM) is providing solutions to build websites, mobile apps, and forms. This also enables you to manage marketing and content assets. The powerful capabilities of Adobe Experience Manager along with Magento Ecommerce platform will result in high customizations and personalized user experience. It will make buying and selling experience better than ever.

The Partnership Will Provide Merchants With Following Key Highlights:

  • Shopping experience:  It will allow transactions anywhere around the globe. The integration fulfillment and customer engagement to the store.
  • Enhance Personalizing: It will provide the customer with an enhanced shopping experience. It will increase the personalizing aspect greatly and integration between mobile, web, and your own retail store.
  • Innovation and Business Agility: Providing the business, sales, and marketing with real-time information. The data will be more meaningful and will allow staying ahead of consumers demand.
  • Command Architecture: It will give the customer more freedom along with enhanced digital experience.

Magento and Adobe are creating a powerful platform to engage the shopper and give them a unique and enhanced shopping experience. The Magento-Adobe Partnership will definitely revolutionize shopping experience for every individual and that is something the e-commerce industry is looking forward to.

Arpatech Website

Oct 24, 2016

How To Display Customized Category Listing In Magento Store

How To Display Customized Category Listing In Magento S...

Today, we will learn how to display custom category listing block in Magento 1.9. In the end of this tutorial you will be able to create a custom category list and display it in the left panel of your Magento theme.

Create Category.phtml File To Show The Category Listing.

Go to the template/catalog/navigation and create a (.phmtl) file. I have made the process simple for your understanding and created the file with name ‘category.phtml’. You can create a file with your own name. For this tutorial, we will be using ‘category.phtml’ as the file name.

Write the following code in category.phtml:

Today, we will learn how to display custom category listing block in Magento 1.9. In the end of this tutorial you will be able to create a custom category list and display it in the left panel of your Magento theme.

Create Category.phtml File To Show The Category Listing.

Go to the template/catalog/navigation and create a (.phmtl) file. I have made the process simple for your understanding and created the file with name ‘category.phtml’. You can create a file with your own name. For this tutorial, we will be using ‘category.phtml’ as the file name.

Write the following code in category.phtml:

<?php

// get first level categroy children

$cat = Mage::getModel('catalog/category')->load(2)->getChildren();

$catIds = explode(',',$cats);

?>

<ul>

<?php foreach($catIds as $catID): ?>

<li>

<?php

$category = Mage::getModel('catalog/category')->load($catID);

//display category name

echo $category->getName();

//get subcategory

$subcats = Mage::getModel('catalog/category')->load($category->getId())->getChildren();

$subcatIds = explode(',',$subcats);

?>

// only display if sub-category exist

<?php if(count($subcatIds)>= 1 ): ?>

<ul>

<?php foreach($subcatIds as $subcatId): ?>

<li>

<?php

$subCategory = Mage::getModel('catalog/category')->load($subcatId);

//display sub-category name



echo $subCategory->getName();



?>

</li>

<?php endforeach ?>

</ul>

<?php endif  ?>

</li>

<?php endforeach ?>

</ul>

The above code will list the category and subcategory of the catalog if it exists.

Now, we have to call this code somewhere to display it.

Navigate to the layout of your theme. Find the ‘catalog.xml’ file and edit it. Look for the option “Default layout, loads most of the pages”. This acts as a global scope and it is usually displayed in most of the pages.

Find the block <reference name=”left”> [Note: You can add this to any location you want. For this tutorial, we will display it in the left panel. So, just before the block ends </reference> add the following code:

<block type=”catalog/navigation” after=”cart_sidebar” name=”catalog_category” template=”catalog/navigation/category.phtml”/>

block

Tadaa! you are done. You have created the custom category listing block which will be displayed on the left panel. For any queries feel free to comment below.

The above code will list the category and subcategory of the catalog if it exists.

Now, we have to call this code somewhere to display it.

Navigate to the layout of your theme. Find the ‘catalog.xml’ file and edit it. Look for the option “Default layout, loads most of the pages”. This acts as a global scope and it is usually displayed in most of the pages.

Find the block <reference name=”left”> [Note: You can add this to any location you want. For this tutorial, we will display it in the left panel. So, just before the block ends </reference> add the following code:

<block type=”catalog/navigation” after=”cart_sidebar” name=”catalog_category” template=”catalog/navigation/category.phtml”/>

block

Tadaa! you are done. You have created the custom category listing block which will be displayed on the left panel. For any queries feel free to comment below.

Arpatech Website

Oct 24, 2016

“It’s easy and fun to lead a team while you are in the second phase.” Interview with Tim Bezhashvyly

“It’s easy and fun to lead a team while you are...

Tim Bezhashvyly is a Magento certified developer with over 17 years of PHP and 7 years of Magento development experience. He is a reputable Software Engineer and Senior Magento Developer at 21sportsgroup. Tim possess great information regarding PHP and Magento and is an active member of Magento community.  He also loves writing community extensions, publishing articles and speaking in conferences. Today, we got a chance to talk to him.

Arpatech: Tim, you have vast experience of more than 17 years in PHP development, how did you start you career with PHP? Did you face any problems at initial stage of your career? How did you overcome them?

Tim: Depends on definition of career. I started programming way before I was legally allowed to be professionally employed. I guess I was 12 when I started with Basic, then Pascal, Turbo Pascal, Delphi and ActionScript. At university we had a boring course of C++. On the 3rd grade of study, I started working for an agency providing a support of an SAP-like system. So this was my first “professional” experience. This company had quite a crappy website so they have decided that I had to rebuild it. By that time I was already fine with HTML and CSS and to complete the picture I started learning Perl. However this was the time decay of Perl begun and rise of PHP. So the decision was obvious.

Arpatech: Tim, you are certified Magento Developer with over 7 years of experience, you lead Magento team of 21sportsgroup. Please share your experience with Magento as a team lead.

Tim: When I’m asked about Magento, I love to quote my friend and colleague Fabian Blechschmidt: “When you start working with Magento you don’t get a thing and you hate it [Magento]. Then you start understanding something and you feel good. This short period of time you adore and praise Magento. Unfortunately this ends when you realize the problems of Magento design and the limitations it puts on you. Love ends here, and where love ends disgust starts.

It’s easy and fun to lead a team while you are in the second phase. You are excited and seeding your excitement around. It is hard however to promote Magento once you understand it is not just ignoring good practices but even prevents you from applying them. The main pain point here is a test driven development and unit testing in general.

Arpatech: Our audience is eager to know what issues you usually face as a developer. Please tell about some best practices a developer must follow.

Tim: As I already mentioned testing it very hard with Magento. And passing tests is the first principle of Kent Beck’s 4 rules of simple design. It’s also hard with Magento to keep up with (Uncle) Bob Martin’s SOLID principles as just a notion of protected methods is killing an idea of Open Closed Principle. Other principles are still possible to apply but when the framework itself in not following them it feels like fighting windmills.

Magento 2.x was a great opportunity of turning things into a right direction but unfortunately this chance was not used.

Please don’t get me wrong, I still think Magento is a viable piece of software. At least there’s no better alternative on the market yet. I just feel like all the love around it is a bit exaggerated.

Arpatech: Tim, you have contributed in Magento Community by writing community extension. Can you suggest a quick guide to newbie developer of Magento?

Tim: This is very easy if you would like to do it quick and dirty. In the beginning it even feels like Magento itself invites you to hack into the core classes by allowing just to copy them into a local scope and modify them there.

It’s getting tricky when you try to write extensions according to programming principles mentioned above. In my opinion the only possible way here is to write module as a standalone PHP library and then make a thin layer which will connect it to Magento. This will give you an opportunity to start with tests, keep your own structure and so on. This connectivity layer will definitely be ugly but at least you will keep those bad things isolated. When you can not solve the problem, control it.

Regarding tutorials of this approach the first thing that comes to mind is the presentation by Vinai Kopp at Mage Titans back in 2014.

Arpatech: Let’s get back to your company, 21sportsgroup. What is the best project you have worked on so far? Did you face any difficulty in managing it? If yes, how did you overcome it?

Tim: The main project is a company web shop based on Magento Enterprise Edition. The difficulties we faced were balance between server response time and data consistency. With Magento full page cache enabled data immediately became outdated and without cache the performance degradation was overwhelming.

Unfortunately this is the problem most Magento-based shops of enterprise level are facing.

After trying various things and advising with other specialists and consulting companies the decision has been made to replace Magento catalog completely. This is how Lizards & Pumpkins community project has been born.

Arpatech: Tim you are an enthusiastic developer, how do you manage to stay updated with the community? Which platform you generally use for sharing knowledge and getting in touch with the community?

Tim: For getting Magento news online I’m using Twitter. You will get my recommendation of people to follow in the next section.

Besides of Twitter I would definitely recommend to meet community online. Here Thomas Fleck, Thomas Goletz and other members of Meet Magento Association made a great work of organizing series of regular events all around the globe. There are also regular Magento Unconferences in Germany and now also in Netherlands. I love those even more.

Arpatech: You are an active member in Magento Community and have a good circle of friends and colleagues. Can you name some enthusiastic who you personally follow? Please tell our readers about the best way to interact with the community?

Tim: Definitely follow Vinai Kopp and Ben Marks. If you want lots of Magento love and unicorns mind following Phil Jackson and Kalen Jordan. For some healthy portion of criticism I recommend following Cyrill Schumacher.

Among others: Sylvain Raye, Anna Voelkl, David Manners, Bastian Ike, James Cowie, Fabrizio Branca and Fabian Blechschmidt (but you will have to filter out his non-programming tweets).

Sorry to whom I forgot, I love you all.

Arpatech: There are many good sources of learning and getting started with Magento. Can you suggest a newbie developer on how to start learning Magento. Is there any good source you would like to share with them?

Tim: Get Grokking Magento book by Vinai Kopp.

Arpatech: Let’s talk something out of your professional career. How do you spend your free time? Do you love any sports, traveling, reading books or just a peaceful sleep 🙂

Tim:  I’m writing poems, playing in a punk band, acting in movies and participating gay orgies. Unfortunately I’m a same boring geek as most of you.

Arpatech Website

Oct 21, 2016

Get Ready For the Very First Magento Meetup in Dubai on 29th October

Get Ready For the Very First Magento Meetup in Dubai on...

The most anticipated and awaited Meet Up for the Magento Community is finally here! Get ready for the Very First Magento Meet Up Dubai! Mark the date on your calendars and free up your schedule.

One of the fastest growing business city in the world, Dubai, will be welcoming Magento Experts and E-commerce Community Members on the 29th of October this year at the Emirates Concorde Hotel.

 

The purpose of the organizers is to gather Magento and e-commerce community members at Dubai and provide a platform which will enable the participants to interact with each other, get a chance to share your experiences and discuss the latest developments which have taken place in Dubai e-commerce Industry.

If you happen to be passionate about Magento and e-commerce being a developer, online store owner or even someone who has just stepped foot in the e-commerce industry, you should be a part of this meetup. Magento Meetup is the place to gather useful insights and tap into a lot of opportunities by meeting other Magento and e-commerce community members in Dubai.

From our prestigious platform of Magento Meetup, we are giving you the opportunity to contribute to the discussion by being a speaker on the topic of your choice related to Magento. It can be a great opportunity for you to let your voice echo through the community and share your learned techniques with the attendees.

We look forward to hosting an awesome meet up while you are onboard with us.

Revive, Discover and Join Magento Meetup Dubai!

Bring in your friends related to Magento and e-commerce community and spread the word around the globe.

Do You Want To Participate As A Speaker?

If you are excited to share your experiences and insights about Magento as a speaker then drop a formal email to us at [email protected]

Sponsorship Opportunity

You have an excellent opportunity to shine as an official sponsor in the very first Magento Meetup Dubai.

For sponsorship details email us at [email protected]. Supported by Magento Inc. Arpatech and Meet Magento Association.

There are limited seats available, so act fast and register now to be the part of building the first Dubai Magento Community!

For Further details subscribe to our Meetup channel.

Arpatech Website

Oct 18, 2016

Insight edges of Magento Front-end Development With Bartek Igielski

Insight edges of Magento Front-end Development With Bar...

Arpatech:

Bartek, you are a Front End Developer and specialized in Magento. How did you start your career? How long have you been involved with Magento? What was the reason for choosing this eCommerce platform?

 

Bartek Igielski:

I started doing Web related stuff in 2008, when I was 16, by doing a simple HTML and CSS page for my family company. Then was few other pages, I was in technical college with IT specialization, so at all a spend a lot of time on solving various issues, working on my web and design skills (yeah, I though about being a designer), getting more and more familiar with programing, often even replacing teachers on their duty 🙂 At second class we have apprenticeships and I spend this time working in my friends company as a guy assembling systems of industrial automation. They were pleased with my job, so I spend whole vacations working. After third class, I tried to catch some freelance web project, but I failed and spend most of the time in the same company. After the fourth year of school and graduation, I have long vacations (4 months) before college start and decided to work in the same company, but… things changed. I started working as a guy in the office, who cares about various IT things. But then raised up a great project – we are going to create SCADA (Supervisory Control And Data Acquisition) based on web technologies and I’m going to be a Web Designer / Developer here! That’s how I created my first RWD project (it still works!) in 2012. Right after that, I start my quick episode with college. I don’t like learning not necessary things, so after a year I quit, so probably I’m never gonna say “Trust me, I’m an engineer” 🙂 In 2013 I started my first full-time job as a front-end developer. I was working on Rails-based web apps and it was my first time with eCommerce solutions, on SpreeCommerce. After 8 months I was forced to change this job, because my boss wasn’t a solid guy. And that’s how in April 2014 I started my work at Snowdog – without PHP, JavaScript or even Magento experience. So unfortunately I didn’t choose Magento, Magento choose me 🙂

 

Arpatech:

You have worked on several different projects, you are master-mind of Frontools and SASS based Blank theme projects. Can you please tell our readers more about it?

 

Bartek Igielski: Let me give you a quick history lesson – Magento 1.0 was released in 2008. In 2014 they released 1.9.1 with “RWD” theme, which refreshes state of front-end in Magento, but we thread this just as a temporary solution before releasing Magento 2.

Magento 2 was released at the end of 2015, but unfortunately, it doesn’t fit needs of front-end developers. That’s why we, as a Snowdog, decided to change this on our own, but also release as a free open source modules ready to use. Frontools are set of tools for the front-end developer to based on Gulp.js to simplify and speed up development. SASS Blank theme is a translated form LESS version of build-in Magento 2 “Blank” theme, with some necessary modifications and simplifications. Our actions were noticed by community and Magento executives. They announced us as a community leader of “Moving from LESS to SASS” project and now we are working together trying to find out a way to improve the state of front-end of Magento 2.

 

Arpatech:

What was your motivation for choosing a career as a Front-end Developer?

 

Bartek Igielski:

I just like working on the edge of technology and design, being a link between two worlds. A few years ago I found a Saul Bass quote that really well describes my relationship with front-end “I want to make beautiful things, even if nobody cares.”.

 

Arpatech:

Bartek, you have vast expertise in front end development. Please share some tips to the readers regarding front-end development and choosing a career as a front-end developer.

 

Bartek Igielski:

Front-end technologies are the one of evolving fastest in IT world. Every year we have a new JavaScript framework, styles processor, some new features in browsers, new screen sizes, new input types… it’s just evolving. If you like constant learning and care at least a bit about design, it’s right place for you.

BTW. JavaScript is future, now even NASA is using it to monitor space missions!

 

Arpatech:

What is the best project you are engaged with or have done in your entire career? What are the challenges you faced and how you tackled them?

 

Bartek Igielski:

It’s hard to choose one project. Creating software processes, so everything evolves over time. I’m still believing that *this* project wait for me somewhere in future.

 

Arpatech:

You have giving presentations in Magento Meet-ups and conferences. Recently you presented on “Moving Magento 2 from LESS to SASS” in Meet Magento 2016. Can you please highlight the key points? Why is SASS more effective than LESS?

 

Bartek Igielski:

SASS is way more strict language, it will not let you hurt yourself or your teammates writing weird code. Things like the global scope of variables, ability to chain mixins or lack of proper conditional statements and loops hurt. It’s hard, to sum up this topic in few words, so I’d advise you to watch the recording of my talk at #mm16de.

 

Arpatech:

You are engaged with Magento conferences and meet-ups. What do you gain from these conferences? DO you recommend to attend such conferences? Will you be willing to attend more conferences in the future?

 

Bartek Igielski:

I like sharing my ideas and knowledge. Preparing to talks is always the best way to push yourself to learn new things.

Attending at conferences is always a great thing, every time you will learn something new or heard for the first time about a cool solution for your problems or just stay updated with current state of Magento development. It’s also a great place to just talk with other devs. For sure, conferences are almost always great 🙂

 

Arpatech:

You will be presenting on “Improving State of Magento 2 Frontend” in the upcoming Meet Magento 2016. Can you please highlight some key points for the readers? Please tell readers about the best practices involved when working as a front end developer? Please give some suggestions to newbies on front end development.

 

Bartek Igielski:

I’ll be talking mostly about templates and styles part. We are working on establishing the solid naming methodology because currently is one of most frustrating part of working with styles in Magento, but it’s normal, naming things is always hard.

Advice for newbies? Remember that somebody will read and edit your code in future, so please try to not make them cry 🙂

 

Arpatech:

You have a goodwill in Magento Community, your contributions have made improvements in Magento World. Who are your inspirations in Magento community? Please tell some names to the readers who they can follow to learn more about Magento front and back end development.

 

Bartek Igielski:

For me, real open source spirit in Magento Community is still in early phase of development, we can easily count all useful modules on our hand’s fingers, companies still decide to build everything just for own purposes instead of sharing solutions.

State of Magento front-end never was so great, it’s always behind the current state of technology, mostly because of long development cycles, not so frequent releases and complexity of the whole system. That’s why I always try to take inspirations from outside, limiting just to own, well known “neighborhood” isn’t so good when are you looking for improvements.

 

Arpatech:

Apart from work, you are a technology freak and also likes music. Which technology fascinates you the most? What is the genre you prefer in music? What do you do in your free time?

 

Bartek Igielski:

Nowadays everything is tech, I just love to track how things are designed and build. I’m in love with Elon Musk ideas  – electric self-driving cars, self-sustaining housing, solar power and of course Mars colonization plans (I’d love to live here), this guy is amazing.

Mostly I’m listening to metal-related genres like power metal, symphonic metal, heavy metal (I’m in love with Powerwolf), but right now I’m also making a quick flashback with trance music. It changes over years so much and I’m just stay with good old classics, like old episodes of Trance Around the World and the State of Trance.

In free time I’m an XC bike rider (still thinking about switching to Enduro…), craft beer drinker, gamer and just a lazy man 🙂

Arpatech Website

Oct 14, 2016

More Articles by Arpatech

Design

design for business
logo design
problem-solving web design
ui/ux
product design

Art

motion design
branding
illustration
icons
logo design

AI

machine learning
deep learning
theory of mind
expert system

Development

web development
app development
software development

Apps

app design
usability
mobile app
animations