Magento – YGBrandMaker https://brandsolutions.icu/ E-commerce Website & Application Development company Thu, 04 Feb 2021 12:14:49 +0000 en-US hourly 1 https://wordpress.org/?v=5.6.4 https://brandsolutions.icu//wp-content/uploads/2021/01/favicon.png Magento – YGBrandMaker https://brandsolutions.icu/ 32 32 brandsolutions declared as one of the Top Ecommerce Development Companies of 2021 by Top Developers https://brandsolutions.icu/blog/YGBrandMaker-declared-as-one-of-the-top-ecommerce-development-companies-of-2020-by-top-developers/ https://brandsolutions.icu/blog/YGBrandMaker-declared-as-one-of-the-top-ecommerce-development-companies-of-2020-by-top-developers/#respond Wed, 20 Jan 2021 07:08:47 +0000 https://brandsolutions.icu/?post_type=blog&p=7646 brandsolutions declared as one of the Top Ecommerce Development Companies of 2020 by TopDevelopers.co

At YGBrandMaker, we have assembled a team of passionate and professional programmers who help us in delivering custom web and mobile solutions to our clients.
We are proud to announce that our name was included in a press release as one of the the top e-commerce app developers in the industry.

Our ultimate aim is to offer our clients the best eCommerce solutions that help them meet the new horizons in business and make them achieve their goals and sales as anticipated. We know the nooks and corners of the Indian IT market, digital marketing, and ecommerce trends.
Our team is the primary reason why today we are considered to be one of the most prominent e-commerce app development companies in India.

A short client story:

The owners at studio jewels came to us with a request to assist them in building an attractive website.

They wanted us to create a website that was user-friendly and also reflected the brand’s spirit in an effective manner.

After much brainstorming with the client, brandsolutions built a solution which had the following features

● Customized admin panel
● Beautiful design
● An option to filter products by categories
● Easy payment options
● An add to wish list button
● Building a marketplace

The website built by us had the following advantages,

● Faster order processing
● An enhanced overall shopping experience
● Multi currency mobile friendly store
● Showcase of a wide range of jewelry and gems

You can visit our case studies to know in detail about this as well as our other solutions.

When you visit YGBrandMaker’s profile on TopDevelopers.co, do not forget to view the videos on WordPress Development and Magento eCommerce development hosted by us. The profile will also offer you an overall idea about our proficiency in IT services, focus areas, costs, and special services. It is a resourceful platform that helps both services seekers and the service providers in achieving their results.

Who is TopDevelopers.co?

TopDevelopers.co is a B2B directory service provider that lists various IT service providers worldwide.. The analysts at TopDevelopers.co ensure that they maintain the credibility of the platform by providing an unbiased analysis of the companies on their platform. The team at TopDevelopers.co ensures that only the best of the companies are able to pass their stringent quality norms. This ensures that customers searching for IT service providers have a sizable list of firms to choose from. The analysts at TopDevelopers.co have developed a clear and hassle-free communication channel, which is helpful for the service providers and the service seekers equally.

]]>
https://brandsolutions.icu/blog/YGBrandMaker-declared-as-one-of-the-top-ecommerce-development-companies-of-2020-by-top-developers/feed/ 0
Magento Extension Development / Magento Enterprise B2B Solution https://brandsolutions.icu/blog/magento-extension-development-magento-enterprise-b2b-solution/ https://brandsolutions.icu/blog/magento-extension-development-magento-enterprise-b2b-solution/#respond Wed, 09 Dec 2020 09:21:46 +0000 https://brandsolutions.icu/?post_type=blog&p=6941 Online shopping is no longer a trend, it is now becoming a necessity for everyone. Along with the increment in number of people shopping online across the world, the number of entrepreneur starting online stores is increasing rapidly. So if you have an e-commerce business, and you want online shoppers to buy from you, you need to be able to quickly grab their attention – and make their shopping experience pleasant and easy.

The question that strikes always in mind of every online business owner is How to make sure that when customers visit your website they relish the experience – and will buy from you. Then owner should keep certain points into consideration like quick page load time on all devices, adequate product information, simplify checkout process, enhanced search function, customer reviews. Magento 2 is the suitable platform covering all these needs of any owner.

Following up customers is one of the most important strategies that business man takes into serious consideration. As it has many benefits for online stores today and in the future such as retaining customers, increasing customer loyalty, building a better relationship with them and always keep your brand in their minds.

Many technologies have come and gone but we are endured onto Magento 2 due to its flexibility and adaptability. From themes to extension and debugging to upgrade Magento 2 has covered all requirements to keep your customers happy. brandsolutions has talented pool of Magento developers that will surely help you to increase your revenue by developing such an amazing store for your delighted customers starting from scratch. So now you can add unique and various features to your store with the help of our Magento Extension Services. Our Extension services will definitely make your store easy-to-use with some exceptional functionalities.

