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

“It’s almost like you have to tame Magento” – Interview With Magento Front-End Developer, Ben Crook

“It’s almost like you have to tame Magento̶...

Ben Crook is a Magento evangelist with years of  front-end development experience.  He enjoys creating responsive, easy to use, smoothly-coded websites. Ben loves learning new skills and techniques. He is passionate about creating responsive websites and a proud programmer who loves coding by heart. So, let’s start the interview and get to know more about Ben:

Arpatech: Ben, you are a Front-End Developer and specialize in Magento. How did you start your career? How long have you been involved with Magento? What was the reason for choosing this platform?

Ben: My first attempt at web development was around 12 years ago at the age of 14, I exported a design from Photoshop then hacked it to pieces. As you can image this was the worst code known to man (even in the days of using tables for the layout!) and pretty difficult to work with, so after a few months I lost interest.

Fast forward around 7 years and I wanted a career change so thought about what I would enjoy doing for 8 hours a day, and web development/design was my choice. I spent a few months learning the basics again and was lucky enough to get offered a front-end developer and designer role at a small agency, this gave me experience on a wide variety of websites from one page sites up to custom eCommerce solutions.

2 years later I got speaking with somebody who worked at Space 48, after visiting the office and meeting some other members of the team I was sure it’s the place for me. So with the help of Tony Brown I spent a few difficult months learning Magento and eventually got offered a job with Space 48. After spending some time with Magento I grew to be a big fan, and still am to this day!

TL:DR; I’ve been working with Magento for around 2.5 years, and I learned it so I could work at Space 48!

Arpatech: Ben, you are associated with Space 48. Please share your work experience as a front-end developer. Please shed some light on Best development practices as a Front-end developer.

Ben: I now enjoy working with the front-end of Magento, at first it was a huge pain and even simple tasks seemed overly complex but after gaining some experience across different projects it got much easier. It’s almost like you have to tame Magento, you have to show it some love, spend some time with it and after a while it starts to listen to you.

If I could go back to when I first started working with Magento I would tell myself to break it down into smaller chunks, so instead of diving in head first and being overwhelmed I could have concentrated on one area at a time such as layout XML, templates, the fallback mechanism etc.

My main tips:

  • Think before you code! For example – Plan out what layout blocks you need to edit/create, do you have all the assets/info you need, plan your file structure, could your changes affect other sections of the site?
  • Maintenance – One thing I have noticed with many Magento stores is they are not maintained, and I don’t just mean patches. The code you wrote 4 years ago is probably not so great now. Maybe you’ve dropped IE support, so remove the related code! (See Rebecca Troth’s talk about this)
  • Consistency – Be consistent across all your projects, if every project uses a different library or naming convention it makes life very difficult when you regularly jump between them.
  • CSS Specificity – My most hated thing as a front-end dev is overly specific CSS (nesting SCSS is a big cause of this), it can be very difficult to work with Magento’s themes because of this. But there’s no excuse when you’re building a new piece of functionality or building a theme from scratch! I’m a huge fan of the BEM naming syntax as it helps combat CSS specificity.
  • Don’t blindly follow Stack Overflow! I have seem some answers that overwrite core code get accepted, always think before you copy and paste.
  • Search for a class/ID instead of forever turning the template hints on.
  • Test, test, test, then test again. Never presume every browser and OS will handle your code the same.
  • Try PHP Storm + the Magicento plugin, this increased my productivity a large amount.

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 did you tackle them?

Ben: The project I’m proudest to work on is CharlotteTilbury.com, mainly due to the rapid international expansion and the many awards the website has won. But on the flip side it’s also one of the most difficult projects I’ve worked on due to the extra stores and customizations, if you don’t plan new stores correctly it can get messy fast.

To tackle this it’s all about planning in advance, make sure your file structure and fallback mechanisms is working for you and not against you – duplicate code is the enemy of maintenance.

Arpatech: You are engaged with Magento conferences and meet-ups. What do you gain from these conferences?

Ben: I enjoy conferences because I usually leave them feeling extra motivated and ambitious, and as Jon Woodall would say the Magento community thrives on sharing knowledge.

I actually haven’t attended any Magento meetups yet, but I will likely start attending the Manchester one next year.

Arpatech: Do you recommend to attend such conferences? Will you be willing to attend more conferences in future?

Ben: I recommend everyone attends at least one conference, whether that be one related to work or a hobby. It’s great to speak to people with similar interests, the knowledge you can take from certain conferences can be so useful.

I will definitely be attending more, my favourite conference at the moment is Mage Titans, I’ve never seen a conference with such a great community feel.

Arpatech: What do clients have in mind when they hear you suggesting Magento to them? Being a Magento specialist/Developer what do you suggest to them? What myths do the clients usually come up with?

