BACK
BACK
BACK
Loading...

Blog / We Do /  Our Experience of Customizing Magento by Magento Dedicated Developers of Mobilunity

April 3, 2017 - Marina D

Our Experience of Customizing Magento by Magento Dedicated Developers of Mobilunity

One of our clients requested a web store development based on one of the popular eCommerce platforms. He had a specific preferences towards the platform to build the store on, so he was specifically looking for hiring Magento dedicated developers. We readily accepted the challenge as Mobilunity is a global provider of remote PHP, Python, C++, Java and Magento web developers for hire.

When developing a store for our client, the team had to apply some customizations and even do a bugfix for an issue encountered with URL rewrites.

Multilingual Feature Customization

Magento web developers for hire to customize your website

The client wanted his store to be multilingual. In Magento, store views are used for localization purposes. When you create a website, one store view is created automatically for the base language. You may then create as many additional store views as you want to add languages to your site. As you fill in your store with categories and products, you may provide locale specific names on a store view level by overriding global settings.

On the storefront, customers use the Store Switcher to change the store locale based to a selected language. On the backend, URL rewrites are created for categories and products so that under each locale products and categories have the appropriate URLs.

Hire dedicated Magento developer to fix any bugs of your store

Example of how URL rewrites are created

The mechanism of multilingual site is managed by the Store module. When a customer changes store locale using the Store Switcher, the Store module looks for a corresponding rewrite for a category or product page a customer is viewing and displays the proper page in a browser.

However, our Magento dedicated developers faced a defect in the standard functionality when a URL for a product located on a third level subcategory was broken. URL rewrites for categories and products located one level higher worked fine, but not for products attached to the third level subcategories. The code change related to URL building logic was applied to fix this issue in the Store module. In particular, the original code was copied, overridden in di.xml and then modified to fix this issue as seen from the code sample below.

The original code:


if ($urlRewrite) {

    $data[ActionInterface::PARAM_NAME_URL_ENCODED] = $this->urlHelper->getEncodedUrl(

        $this->trimSlashInPath($this->urlBuilder->getUrl($urlRewrite->getRequestPath()))

    );

}

Was replaced with the code fixing the URL building logic:


if ($urlRewrite) {

    $data[ActionInterface::PARAM_NAME_URL_ENCODED] = $this->urlHelper->getEncodedUrl(

        $this->trimSlashInPath($this->urlBuilder->getBaseUrl() . $urlRewrite->getRequestPath())

    );

}

Besides that, the standard Magento functionality displays the entire path to the product in breadcrumbs that included all nesting levels. Still our team made additional changes for the customer to have short path in breadcrumbs containing only the category a product is attached to without displaying the entire path.

Magento Developers for Hire

We offer Magento developers for hire at all-inclusive rate

If you already tried to hire dedicated Magento developer to build online stores, you probably know that creating such stores is a more difficult task after the release of Magento 2.

Even experienced Magento 1 web developers from the community face difficulties with implementing customizations required by clients due to changes in system architecture. Mobilunity possesses sufficient knowledge in Magento 2 development and customization and has Magento web developers for hire to meet any needs of your project or business.

Looking for Magento developers for hire for your store development? You are at the right place.

Contact Mobilunity today to hire dedicated Magento developer and have your store up and running!

Request a quote

Attach File

(max file size 5MB; allowed extensions: doc, txt, pdf, docx)

Contact us Request a Quote

Your email address will not be published.

Required fields are marked *

Attach File

(max file size 5MB; allowed extensions: doc, txt, pdf, docx)

subscribe to newsletter

Your email address will not be published.

Required fields are marked *

Ask a Question

Your email address will not be published.

Required fields are marked *

Sorry, this page isn't quite ready yet

redirecting to the old site

5

Mobilunity

cannot account for customer alterations, as the site may reflect changes made after the project was completed.

5