In today’s crowded B2B marketplace, buyers demand an easy, feasible online shopping experience that’s so good it feels like B2C. And if you can’t meet these requirements, your competitors will. Hence you are loosing in your business.

So we at brandsolutions has Magento Enterprise b2b solutions which includes everything you need manage B2B sites for multiple brands, key accounts, or channel partners. Your customers can self-master their company accounts and set up multiple tiers of buyers with specific roles and permissions.

Why to wait now? Boost sales with fast and convenient purchasing options by hiring our magento expertise for your online store.

]]>
https://brandsolutions.icu/blog/magento-extension-development-magento-enterprise-b2b-solution/feed/ 0
What is Magento? / Magento Services https://brandsolutions.icu/blog/what-is-magento-magento-services/ https://brandsolutions.icu/blog/what-is-magento-magento-services/#respond Wed, 09 Dec 2020 09:18:25 +0000 https://brandsolutions.icu/?post_type=blog&p=6938 Magento is fast emerging ecommerce platform based on open-source technology. Magento is known for its highly flexible CMS platform that is used to develop ecommerce websites. It proffer online merchant with flexible shopping cart system along with control over the look, functionality and content of their online store. Due to its good flexibility it is the trusted choice of many customers across the globe.

Magento provides powerful marketing, catalog management tool, search engine optimization which can help you with increased conversions and profitability. We believe that Magento is one of the best eCommerce platforms available today due to its rich features.

To make Magento online store successful one of the key part is using the right payment gateway for your business. Magento can be integrated with multiple payment gateways. It can accept payments through PayPal, Braintree, Google and Amazon. So your store can accept payments from all over the world.

Using Magento you can build fully robust and scalable eCommerce website. Magento is designed to be utilized by someone who isn’t a non techie person. Full Magento website can be managed within just few clicks on your own. The Magento community is very wide and constantly improved. So one can read the updates and make changes accordingly in an online store via admin panel.

Magento is evaluated as SEO friendly, it would raise your sales conversion by attracting users as a long term customers on your site. As Magento is CMS platform built on Model-View-Controller (MVC) architecture, it helps in boosting search rankings. Also Magento can be right choice when you have to deal with multi-lingual website because everything can be managed from single admin panel ranging from special discount offers, multiple product images, multi-tier pricing system, categorized display of products, etc.

Hence, choosing Magento for web development would make good profits in your business. Have a look on Magento services –

  • Magento Extension Development
    With years of developing custom Magento extensions for ecommerce projects our magento developers have plenty of experience on how to create extensions in right manner for your magento site as it is of highest priority for any magento project.
  • Magento Data Migration
    Our data migration services help clients save their time by not only transferring the data, but also by checking the same, testing it on selected platform and updating the settings. We don’t want our clients lose their business, as the experts escalate the complete process.
  • Magento Theme Design
    We offer Magento theme design and customization services from scratch. Fully responsive designs for your magento store that work on any device, screen type and resolution. Our work relies on current technology involvements in website design.
  • Magento Speed Optimization
    One of the major issues in using Magento is how to optimize Magento performance. To help you in this our skilled magento experts are here as they experienced hands in magento speed optimization. High performance speed optimization services enable ecommerce store to process the page quickly. We offer high quality performance review and Magento store optimization services at affordable rates.
  • Downgrading Magento Enterprise To Community Edition
    We understand that Magento enterprise to community edition downgrading requires expertise and experience which is something our developers are achieved with tech skills. Our Downgrading Magento Enterprise to Community Edition services covers all features of community version.
  • Magento Debugging And Troubleshooting Services
    Get the best Magento debugging and troubleshooting services to keep your store bug free as it has experienced debuggers which rectifies your problem and offers accurate solutions. Our Magento debugging and troubleshooting services which are the perfect match for your store to keep it debug and fix all your issues.
  • Magento Upgrade Service
    Upgrade your magento store to get all updated features of leading ecommerce platform by our magento upgrade service without any data loss. Our team of certified magento developers who are specialized in upgrading for better business opportunities.
  • Magento Search Engine Optimization
    A competent team at brandsolutions specializes in designing magento SEO friendly store that help client drive more sales to their magento store. We offer Magento Search Engine Optimization services to help you drive the huge volume of traffic on your online business. Use our Magento SEO to optimize your online store boost your sales today.
  • Magento Mobile App Development
    Today smart phone users are growing rapidly thereby we are providing Magento Mobile app development services which can take your Magento store to leading mobile platforms Android, iOs and Blackberry. We are offering most reliable magento mobile app development services that suit your business. Discuss your app requirements and we will develop an app which is compatible in all platforms.

 