Ben: I don’t usually get involved with clients up until the website is being planned/built so luckily I can avoid having to convince people. If I was in that situation I would start by mentioning the large brands that use Magento, such as SEAT, Kurt Geiger, or Burger King.

Arpatech: Ben, being a Magento front-end developer, who are your inspirations in the Magento community? Please share some names to the readers who they can follow to learn more about Magento front and back end development.

Ben: I don’t  have many inspirations when it comes to the front-end of Magento as it’s pretty hard to find front-end developers who openly focus and share knowledge on Magento (if you know of any please do share!), I get the impression most are front-end developers who just happen to work with Magento.

In general, the Magento developers I follow the most are:

Outside of development (but still within Magento) I suggest:

Arpatech: Apart from work, I follow you on twitter and I found that you are an avid gamer. What games do you play? Do you like first person shooting games? What else do you do in your free time?

Ben: I go through stages with gaming, I usually alternate between competitive games such as Counter Strike/Dota/Battlefield and more casual games like Skyrim/Fallout/Overwatch/Civ 6. I’m really enjoying virtual reality at the moment, every time I go on the HTC Vive I’m left amazed. For the social gamers out there I recommend Insomnia Gaming Festival.

If I’m not tinkering with Magento or gaming I’m likely to be either relaxing or out with my girlfriend. I also follow British Touring Car Championship on and off and watch a few TV series (Breaking Bad, Power, Game of Thrones).

Arpatech Website

Dec 9, 2016

“Magento Is A Really Complex Platform” – Interview With Magento Guru, Gabriel Guarino

“Magento Is A Really Complex Platform” R...

Gabriel is a web developer with over 7 years of experience in the Magento eCommerce system. He is in the web development field for more than 11 years, which includes PHP, HTML, CSS, and jQuery).  His website is http://www.gabrielguarino.com/. Gabriel also carries a stack of Magento certifications, he is a Magento Certified Developer, Magento Certified Developer Plus, Magento Certified Solution Specialist and Magento Certified Front-End Developer. Gabriel has also been a Keynote Speaker at various Magento conferences.Today, we got the privilege to interview this multi-talented Magento specialist.

So, let’s get started:

Arpatech: Gabriel, you have 11+ years of vast experience in web development and more than 7 years of experience of working with Magento. What made you so interested in working for the e-commerce industry?

Gabriel: I’ve been working hard to improve my skills since I was very young. A time came when I was able to make progress fast and then I started to see the results of my hard work. I successfully implemented responsive HTML5 websites, following SEO guidelines and best coding practices. However, when I started working with Magento, I realized that my work had a big impact for both merchants and customers: A good Magento implementation led to sales for the merchants as well as it was a good buying experience for the customers too.

At that point, I decided to learn more every day and challenge myself to exceed all the expectations of my clients.

Arpatech: Gabriel, being a Magento Certified Developer you know the ins and outs of Magento? When anyone of us gets stuck somewhere in our projects, we Google about our query. What do you do when you face such problems? Do you prefer community or Google first?

Gabriel: Magento is a really complex platform, and you always find something that you need to investigate. After 7 years of extensive experience, I found that the best method to investigate a specific problem is reviewing the Magento core. But nowadays, developers tend to search and rely on Google for their every query and if they are unable to find the perfect solution to their query, they are stuck and they don’t know what to do. But my approach is different. Every time I wonder how to do something in Magento, I start searching for code samples in the Magento codebase or look for a similar feature in the Magento core, and I try to find the module and the class in Magento that is in charge of that specific feature.

To me this practice is really special since using this way, you can review the code that the Magento team implemented on the platform, and that means that you will follow the Magento conventions instead of just finding the solution somewhere else on the Internet.

Well, if you cannot find the solution in the Magento core, I suggest opening a new post in the Magento Forums or Magento Stack Exchange.

Arpatech: What is the most frequent myth that e-commerce merchant come up related to Magento. How do you overcome it when dealing it as a professional solution specialist?

Gabriel: Sometimes, I found merchants complaining about performance or even random issues which are hard to describe and hard to reproduce. But my perception is totally different. I found that Magento is not the reason for those problems, the reason is the bad implementation by some developers and system administrators.

Whenever, I am given the task to debug those websites, I found really poor coding practices, duplicated class rewrites, overloaded third party extensions, and so on. Magento is great, but the community should study the best practices and implement them in a right way so that the Magento website can function in a proper way.

Arpatech: Gabriel, you have all certifications of Magento. Please guide our readers on how to choose between these certifications. Many people want to learn Magento but are unable to find the perfect guidance. Please guide our newbie developers on how to get started with Magento.

Gabriel: If you are a newbie and just starting with Magento, I recommend you to read everything about Magento 2, including the available books and the Magento 2 Developer Documentation. If you have experience in Magento 1, you know that the “new era” has come: Magento 2. If that is the case, you can prove your knowledge in Magento 1 since that would be your credential that validates your experience.