Magento is indeed an ultimate e-commerce solution for incredible growth! You should definitely think of opting for Magento web development or convert your existing website to Magento to elevate your sales. So think about it!

]]>
https://brandsolutions.icu/blog/what-is-magento-magento-services/feed/ 0
Advantages of Magento eCommerce Development https://brandsolutions.icu/blog/advantages-of-magento-ecommerce-development/ https://brandsolutions.icu/blog/advantages-of-magento-ecommerce-development/#respond Wed, 09 Dec 2020 09:16:36 +0000 https://brandsolutions.icu/?post_type=blog&p=6936 If you are planning to setup online ecommerce business then you need to strategize a lot of things. First and foremost to make your business successful you need a strong foundation. Primary challenge that a business owner faces is choosing the right platform for development of ecommerce store. Today with the advanced technology there are numerous platforms available for website development. Choosing the right ecommerce development platform for an online store can be crucial task.

If you are looking for the best ecommerce solution then Magento can be your appropriate choice. Magento can accomplish great wonders in the big world of online shopping. In our previous blog ‘What is Magento/ Magento Services’ we had discussed what exactly magento is. Here we will discuss the advantages of using magento for ecommerce business running online.

Advantages of using Magento ecommerce platform-

  • Better user experience-
    Turning shoppers into paying customers can be incredibly challenging. Using magento ecommerce platform can make it easy. As it provides various functionalities enabling users to engage and providing easy-to-use experience. Magento is being talked about it is excelling in job of delivering user experience and customer satisfaction.
  • Open source platform–
    Being an open source platform magento contains various features that are free. It also helps developers with numerous extensions and functionalities. With every addition it is going to be better, as a result ecommerce website will also shape up.
  • Web design customization –
    Magento is very popular due to its customized features. There are tons of CSS customization options ready to use for web design in magento. The Magento team supports and gives great info on the latest web trends and tips on responsive web design.
  • Multi-store management –
    Before development of magento, it was inconvenient to handle various stores from single admin panel. But due to magento one can manage multiple stores from single administrative panel. Each store can be handled in single admin panel with its product catalogue.
  • Fully featured –
    Magento is well known for its unique features. It helps developers with the characteristics facilitating layered navigation, product comparisons, multi store feature, advanced search, wish lists, favorites, email list, grouped products and content management system for static pages as well as SEO performance.
  • Easy third party integration –
    Magento gives an online store bigger space for custom integrations by allowing 3rd party integrations. The 3rd party integrations include major web applications like Google analytics and payment gateways. Now connect your ecommerce experience with Ebay, Paypal, Mail Chimp, Google Shopping, and more. .
  • SEO & mobile friendly –
    Magento ecommerce site can be optimized by feature of Magento SEO. By this feature owner can manage page traffic, duplicate content, indexing of site pages. Also, Magento is mobile friendly. It is designed responsive so that it can be easily viewed in smartphones, tablets etc. Mobile visitor is likely to judge a certain website by experience of landing on a website. The mobile apps of magento allow store integration across multiple devices to work efficiently on all type of devices.
  • Secure order management –
    Magento is well known for its top order management because it includes features of custom reporting. It makes user friendly for customer by following step to step process for purchasing desired product. Business owner has full access to view periodic transaction history, what has gone out of stock, change product description, add images and add or remove products.
  • Quick loading time –
    Magento is known for its top of the line service of loading web pages quickly. Quick page load time is very essential for any ecommerce store. The faster website loads, the faster information can be received by the customer and this will ultimately lead in boosting your annual sales. According to stats a user is likely spend more time on a website which has minimum page loading speed.
  • Multiple Currency and Language Support –
    Many well known open source ecommerce platforms are not likely to support various foreign currencies. Unlike other platforms magento supports all currencies around the world. This makes it effective for US and international stores to use magento. Magento is also supports a variety of languages.

 

Hence magento is a well built platform in all the aspects either it is security, stability or customization. Many e-commerce web development companies have adopted this open source platform due to its unlimited features. Due to its sublime possibilities magento has made shopping world a global and bigger. Magento is an ecommerce CMS that is up-to-date with latest design trends, security features and SEO ranking factors.