Well, if you are a back-end developer or don’t have much experience with Magento, you can take the Magento Certified Developer certification. And if you have a lot of experience as back-end developer, then you can attempt the Magento Certified Developer Plus Certification.

If you are a front-end developer, then you should choose the Magento Certified Front-End Developer certification. Finally, if you are a consultant or project manager with experience in Magento, then you can choose the Solution Specialist certification.

Arpatech: We all have some mentors and motivations in our lives. Who are your mentors in Magento Community? How do you keep yourself updated in the community?

Gabriel: I don’t have a mentor in the Magento Community, but I try to follow the people who are really working hard to make Magento a reality and part of their lives. These people have an active participation in the Magento Community and they keep sharing their knowledge and experience. Also, I keep myself updated by participating in the Magento Forums, and by doing that I am able to solve the issues and problems of Magento Community and other people in charge.

Moreover, I keep myself updated by getting in touch with Magento Forums by Sherrie Rohde, reading the posts by professionals and latest articles at #MagentoMonday Community Digest.

In addition to that, I am an active Twitter user and I follow most of the Magento community members. Plus, I follow the #realmagento hashtag to be updated with the tweets that the community is posting with that hashtag.

Arpatech:  You are the keynote speaker at many Magento conferences. Please share your experience as a speaker, and also guide our readers about the advantages of being connected with Magento Meetups and conferences.

Gabriel: Having good knowledge and an extensive experience in the field of Magento, makes me satisfied when I share it with newcomers and experienced people in the field. I take it as a good opportunity to be a keynote speaker and deliver presentations about interesting topics relevant to Magento.

When I am connected to the Magento meetups and conferences I myself get a lot of knowledge about trending topics related to Magento. Also, I take it as the good opportunity as I get the immediate feedback of my queries from speakers and attendees. So, it’s the great time spent in the Magento events.

Arpatech: Many people have faced problems when moving from Magento 1 to Magento 2, so, as a developer how do you convince merchants to move to Magento 2?

Gabriel: Magento 2 is the upgraded version of Magento 1 and it has come with a lot of improvements, bug fixing options, and new features. Thus, we can say that this upgraded version of Magento will dominate the Magento 1 and nobody would be using the old version in three years or less. In addition to that, the Magento Developer Documentation team is doing a great job documenting every single aspect related to Magento 2, which is also important for the merchant since more documentation means that they have a solid e-commerce solution supported by the Magento team and the Magento community.

Arpatech: Now, let’s talk something besides your professional life. What do you prefer to do to in your free time? What activities do you do?

Gabriel: I love every type of sports and I have made it my daily routine to go GYM after my hectic workday. On Saturdays, I go cycling on rural roads. I used to swim as well but adding a swimming to my daily routine was little time taking, so I am not doing it these days and has a simpler routine. Apart from daily GYM and cycling on Saturdays, I like reading everything related to Magento and web development, so I always read something new at night before sleeping.

Arpatech Website

Dec 2, 2016

“I still get nervous when interacting with the community, but my passion outweighs my fear” – Interview With Rebecca L Troth

“I still get nervous when interacting with the co...


Rebecca has been a designer, developer, and a secret poet. She is famous for her love for Magento. She is the devoted and passionate member of Magento community and currently working as a Project Manager at iweb.

Today, we got the chance to interview her and talk to her about her experiences with Magento. So, let’s get started!

Arpatech: Rebecca, you are a young professional and Magento Specialist. Our readers want to know your motivation for choosing Magento Platform and working for Magento community.

Rebecca: I came across Magento very early on in my career which I am so glad about because it has meant I have been able to focus my efforts on what I believe to be the best eCommerce platform out there with the best community behind it! Sure Magento drew me in and I love working with it, but it’s the passion from the huge & amazing Magento community that has kept me here.

Arpatech: Rebecca, you are serving as a Project Manager at iWeb. I have been engaged with some courses of Project Management and I love this field. Please share your experience as a project Manager and delivering Magento solutions to clients. What are the most frequent concerns of client?

Rebecca: Many moons ago I was a developer at a smaller agency which didn’t have any Project Managers and so I had a very mixed role of managing the clients and projects as well as developing and building the sites. I attended a conference in 2014 called DPM:UK, recently rebranded to DeliverConf, and was truly inspired by the speakers and attendees there that were immersed in digital project management! So much so that I decided to focus and take on my current role as PM with the awesome team at iWeb. In terms of concerns I have, generally, I try to keep them to a minimum. The projects we take on are high pressure and mean so much to the clients involved that when things go wrong it can be hard not to take it personally, but you just have to pick yourself up and keep working hard!

Arpatech:  As you say in your blog that you never heard of Magento before 2013. What took you to this platform? What was the motivation for choosing Magento as your career?

Rebecca: I have always had an interest in eCommerce but as a 20-year-old junior developer, I was just excited to be working on any web project and so being given the opportunity to work on large online shops using Magento was thrilling! I picked it up quickly and it wasn’t long before I was no longer considered junior. I have been just as passionate about the platform ever since and will continue to push its and my own development!

Arpatech: Rebecca, you are active Magento community member and run Magento YouTube Channel. Can you suggest newbie some tips to stay connected in this community? Is it really difficult to be part of the community?

Rebecca: My biggest tip would be to put yourself out there! I know it’s scary and difficult to do but the Magento community is a friendly one who are always looking for new talent! I recently wrote an article about my feelings when I was first joining the community and where I am now: Being a Magento extrovert is challenging. Just remember you are not alone and we all started as a stranger to each other. I still get nervous when interacting with the community, but my passion outweighs my fear (just about) so I will never let that stop me.

Arpatech: You are working as a project Manager and you are very close to Magento products. Many developers are still working on Magento 1 and most of them have not even thought of switching it. Why Magento 2 is still not famous among developers?

Rebecca: It is just not as well-polished as Magento 1 yet. Developers are having to learn on the job, are facing barriers and big changes with every new release, but officials at Magento are listening to the feedback from everyone using the platform and are pushing to improve the experience for developers. Unfortunately, it is just a waiting game at the moment and we are a little bit in limbo.

Arpatech: Being a Magento specialist, you love to write. Please guide our readers about the best practices of writing a blog.

Rebecca: Oh gosh! I do love to write but I am far from an expert and so all I can tell you is the approach I take and that is to be myself. I write my posts how I would say them, I use the same tone of voice and vocabulary as I do in my day to day life which I hope helps my writing come across more genuine. It seems to be working!

Arpatech: Let’s talk something about ecommerce store. We see a lot of competition in this sector. Please give some suggestion to our merchants on how to sell their first product online. What can they do to stand out of the cluttered online market?

Rebecca: It is such a competitive sector. Especially with the ease of getting set up online now, it is hard for even those in the business like myself to keep up! I would have to recommend not trying to go alone. The world wide web is a big place with experts on every niche you can think of! Rely on these experts to help you and learn from, be it for development, marketing, or customer service etc.

Social media is also a huge thing for businesses that I truly believe should not be ignored or taken for granted. No matter who your target market is, I can almost guarantee you they will be using social media in some way or another.

Arpatech: I searched for your interest in photography and found some amazing clicks. Your passion seems quite interesting.  How did you start as a photographer? If you get a chance to choose photography as your career, what will you do? What else do you prefer in your spare time?

Rebecca: I have always loved being behind the camera rather than in front of it. I appreciate everything on this planet and believe everything and everyone is beautiful and that’s what I love to capture. I did do a college course on Film and Television production too, so when I think of the ways my career could have gone, I like to think I could have been a director on a big fancy movie set! Haha.

Arpatech Website

Nov 25, 2016

This is How to Create Attributes, Sets and Groups in Magento and Personalize Them!

This is How to Create Attributes, Sets and Groups in Ma...

At times, the default Magento settings may seem too basic or could potentially lack the functionalities you want to have in your online store. Well, don’t worry, because, with little tweaks in Magento, you can make it work like a charm for your business. After all, we all want to create custom attributes for our desired brand to give it a personal touch, and that’s what this whole article is all about.

So, let’s get started with the basic attribute settings in Magento that can help you manage your products accordingly.

Adding Product Attributes

Go to Catalog->’Attributes’ and select ‘Manage Attributes’.

Click on ‘Add Attribute’.

Now, let’s name it “design”.  You can use any other name that suits your work.

Set the scope to ‘website’.

For this tutorial, we are making a drop down attribute for the product.

We don’t need unique value, so we will set it to no.

Now, we need the user to fill the value before proceeding. Set the values required to Yes.

Set input validation to store owner to none, as we don’t need validation for this attribute.

Now, select “Selected Products Type” in Apply To section. This is as we are only using this attribute in simple product. Select Simple Product.

Now, let’s set some front-end properties.

Set Use in quick Search: It is the search bar of your Magento website.  We set it to ‘yes’ so as to allow user to search for this attribute.

Advance Search: It is the advance search for your Magento store. We set this property to ‘yes’ so that the attribute is available in advance search.

Comparable on frontend: When customers are comparing products, would you like your attribute to be shown there? Select to ‘yes’.

Use in layered navigation: We set it to no as we don’t need it in the layered navigation.

Use in Search Result Layered Navigation: We set it to yes as we want to show in search Result of Layered Navigation.

Use For Promo Rule Conditions: If you want to use this attribute for promo or discount deals then set it to ‘yes’. For example: If we have a color attribute and we want to give all discounts to the red items on store, we can do this by enabling this on our magento Store.