brandsolutions being a pioneer in developing web apps, has also developed many magento e-commerce websites that are running successfully, and have a team of dedicated professionals who are experts in this platform. If you are planning to develop or redesign your e-commerce store using magento, then please contact us now.

]]>
https://brandsolutions.icu/blog/advantages-of-magento-ecommerce-development/feed/ 0
How to show x-left in configurable product in Magento 2 https://brandsolutions.icu/blog/how-to-show-x-left-in-configurable-product-in-magento-2/ https://brandsolutions.icu/blog/how-to-show-x-left-in-configurable-product-in-magento-2/#respond Wed, 09 Dec 2020 09:14:07 +0000 https://brandsolutions.icu/?post_type=blog&p=6934 In a modern world, an e-commerce platform Magento is well known for its flexibility and open-source ecosystem. It is powerful enough to handle all type of businesses ranging from small cap to large enterprises. To run a successful ecommerce store it requires great efforts to be done by the store owner to maintain products and all. Many products sold online comes in different size, color, length. While displaying these products on the front end, it is important to make the options clear as well as variations in quantity left in stock.

Recently our developer has made an extension on how to show x-left in a configurable product in Magento 2. The script shows the number of variant according to specific length and size. Actually, that script is pretty useful for everyone so we decided to share the script on our blog.

The particular product is selected.

<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$StockState = $objectManager->get('\Magento\CatalogInventory\Api\StockStateInterface');
$qtyPro = $StockState->getStockQty($_product->getId(), $_product->getStore()->getWebsiteId());
$conf = $objectManager->get('Magento\Framework\App\Config\ScopeConfigInterface')->getValue('cataloginventory/options/stock_threshold_qty', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
?>

Specific size and length of a configurable product is selected

<?php
$product = $objectManager->get('Magento\Framework\Registry')->registry('current_product');
$mTo = $product->getResource()->getAttribute('mto')->getFrontend()->getValue($product);
//get current product
$productTypeInstance = $product->getTypeInstance();
$configId = $product->getTypeId();
//Main configurable product ID
//echo $product->getName(); //Main Configurable Name
?>

check if product type is configurable and has option:-

<?php if ($configId == 'configurable')
{
?>
<?php
$usedProducts = $productTypeInstance->getUsedProducts($product);
foreach ($usedProducts as $child)
{
$sId = $child->getSize(); //Child Product Sku
$skU = $child->getSku(); //Child Product Sku
$sId_Length = $child->getLength(); //Child Product Sku
$qtyProd = $StockState->getStockQty($child->getId(), $child->getStore()->getWebsiteId());
$siZe = $child->getResource()->getAttribute('size')->getFrontend()->getValue($child);
if($siZe)
{
//echo "size h";
//echo "<br>";
}
$lenGth = $child->getResource()->getAttribute('length')->getFrontend()->getValue($child);
if($lenGth !="No")
{
//echo "length h";
//echo "<br>";
}
?>
<?php
if ($qtyProd < $conf && $qtyProd > 0)
{
?>
<div style="margin-top:-21px;" id="remaining_<?php echo $sId; ?>_<?php echo $sId_Length;?>" style="visibility:hidden;" class="availability only" title="Only <?php echo $qtyPro; ?> left">
Only<span style="line-height: 20px;" class="counter-label"><?php echo $qtyProd; ?></span> left in <?php echo $skU; ?>
</div>
<?php
//echo "<br>";
?>
<?php
}
}
}
?>

 

Place the small js script end of the file –

<script>
require(['jquery'],function($)
{
setTimeout(function()
{
var pri_id = 0;
$(".length .swatch-option").on("click", function()
{
var se = $('.swatch-attribute.size').attr('option-selected');
if(se>0)
{
var r = $(this).attr('option-id');
$('#remaining_'+se+'_'+r).css("visibility","visible");
var hidden_text = $('#remaining_id').val();
$('#'+hidden_text).css("visibility","hidden");
$('#remaining_id').val('remaining_'+se+'_'+r);
}
});
$(".size .swatch-option").on("click", function()
{
var se = $('.swatch-attribute.length').attr('option-selected');
if(se===undefined)
{
var r = $(this).attr('option-id');
$('#remaining_'+r+'_').css("visibility","visible");
var hidden_text = $('#remaining_id').val();
$('#'+hidden_text).css("visibility","hidden");
$('#remaining_id').val('remaining_'+r+'_');
}
else
{
var r = $(this).attr('option-id');
$('#remaining_'+r+'_'+se).css("visibility","visible");
var hidden_text = $('#remaining_id').val();
$('#'+hidden_text).css("visibility","hidden");
$('#remaining_id').val('remaining_'+r+'_'+se);
}
});
}, 2000);
});
</script>


Specific product of selected size and length has been added to the cart.

Hope you like and find this small solution a useful one. brandsolutions is a company promoted by a group of highly experienced professionals. Specializes in providing top-notch web solutions through innovation and use of latest technology. Contact us now for more queries related to web.

]]>
https://brandsolutions.icu/blog/how-to-show-x-left-in-configurable-product-in-magento-2/feed/ 0
How to create Custom Field on checkout page in Magento 2 https://brandsolutions.icu/blog/how-to-create-custom-field-on-checkout-page-in-magento-2/ https://brandsolutions.icu/blog/how-to-create-custom-field-on-checkout-page-in-magento-2/#respond Wed, 09 Dec 2020 09:13:14 +0000 https://brandsolutions.icu/?post_type=blog&p=6933 User experience plays an important role in any online store. If you provide a rich user experience to your visitor then in exchange you will get an increase in your revenue. You can do this with personalized content, improve conversion with fast checkout, and provide seamless shopper experiences across multiple devices at anywhere, anytime. Every e-commerce store has unique checkout page because they address a variety of requirements. Not all store owners or customers would require the same set of field that Magento offers. Then here comes the role of adding custom fields in the online store. By creating custom fields an owner can provide the fields that are required by the business or its customers.