Position: Now, this is bit tricky part. This is used to manage the position where the attribute will be displayed. If you have more than one attribute, the attribute with lower position number will be shown on top. Since we have only one attribute, so we will leave it blank.

Allow HTML Tags on Frontend: Set it to yes as we need HTML tags to display on front.

Visible On Product View Page On Frontend: Enabling it will allow the attribute to be displayed on product page before product tags. Set it to Yes.

Use For Product Listing: Set it to Yes.

Used For Sorting and Product Listing: In my case, it’s No.

Here’s how the configuration would look like:

Now go to Manage label/options.

Enter the name in admin. Write Design in admin.

Now, we need to give the options to the customer.

Example: We set two options for the customer:

Click on add option and fill all the fields with Round collar except for position. Set the position to 1 as we need to display it as a first option. Set it to default.

Now, repeat this and add another option with Crew Neck and set the position to 2.

Save the attribute.

Before moving forward, let’s learn something more about validation. Some validation won’t work for drop-down menus. You might want a text input. Simply select Text field from Catalog Input Type for Store Owner. You might need a validation for text field. Simply select the desired Input Validation for Store Owner. It can be changed to URL if you want to enter a specific URL.

Let’s proceed to attribute and set navigate to Catalog->Attribute and select Manage attribute sets. Once on this page, we can use the attribute set that we have already created or we can create a new attribute set.

To create new attribute set, click on Add New Set. I named it to Tee-Shirt. You can base this attribute to another attribute set. Here I used Default, based on property. Click to save attribute Set.

Now, on this page we can create groups and add attributes to them. But first, see the attributes of the left screen with a red circle. These attributes cannot be removed as they are default system attributes. Any attributed item without a circle can be removed. If you want to remove any attribute, simply drag and drop it to Unassigned attribute list.

You can see our newly created attribute in unassigned attribute list. Now let’s make a new group for this attribute.

Click on Add New and enter a new group name. I name it to My-Design.  Now drag our newly created attribute to the group we just created. Drag and drop design from unassigned attribute to My design group.  I moved design and color to the newly created group.

Click on save attribute set.

You are now the master of Attributes in Magento, but let’s test it out first.

For this, we will create a new product to test the attribute set.

Navigate to Catalog->Manage Products. Click on Add New Product. You can see your attribute set which you just created. Select ‘Tee-Shirt’ from Attribute set and continue.

You can see “My design”, the group we created. Select it and you will see the drop down box for design and color we added to the group.

We can even use existing groups and add the attribute to them. We can simply add it to “General” or any other group which is suitable.

This is how attributes in Magento works. I hope you were able to successfully create your first attribute in Magento. If there’s something that you need to discuss or felt that something’s missing, feel free to comment in the comments section below.

Arpatech Website

Nov 24, 2016

What Is The Main Advantage Of Using Meta Description Tag In SEO?

What Is The Main Advantage Of Using Meta Description Ta...

Meta Description Tag or simply as we call it: Meta Description, is a little description of the page that tells both the user and the search engine about the page’s content. They don’t show up anywhere on the page, but are available in the code. Meta Title and Meta Description both appear when you search something on search engines, and the results that you see are actually Meta Titles and Meta Descriptions.

This is how Meta Descriptions appear in search results:

Advantages of Using Meta Description For SEO:

Now, before executing SEO for your website, the main part is On-Page SEO. We actually have to keep two different perspectives in mind when writing Meta Descriptions:

  1. User Side
  2. Search Engine Side

Let’s first discuss the User Side:

  • User Side:

Writing smooth, catchy and attractive Meta Descriptions helps both the user and the search engines to better understand your page. It’s a fact that poorly written Meta Descriptions would yield bad results and may affect CTR (Click-Through Rate) and Search engine rankings.

So, now let’s discuss search engine side:

  • Search Engine Side:

The biggest question is, “How search engines works and how they pick Meta Descriptions?”

It all begins with what keywords or phrases would you like to appear in Search results, like, if we are a Furniture Company that makes furniture only in San Francisco, then these are the keywords or phrases that we would target in our Meta Description for our company:

Our keywords that we are going to target on a specific page:

  1. Furniture in San Francisco
  2. Furniture Supplier in San Francisco.
  3. Buy Furniture in San Francisco Online

We will make sure that these words surely appear in our Meta Description: Furniture, Supplier, Buy, Online and San Francisco.

So, this was just a basic explanation of how keywords and phrases are used in meta-descriptions to make our page relevant for both the users and search engines.  I hope that this article must have cleared the concept in your mind, and if there is something that needs to be clarified, comment in the comment sections below and we’ll make sure that you get an answer from our side.

Arpatech Website

Nov 18, 2016

This Is How To Easily Fix Magento 2 Installation Errors

This Is How To Easily Fix Magento 2 Installation Errors

Let’s face it! Very few of the online stores are out there which are running the default plug and play setup of any ecommerce platform. There are always some mandatory tweaks that everyone makes to personalize the store according to their needs. And Magento 2 is no exception. A lot of the times you are prompt with errors during Magento 2 installation, and you just go berserk when it happens. But don’t worry.  In this blog, I am going to address and solve the basic errors that occur during Magento 2 installation from the get-go till the phase where you add different products.

Magento 2 checks your system for the requirements and other configurations necessary to make it work. It uses the feature READINESS CHECK which checks the error related to any configuration or any incompatible version of your dependencies. This error won’t let you continue with the installation process. So, listen below are some of the common installation errors in Magento 2 along with the solution:

Check PHP setting:

This the most common error which occurs at the first step of Magento 2 Installation. The error state always_populate_raw_post_data = 0. It is possible that there are some configuration issues in you php.ini file. raw_post_data Don’t worry, it’s easy to fix.  Locate php.inif file in your wamp or XAMP respectively. You can search this file in the root folder or sub folder with name PHP. Easy way is to let your operating System search it for you. Once you locate the file, open it in your favorite editor (I use notepad++) . Find always_populate_raw_post_data and remove the semicolon from the start of the line and change the value ON to -1 Initially, it will be: ;always_populate_raw_post_data = On Change it to: always_populate_raw_post_data = -1 Now save the file and close it. Get back to your Magento installation wizard, you can see the error is resolved now.

PHP extension error in Magento 2 installation.

PHP extension intl is another common error that occurs in Magento 2 installation wizard. In most cases, PhP extensions are commented or turned off.

Stay calm. Go the php.ini file and find line php_intl.dll. You can see ;extension = php_intl.dll change it to extension = php_intl.dll Removing the semicolon will uncomment this line and activate php_intl.dll extension. Now save the file and go back to the installation wizard. This problem should be solved now.

The Web Page Has a Redirect Loop

This error is the most frustrating of all. Initially, it cranked me up, but patience  is the key. Whenever you come across this error, just stay calm and move to the solution. The simplest way to avoid this error is to use 127.0.0.1 instead of localhost in Web configuration. OR Go to your Magento Database and find the table core_config Find web/unsecure/base_url and web/secure/base_url in the path column Change all the values from http://localhost/”MagentoFolderName”/ to http:// 127.0.0.1/”MagentoFolderName”/ Now remove the cache by removing all the files and folders in the cache folder of Magento. Navigate to Root/var/cache and delete all the files and folder Now go back to your site. Everything should be perfect now. These are some common errors that might become a bottleneck when installing Magento. Let me know if you are facing some other error or issues while installing Magento 2. Feel free to comment in the comment section below: Learn how to configure Multiple Stores in Magento

Arpatech Website

Nov 16, 2016

Best Development Practices in Magento 2 – Expert Opinions Included

Best Development Practices in Magento 2 – Expert ...

Magento is one of the leading e-commerce platform in the world. Most of the big brands in the world use Magento for their e-business because of its flexibility, reliability and open-source nature.

Nowadays, online businesses that are using other ecommerce platforms are migrating to Magento with rapid pace because of it’s powerful inbuilt functionalities and rich features which continue to evolve, and the best bit is that it’s the only ecommerce platform that is genuinely driven by a community of great developers.

Along came Magento 2…

Just when the world was realizing the true potential of this powerful ecommerce platform, in the end of 2015, Magento released it’s new version “Magento 2” which turns out to be a phenomenal update and in some ways a more advanced version than its predecessor. Magento 2 is powered by PHP framework that really puts a developer’s life to ease.

Listed below are some of the New Features of Magento 2:

  1. New structure
  2. Full NGINX support
  3. Redis
  4. Full page cache
  5. Varnish cache
  6. CSS preprocessing
  7. CSS and JS Minification
  8. Catalog images caching
  9. Code generation
  10.  Requirejs for improved JS performance
  11. Session storage management
  12. XML validation

Best Development Practices in Magento 2

Now, beside the other ecommerce development platforms, Magento 2 specifically is a bit technical and requires advanced development skills. So, a lot of the developers get stuck while in the development process and then they seek expert’s advice from the Magento Community.

So, we thought, why not directly ask from the experts that in their opinion what are some of the best development practices in Magento 2 and which approach is the best. So, mentioned below are the responses that we got from Magento Developers which can really help anyone who’s just getting started in Magento 2 or even an advanced developer can learn a trick or two. So, here it goes:

Marius Strajeru
Magento Master 2016

The official docs and reverse engineering. That’s all I’ve used so far, and magento stackexchange of course.

 

 

 

Tobias Hartmann
Lead Frontend Developer at Sitewards