This blog is about creating custom fields on checkout page in Magento 2. By adding these fields owner can know more about customers, their requests and feedbacks. Once the owner gets the more customer data then the better marketing strategy can be planned. The easiest way to obtain the customer data is to ask customers through custom fields at checkout page.

The coding starts here…

Create a new module with this folder structure. For instance, I have created a module with brandsolutions as Vendor name and Customcheck as the module name.

1. The path will be as follows app/code/YGBrandMaker/Customcheck
2. In this create a file registration.php with the following code –

\Magento\Framework\Component\ComponentRegistrar::register
(
  \Magento\Framework\Component\ComponentRegistrar::MODULE,
  'YGBrandMaker_Customcheck',
  __DIR__
);

3. Now create a folder with name “etc” in Customcheck. Then create XML file in this. Path of XML file will be app/code/YGBrandMaker/Customcheck/etc/module.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
  <module name="YGBrandMaker_Customcheck" setup_version="1.0.0">
    <sequence>
      <module name="Magento_Backend"/>
    </sequence> 
  </module>
</config>

4. Now create a folder with name “frontend”. Place a XML file in it. Path of XML file will be app/code/YGBrandMaker/Customcheck/etc/frontend/di.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd>
  <type name="Magento\Checkout\Block\Checkout\LayoutProcessor">
    <plugin name="add_custom_field_checkout_form" type="YGBrandMaker\Customcheck\Model\Plugin\Checkout\LayoutProcessor" sortOrder="100"/>
  </type>
</config>

5. Create a folder with name “Model”. Again create folder in it Plugin -> Checkout. In this create a file. The path of a file will be model/Plugin/Checkout/LayoutProcessor.php

namespace YGBrandMaker\Customcheck\Model\Plugin\Checkout;
  class LayoutProcessor
  {
    public function afterProcess
    (
      \Magento\Checkout\Block\Checkout\LayoutProcessor $subject,array $jsLayout
    )
    {
      $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
      ['shippingAddress']['children']['shipping-address-fieldset']['children']['custom_field'] =
      ['component' => 'Magento_Ui/js/form/element/abstract','config' => 
      [
        'customScope' => 'shippingAddress.custom_attributes',
        'template' => 'ui/form/field',
        'elementTmpl' => 'ui/form/element/input',
        'options' => [],
        'id' => 'custom-field'
      ],
        'dataScope' => 'shippingAddress.custom_attributes.custom_field',
        'label' => 'Password',
        'provider' => 'checkoutProvider',
        'visible' => true,
        'validation' => [],
        'sortOrder' => 250,
        'id' => 'custom-field'
      ];
      $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
      ['shippingAddress']['children']['shipping-address-fieldset']['children']['custom_field2'] =
      [
        'component' => 'Magento_Ui/js/form/element/abstract','config' =>
        [
          'customScope' => 'shippingAddress.custom_attributes',
          'template' => 'ui/form/field',
          'elementTmpl' => 'ui/form/element/input',
          'options' => [],
          'id' => 'custom-field2'
        ],
        'dataScope' => 'shippingAddress.custom_attributes.custom_field2',
        'label' => 'Confirm Password',
        'provider' => 'checkoutProvider',
        'visible' => true,
        'validation' => [],
        'sortOrder' => 260,
        'id' => 'custom-field2'
      ];
      $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
      ['shippingAddress']['children']['shipping-address-fieldset']['children']['custom_field3'] =
      [
        'component' => 'Magento_Ui/js/form/element/abstract',
        'config' =>
        [
          'customScope' => 'shippingAddress.custom_attributes',
          'template' => 'ui/form/field',
          'elementTmpl' => 'ui/form/element/checkbox',
          'options' => [],
          'id' => 'custom-field3'
        ],
        'dataScope' => 'shippingAddress.custom_attributes.custom_field3',
        'label' => 'Create Account',
        'provider' => 'checkoutProvider',
        'visible' => true,
        'checked' => false,
        'validation' => [],
        'sortOrder' => 250,
        'id' => 'custom-field3'
      ];
  return $jsLayout;
  } 
}