About Magento 2, as I said in the interview, we don’t know about a best practice. We tried to get information about it from conferences and by asking people but there are a lot different opinions about it and I personally think that this is a problem. Such a big framework should give solutions to that and to the modern workflows and should not raise such big questions. So far what we did in a magento 2 project we applied overrides on the frontend styles and switched classes within the templates but did not use the ui lib, how it should be used, because it appears to be too complex. And for sure, as Magento says by its own, don’t base on the Luma theme because it might change completely. The base should be the blank theme. Since the snowdog scss theme is on a good way I would prefer this for upcoming magento 2 projects.

Bartek Igielski
Front End Developer at Snowdog

– Write everything as a module and keep semantic versioning

– Magento (front-end) codebase isn’t great, remember to follow best practices, not their code standards (i.e. use BEM or other naming methodology, use SASS, ES6…)

– Do code review for every chunk of code and run automated tests – even simples checks using linters (ESLint, SASS-Lint, Stylelint, PHP_CS)

– Report bugs and contribute to Magento project – it’s open source, so if nobody reports a bug or propose some solution, probably it will not be fixed or changed.

 

Vinai Kopp
Trainer, Developer, Consultant

I’d say, “Decouple your code as much as possible from Magento 2 implementation details, or, if that isn’t possible, be conscious about the coupling. Wrappers for core classes are a good thing.

Also develop with Varnish as the FPC in mind, so don’t think every request will reach Magento. The built in FPC behavior is different and code that works with it can’t be assumed to work with Varnish.”

Sean Breeden
Magento Developer at Jamersan

Not sure if anyone else covered this or not but here’s my 2 cents on a good place to start with best practices:

A simple recommendation that I can make for working with Magento 2 is to adopt the same coding standards that Magento is using if you aren’t following them already.

For years, I worked on projects that required fast turnaround times so it caused me to lose focus on the importance of adhering to standards. Quality suffered and my progress seemed to stall out. It wasn’t until I started strictly following coding standards again that I saw significant improvements in my ability to write good code.

Magento recommends following the Basic Coding Standard and Coding Style Guide when creating extensions. There’s a lot of common sense things in there that any developer can use to improve. Not only will your code become easily readable, it may have a possibly surprising side-effect of increasing your skills!

Basic Coding Standard – http://www.php-fig.org/psr/psr-1/

Coding Style Guide – http://www.php-fig.org/psr/psr-2/

Daniele Rutigliano
CEO Ecommerce manager at Aproweb web agency

First of all it is necessary to analyze the needs of commitment and the features of the project. In some cases Magento 2 could be not right version and there are not knowledge and plugins to fast use.

At the second you have to install your ecommerce on test server. As with Magento 1.x you have not edit the core software but to use the override way. At the end check the log files and resolve ALL bugs and errors: your Magento will be faster.

Riccardo Tempesta
Co-Foundeer, CTO at IDEALIAGROUP srl

Fighting against Magento 2 coding can be an hard work and it requires good programming skills and framework knowledge.

There are good practices you can follow to achieve a good result. With “good result” we mean a better stability, a shorter coding time and less headaches.

We wrote down 10 of the most important rules in the Magento programmers life:

 

Rule 1.
Never start coding Magento 2 without knowing at least a bit of Magento 2 framework theory. Magento 2 is one of the most complex framework in the world and exploring its code without knowing where to search can be really frustrating.

Rule 2.
Always follow Magento 2 coding guidelines, because you will not probably be the only one working on your code. Remember: “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”

Rule 3.
Magento 2 requires a lot of additional coding but it is based on simple and clear concepts, so if it is too complicated then probably it is not the right way to do it.

Rule 4.
Do not waste your time and use tools like “MSP_CodeMonkey” or “MSP_DevTools” to automatically write boilerplate code and debug your application. They are free while your time is not. They do not make mistake while you can.

Rule 5.
Use the right IDE, we use PhpStorm with Magicento2 and xdebug integration. They save you a lot of time. We know it is not cool as programming with “vi”, but we are in 2016.

Rule 6.
If you do not know how to do it, then look at Magento source code. Magento code is often a source of inspiration when you are approaching something new.

Rule 7.
Write integration tests and test units. Upgrading a Magento version can break some of you custom modules or third party modules and integration tests can save your week-end.

Rule 8.
Always use git to version your code, use an automated deployment tool like capistrano and use a local virtual machine for development (vagrant or docker can be good tools).

Rule 9.
Be careful when using third party modules, someone did not correctly understand rule number 2. Before using them in production take some time to explore their code and make sure they are ok.

Rule 10.
You do not talk about Fight Club.

So, there you go! Magento Developers and experts have shared their experiences regarding the Best Development Practices in Magento 2. Now, you might agree or disagree with the methods stated in it, and that’s perfectly fine. As I said before, Magento is a community-driven platform, so everyone is welcome to share their experiences.

If there’s anything you’d like to share regarding development practices in Magento 2, feel free to share with us in the comments section below.

Arpatech Website