Using this you can create custom field on checkout page. Hope this script turned out to be useful in creating custom fields providing more options for your customer. If you have any queries or feedback, then feel free to drop us a line. brandsolutions is a company promoted by a group of highly experienced professionals. Specialize in providing top-notch web solutions through innovation and use of latest technology.

]]>
https://brandsolutions.icu/blog/how-to-create-custom-field-on-checkout-page-in-magento-2/feed/ 0
How to Block Spam E-mail from registering on Magento2 site https://brandsolutions.icu/blog/how-to-block-spam-e-mail-from-registering-on-magento2-site/ https://brandsolutions.icu/blog/how-to-block-spam-e-mail-from-registering-on-magento2-site/#respond Wed, 09 Dec 2020 07:59:32 +0000 https://brandsolutions.icu/?post_type=blog&p=6931 Today the internet is surging with spammers who are dying to get their hands on your servers. Spammers register an account on your site to brake into your system as it is a relatively easy way for amateur. It is one of the key parts of their spamming strategy. We cannot stress enough the importance of identifying spam domains and blocking them in advance because whether human or a bot machines, spammers would normally be using an email spam domain. You need to integrate your web store with additional anti-spam protection making definite email domains and zones blocked. If you allow your customers to use guest checkout, don’t forget it is hassle-free for spammers or hackers.

With Restrict Domain Registration feature you can block users from registering for accounts using email addresses from certain domains. This feature is useful for blocking spam and bots from logging into your website and it will effectively increase the security of the store. You can easily put the domains to block and set the error message to be displayed when a user attempts to register with an email domain on your block list. Full instructions are as follows –

The coding starts here…

Create a new module with a name EmailCheck in the folder YGBrandMaker

Step – 1 Write the following code at admin panel. Path of the file will be – brandsolutions >EmailCheck > etc > Adminhtml > System

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <tab id="YGBrandMaker" translate="label" sortOrder="999">
            <label>YGBrandMaker</label>
        </tab>
        <section id="emailblock" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
            <class>separator-top</class>
            <label>Email Check</label>
            <tab>YGBrandMaker</tab>
            <resource>PixieMedia_General::general_config</resource>
            <group id="domains" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Domain Names</label>
               <field id="domains" translate="label" type="textarea" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Domain names to block</label>
                    <comment>Comma separated values eg google.co.uk,mail.ru,some.com</comment>
                </field>
                <field id="message" translate="label" type="textarea" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Message to display</label>
                    <comment>The error message to show users who try to register with one of the above domain names</comment>
                </field>
            </group>
        </section>
    </system>
</config>

Step – 2 Write the following code in a file. Path of the file will be – brandsolutions >EmailCheck > etc > Frontend > di

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Customer\Controller\Account\CreatePost">
        <plugin name="restrictCustomerEmail"
                type="YGBrandMaker\Emailcheck\Model\Plugin\Controller\Account\RestrictCustomerEmail"/>
    </type>
</config>

Step – 3 Write the following code in XML file with name Config. Path of the file will be – brandsolutions >EmailCheck > etc > Config

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
        <default>
            <emailblock>
                <domains>
                    <domains>163.com,mail.ru</domains>
                </domains>
                 <message>
                    <domains>We do not allow registration from your email domain</domains>
                </message>
            </emailblock>
        </default>
    </config>

Step – 4 Write the following code in XML file with name Module. Path of the file will be – brandsolutions >EmailCheck > etc > Module

<config xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
    <module name="YGBrandMaker_Emailcheck" setup_version="1.0.0">
     </module>
</config>

Step – 5 Create the folder name Model in EmailCheck. Then create subfolder Plugin > Controller > Account. Write the following code in php file with name RestrictCustomerEmail. Path of the php file will be – brandsolutions >EmailCheck > Plugin > Controller > Account > RestrictCustomerEmail

/* brandsolutions @@@@@@ YGBrandMaker@gmail.com */
namespace YGBrandMaker\Emailcheck\Model\Plugin\Controller\Account;
use Magento\Framework\Controller\Result\RedirectFactory;
use Magento\Framework\UrlFactory;
use Magento\Framework\Message\ManagerInterface;
use Magento\Framework\App\Config\ScopeConfigInterface;
class RestrictCustomerEmail
{
    /** @var \Magento\Framework\UrlInterface */
    protected $urlModel;
    /**
     * @var \Magento\Framework\Controller\Result\RedirectFactory
     */
    protected $resultRedirectFactory;
    /**
     * @var \Magento\Framework\Message\ManagerInterface
     */
    protected $messageManager;
    /**
     * RestrictCustomerEmail constructor.
     * @param UrlFactory $urlFactory
     * @param RedirectFactory $redirectFactory
     * @param ManagerInterface $messageManager
     */
    public function __construct(
        UrlFactory $urlFactory,
        RedirectFactory $redirectFactory,
        ManagerInterface $messageManager,
  ScopeConfigInterface $scopeConfig
    )
    {
        $this->urlModel = $urlFactory->create();
        $this->resultRedirectFactory = $redirectFactory;
        $this->messageManager = $messageManager;
  $this->scopeConfig = $scopeConfig;
    }
    /**
     * @param \Magento\Customer\Controller\Account\CreatePost $subject
     * @param \Closure $proceed
     * @return mixed
     * @throws \Magento\Framework\Exception\LocalizedException
     */
    public function aroundExecute(
        \Magento\Customer\Controller\Account\CreatePost $subject,
        \Closure $proceed
    )
    {
        /** @var \Magento\Framework\App\RequestInterface $request */
        $email = $subject->getRequest()->getParam('email');
        list($nick, $domain) = explode('@', $email, 2); 
  $domains = $this->scopeConfig->getValue('emailblock/domains/domains', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
  if(!$domains) { 
   return $proceed; 
  }
  $domainArray = array_map('trim', explode(',', $domains));
  if(count($domainArray) < 1) { 
   return $proceed;
  }  
        if (in_array($domain, $domainArray, true)) {
 $message = $this->scopeConfig->getValue('emailblock/domains/message', \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
   if(!$message) { $message = __('We do not allow registration from your email domain'); }
            $this->messageManager->addErrorMessage($message);
            $defaultUrl = $this->urlModel->getUrl('*/*/create', ['_secure' => true]);
            /** @var \Magento\Framework\Controller\Result\Redirect $resultRedirect */
            $resultRedirect = $this->resultRedirectFactory->create();
            return $resultRedirect->setUrl($defaultUrl);
        }
        return $proceed();
    }
}

Using this module you can block registration from certain domains and make your security level higher. Spammers and fraudulent orders can cause sturdy damage to your store; hence it will result in bad reputation. If you have any queries or feedback, then feel free to drop us a line. brandsolutions is a company promoted by a group of highly experienced professionals. Specialize in providing top-notch web solutions through innovation and use of latest technology.

]]>
https://brandsolutions.icu/blog/how-to-block-spam-e-mail-from-registering-on-magento2-site/feed/ 0
How to Add Custom Header in Magento 2 https://brandsolutions.icu/blog/how-to-add-custom-header-in-magento-2/ https://brandsolutions.icu/blog/how-to-add-custom-header-in-magento-2/#respond Wed, 09 Dec 2020 07:50:40 +0000 https://brandsolutions.icu/?post_type=blog&p=6921 As you may know, header is the key element of a website as it is the first thing that people will see when they land on your site. Basically, it contains links to important pages on your site that potential customers will often want to visit before making a purchase or enquiry. It sets the tone for the whole site. You need to include adequate information in the header to encourage your customers to explore your site further.

In this blog today, we presented the way to Add Custom Header in Magento 2.

Step 1: Create an XML file on the following path –>

app/design/frontend/Vendor/Theme/Magento_Theme/layout/default.xml

<referenceContainer name="header.container">
<block class="Magento\Framework\View\Element\Template" name="custom_header" as="custom_header" template="Magento_Theme::html/customheader.phtml" before="-"/>
</referenceContainer>
<move element="logo" as="logo" destination="custom_header"/>
<move element="top.search" as="topsearch" destination="custom_header"/>
<move element="minicart" as="minicart" destination="custom_header"/>
<move element="store_language" as="store_language" destination="custom_header" />

Step 2: Create HTML file on the following path –>

app/design/frontend/Vendor/Theme/Magento_Theme/templates/html/customheader.phtml
Place this line in the code –

<?php echo $this->getChildHtml("store_language"); ?>

After placing the above code your new Header version is now applied. You just need to refresh your page and you can see it in the frontend. Hopefully, this solution will be a help for you to add custom header in Magento 2 and make your site more attractive and clearer. Still having a problem then please contact us.