Nov 14, 2016

Thank You All For Making the First Magento Meetup Dubai A Success!

Thank You All For Making the First Magento Meetup Dubai...

First off, we would like to give a huge shout-out to all the attendees of the very first “Magento Meetup Dubai” because without your active participation, this event couldn’t have been this successful.

Arpatech is now officially the first company to host a Magento Meetup in Dubai, and we are overwhelmed with the immense appreciation and positive feedbacks that we have received from the ecommerce community along with the tech community around the world.

Now, before we delve into details, let us first explain the reason that what actually compelled us to organize an event of such magnitude in Dubai. Well, the reason was fairly simple. We realized that there was a huge gap between the ecommerce community in Dubai- specifically in Magento. And as Dubai is one of the rising business cities in the world, the ecommerce industry simply couldn’t be ignored.

As Meetup is a great way to build communities, so we invited Magento developers and related key figures in the ecommerce industry to share their knowledge with each other and make meaningful connections that can be productive for everyone.

Magento Meetup Dubai Summation:

The session started with a series of talks and discussions around:

  • Advantages of Magento 2 and why it’s beneficial for Merchants
  • Magento and it’s great ecosystem
  • Magento platform and its reliability
  • Smart ways to get involved in Magento Community
  • Stats and overview of Magento 2

The Speakers of the event:

  • Ben Marks (Magento Evangelist at Magento inc.)
  • Wajid Hussain (Magento Community Manager at Arpatech.)
  • Matheus Gontijo (Magento Software Developer Crimson Agility.)
  • Muhammad Ali (Magento Certified Developer Plus at Sky Telecom Group.)
  • Rajendra K Bhatt (Magento Certified Developer at Citruss TV.)

How the Community responded towards Magento Meetup Dubai:

What’s More in Store?

Well, Magento Meetup Dubai will go down in the history books as the first Magento Meetup in Dubai and we would once again like to congratulate the participants as together “WE HAVE MADE HISTORY!”

But we are just getting started and are already working on some REALLY BIG PLANS right now. On that note, we would request you all to stay tuned, follow us on facebook, twitter and LinkedIn so that you can get to know about the details related to our next event.

*Note: You can become a part of our next event:

Arpatech Website

Nov 11, 2016

Create a Static Block And Call It From .phtml File in Magento

Create a Static Block And Call It From .phtml File in M...

There are different ways of adding a static block to your CMS page in Magento. We all know Magento offers the following  handles for CMS pages:

  • Homepage and 404-page handle
  • Handle for all CMS pages

To display the block only on home page, we will use homage handle on our local.xml file. If we need to display the same static block on all CMS pages then we will use a handle for all CMS pages respectively.

Let me first explain the CMS static block for those who are unfamiliar with it. The static block is a powerful feature in Magento admin, and it allows the admin to control chunks of HTML and CSS that can be displayed throughout your website.  They are perfect for seasonal banners, displaying charts, graphics and much more.

What is the need of these blocks while my developer can work it out?

Your Magento website must be configurable as much as possible so that anyone with a few CSS and HTML chunks can work on different parts of the site. Easily manage banners, images, text and seasonal sales. While your developer can focus on more crucial tasks.

So, let’s begin with creating a static block and showing it in the CMS Page:

From your admin panel, Navigate to CMS-> Static Blocks

Click on Add New Block

Enter the Block Title, ‘Identifier’ and set the status to Enable.

Block Title: The Title Of Block That You Will See.

Identifier: The identifier of the block that will be used to call it to CMS page.

Click on show hide editor and add any HTML you like. You can add any image, text or links that you want.

For this, we will write a simple text that will be linked to a page.

Write the following code:

<p style=”color: red;”>I am a red Block <a href =http://www.arpatech.com target= ”_blank”> Go </a> </p>

Click to Save Block

Now from your server navigate to

\app\design\frontend\ theme\template\page

Note: Instead of theme, the name of folder will be related to your theme.

In the following folder, find 2cloumns-left.phtml file and use any of your preferred editor to edit it. For this tutorial we are using 2cloumns-left design. If you are using some other design then edit the related file.

Open the file and find the required div class in which you have to attach the block. The best way to check the class name is:

Go to you page.

Right click on anywhere you want to show the static block.

Select Inspect Element.

A code window will open. See the desired div in which you want to attach the block.

 

Now go back to the file and find the required div. In  my case its <div class=”main”>

In  my case its <div class=”main”>

Add the following line right under the div:

<?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘myblock’)->toHtml() ?>

I have included the block under <div class=”main”>. You can place it anywhere according to your need.

Open your page. You can see the new block listed. Now you can create your customize blocks with images, texts and much more. I hope you enjoyed the block.

Feel free to ask us anything regarding the tutorial in the comments section below.

Learn how to display products from a specific category in Magento.

Arpatech Website

Nov 8, 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