brandsolutions is an Indian Web Design and Development firm with having a team of experts striving to provide you world class web solutions at cost nominal price. A good track of successful records has made brandsolutions renowned in this field. Planning to develop an online business site then drop us a line.

]]>
https://brandsolutions.icu/blog/how-to-add-custom-header-in-magento-2/feed/ 0
How to Implement Multi Currencies in Magento 2 https://brandsolutions.icu/blog/how-to-implement-multi-currencies-in-magento-2/ https://brandsolutions.icu/blog/how-to-implement-multi-currencies-in-magento-2/#respond Wed, 09 Dec 2020 07:49:46 +0000 https://brandsolutions.icu/?post_type=blog&p=6920 Magento 2 is renowned eCommerce platform for its easy-to-use feature. Running an international business on Magento 2 doesn’t require much of technical knowledge. All you need is to make right use of admin panel of Magento 2 and be patient. Moreover, with Magento 2 configuration, you can set more than 20 currency units of the corresponding countries in the world. This blog will guide you through an example of business running in multiple currencies. This business operates across borders with customers from countries with different currencies.

Initially, you need to define which currencies will be allowed on your store. Let’s say our store operates in Arab, Canada, Germany, France, Japan, Singapore, China and our customers can pay in any of these countries’ currency. That currency symbol will appear in product prices and sales documents such as orders and invoices. If your store accepts multiple currencies, Currency Chooser should be available in the header of the storefront.

So follow the steps to know how you can import multi currencies in Magento 2 configuration.

Step 1. Select the allowed currencies

Open the admin panel and go into settings. Follow the path

Settings -> Configuration-> GENERAL->Currency Setup->Currency Options->Allowed Currencies

Step 2. Select Currencies you want for Multistore

Step 3. Select Stores from dropdown list and Select Currency Store Wise From

GENERAL->Currency Setup->Currency Options->

Step 4. After selecting the currencies of various countries fill their rates by following the path

Stores->Currency -> Currency Rates

The currency chooser should appear in the header of the store. If any fluctuation takes place in currencies then it can impact your business revenue. To assure that the currency import is done right, check the Currency Rates list. Then, wait for the duration of the frequency setting established for the schedule, and check the rates again. Hope you find this solution useful.

Still having a problem then contact us. brandsolutions is an Indian Web Design and Development firm with having a team of experts striving to provide you world class web solutions at cost nominal price. A good track of successful records has made brandsolutions renowned in this field. Planning to develop an online store for your business site then drop us a line.

]]>
https://brandsolutions.icu/blog/how-to-implement-multi-currencies-in-magento-2/feed/ 0
How to Save Configurable Product with Big Length SKU in Magento2 https://brandsolutions.icu/blog/how-to-save-configurable-product-with-big-length-sku-in-magento2/ https://brandsolutions.icu/blog/how-to-save-configurable-product-with-big-length-sku-in-magento2/#respond Wed, 09 Dec 2020 07:47:35 +0000 https://brandsolutions.icu/?post_type=blog&p=6918 As the numbers of online customers are increasing so the numbers of shopping sites are also increasing with the time. When there are a lot of options available for a customer to purchase then why would he purchase from your store. Ease of shopping feature can attract customer to your store. Here ease of shopping refers to multiple factors like variety in product size, color, variant, easy checkout process and many more. Like traditional way of shopping customers buy items and often discriminate based on its color or other attributes, same is observed with online shopping. Magneto provides the functionality to facilitate such shopping environment; this makes Magento the most popular ecommerce platform. Configurable Product is one of the ways Magento offers to cater these requirements. Due to this customer can select their desired variant of the product without having to browse numbers of product pages. SKU (stock keeping unit) is an identification, usually alphanumeric which is assigned to each product that allows it to be tracked for inventory purposes. While saving a configurable product with big length SKU a fatal error is observed

Notice: Undefined variable: product in /MASKED_DIR/2018-08-06_12-56-07/htdocs/vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php on line 156

big-length-sku

Recently our Magento experts have found a solution to eliminate this error. If you are facing such errors then kindly follow the steps given below.

Step -1 Initially, set “const SKU_MAX_LENGTH = 255;” in the file module-

catalog/Model/Product/Attribute/Backend/Sku.php

Step -2 You need to change the into database as well. Go to table

eav_attribute,

search for SKU at column attribute code then edit the resulted row.
Update the field frontend_class to null or validate-length maximum-length-255 according to your requirement.

Step -3 You have to change field size at the database table.

ALTER TABLE catalog_product_entity CHANGE sku sku VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'SKU';

By implementing the above steps you can easily add the configurable product having big length SKU. Hope this solution works for you. If you have any better ideas please leave a comment below. Still facing a problem with this then drop us a message. Our Magento experts have ample experience in providing out of the box Magento solutions. Planning to hire Magento developer then contact us.

]]>
https://brandsolutions.icu/blog/how-to-save-configurable-product-with-big-length-sku-in-magento2/feed/ 0