Magento 2 Certified Developer | StackExchange Moderator | Amit Bera

Magento 2 eCommerce Developement | Magento Web developement

  • Home
  • Magento 2
  • Magento
  • General
  • YouTube
  • Server
  • About Amit Bera
  • Contact
  • Home
  • Magento 2
  • Magento
  • General
  • YouTube
  • Server
  • About Amit Bera
  • Contact

No Widgets found in the Sidebar Alt!

Magento

Programmatically create invoice of an order in magento

Programmatically create invoice of an order in magento and create partial invoice of an order For some time need to create invoice of  an order.I have write code for  how…

read more
November 23, 2013
Magento 2

Magento2 Checkout shipping address autofill

Magento2 Checkout shipping address autofill. If you want to Magento2 Checkout shipping address autofill during checkout then you have to use Magento 2 plugin. I have used plugin over on…

read more
March 23, 2019
Uncategorized

Api search magento using php

Searching with Repositories What is a repository? Repositories give service requestors the ability to perform create, read, update, and delete (CRUD) operations on entities or a list of entities. A…

read more
August 15, 2022
  • Magento 2

    Magento2 php8.1 extension install

    November 5, 2022 /

    Magento2 php8.1 extension install on magento 2.4.5.p1 open source version. Here using Ubuntu version 20.04 and magento version 2.4.5.p1 and Web server apache If you have already has another PHP version then do below process. At my system php7.4

    read more
    devadmin 0 Comments

    You May Also Like

    Magento2 Checkout shipping address autofill

    Magento2 Checkout shipping address autofill

    March 23, 2019
    magento2 get base url and media url and static url

    magento2 get base url and media url and static url

    March 24, 2016

    Magento 2 import email address to Newsletter from csv

    September 28, 2017
  • Magento 2,  Weekly Dairy

    Magento 2 create yes/no product attribute

    September 19, 2022 /

    magento 2 create yes/no product attribute and assigns to all attributes sets. Using Data patch installer. Your module must be a dependency on the Magento_Catalog module using module.xml. Example: Data match installer script:

    read more
    devadmin 0 Comments

    You May Also Like

    Magento2 add a cms page link to menu

    Magento2 add a cms page link to menu

    April 18, 2018

    Magento2 get cart and checkout link in block or phtml

    March 24, 2016

    Magento 2 import email address to Newsletter from csv

    September 28, 2017
  • Uncategorized

    Api search magento using php

    August 15, 2022 /

    Searching with Repositories What is a repository? Repositories give service requestors the ability to perform create, read, update, and delete (CRUD) operations on entities or a list of entities. A repository is an example of a service contract, and its implementation is part of the domain layer. Repository state A repository should be stateless after instantiation. This means that every method call should not rely on previous calls nor should it affect later method calls. Any field contained in the repository class must also be stateless. If your repository needs to provide functionality that requires state, such as for caching, use the registry pattern. A good example that uses this pattern…

    read more
    devadmin 0 Comments

    You May Also Like

    Magento Security

    Magento Security

    January 9, 2015
    Magento lastest Blogs

    Magento 2 Blogs

    January 8, 2015
  • Weekly Dairy

    Magento2 Custom options do not show at Cart

    December 14, 2021 /

    Last week, working on an issue. I was trying to add a product to the cart with a custom option using Rest API. Passing customer option info option_id and options_value to request payload.

    read more
    devadmin 0 Comments
  • Magento 2

    Category page NOINDEX,NOFOLLOW when filters applied

    September 7, 2021 /

    Category page NOINDEX,NOFOLLOW when filters applied. Most websites are getting duplicated content issues at SEO when filters applied To avoid the issue we need to mark the category page’s meta robots value to `NOINDEX,NOFOLLOW` when the filter is applied on the category page. Defined an observer on event layout_generate_blocks_after The Observer class code will be Module is available at https://github.com/devamitbera/Magento2-extension/tree/master/Category-disallow/

    read more
    devadmin 0 Comments

    You May Also Like

    Magento2 Checkout shipping address autofill

    Magento2 Checkout shipping address autofill

    March 23, 2019

    Magento2 get cart and checkout link in block or phtml

    March 24, 2016
    magento2 get base url and media url and static url

    magento2 get base url and media url and static url

    March 24, 2016
  • Magento2 programmatically create coupon
    Magento 2

    Magento2 programmatically create coupon

    April 12, 2019 /

    In this article, i have explaining how to we can create coupon programmatically. At Magento 2, if you wish to create a coupon programatically . Follow below steps: First, you have to create a Cart Price rule/Shopping Cart rule. At, Second steps you will create coupon code. Advanced sales promotion rules like #free-gift, discount on #first-order, #nth-order, #total-sales-amount, #total-order-number #specific-customers #subscribers etc.http://bit.ly/M2-Sales-Promotion 1.Create Cart Price rules For a create rules, i have used repository interface classes: For set the data for rules repository class, we have use the interface This interface some setter methods using this setter method, using those method you can set discount percent/amount ,rules starting & ending…

    read more
    devadmin 0 Comments

    You May Also Like

    Magento 2 import email address to Newsletter from csv

    September 28, 2017
    Magento2 add a cms page link to menu

    Magento2 add a cms page link to menu

    April 18, 2018

    Magento2 get cart and checkout link in block or phtml

    March 24, 2016
  • Magento2 Checkout shipping address autofill
    Magento 2

    Magento2 Checkout shipping address autofill

    March 23, 2019 /

    Magento2 Checkout shipping address autofill. If you want to Magento2 Checkout shipping address autofill during checkout then you have to use Magento 2 plugin. I have used plugin over on Class below classes for autofill checkout Shipping address: Magento\Checkout\Block\Checkout\AttributeMerger is  main classis the main class where i able to auto fill firstname,lastname,street,city,postcode,country_id,region,region_id,telephone,companyabove fields value using after Create after Plugin (Devbera\AutofillCheckoutAddress\Plugin\Magento\Checkout::afterMerge ) on Magento\Checkout\Block\Checkout\AttributeMerger::merge for shipping address fields autofill up. Step1:Define Plugin classes: First Create di.xml at app/code/{VendorName}/{ModuleName}/etc/frontent where we are define the plugin classes. Code Step2: Declare plugin class Create First plugin class AttributeMergerPlugin.php at app/code/{VendorName}/{ModuleName}/Plugin/Magento/Checkout/ Code Second plugin class which will auto fill email id for NON _login customer Create seocnf…

    read more
    devadmin 1 Comment

    You May Also Like

    Magento2 programmatically create coupon

    Magento2 programmatically create coupon

    April 12, 2019
    Magento2 add a cms page link to menu

    Magento2 add a cms page link to menu

    April 18, 2018
    magento2 base url

    How to get magento2 base url

    June 29, 2017
  • New Relic Setup in Server
    Server

    New Relic Setup in Server

    January 9, 2019 /

    In this Article , i am sharing you, how you can New Relic Setup in Server . First, i have describe how you can install and setup at New relic at Centos server. Before start install, Please read below articles: https://docs.newrelic.com/docs/agents/php-agent/installation/php-agent-installation-redhat-centos https://foxutech.com/how-to-setup-new-relic-server/ https://www.techbrown.com/configure-new-relic-server-monitoring-centos-7.shtml Please follow below steps for setup the new relic at server. Step1: Add the New Relic Repository to your server. First, you have add new relic package to your server software repository. So, run below command at your server terminal. Step2: Install the New Relic Packages Second, you have to install newrelic package from add repository Step3: Add Lienence Key Step 3: Add Licence Key Now need…

    read more
    devadmin 0 Comments
  • Magento2 add a cms page link to menu
    Magento 2

    Magento2 add a cms page link to menu

    April 18, 2018 /

    Magento2 add a cms page link to menu or add a link to the menu, Magento2 add a cms page link to the menu. If you are store owner/ developer then sometimes, you want to add a cms page link to menu of your Magento 2 store. Magento 2 does not provide any feature like add a Cms page to your existing menu. At default Magento, you can only add the categories to its menu. So, today I am writing this blog for how you add a cms page link to the menu. For this, you need some coding also. If you do not want to wish to do any…

    read more
    devadmin 1 Comment

    You May Also Like

    magento2 get base url and media url and static url

    magento2 get base url and media url and static url

    March 24, 2016

    Magento2 get cart and checkout link in block or phtml

    March 24, 2016
    Magento2 programmatically create coupon

    Magento2 programmatically create coupon

    April 12, 2019
  • Magento 2

    Magento 2 import email address to Newsletter from csv

    September 28, 2017 /

    Magento 2 import email address to Newsletter from csv. I have a requirement to import email is from CSV and import the email ids to Newsletter Subscriber list from csv. Write a PHP script which will import Newsletter subscriber from CSV. In this script, first i have read the email ids  from Csv , Then  first  check an email is exits  as customer Using Magento\Customer\Api\AccountManagementInterface ‘s   function isEmailAvailable($emailId,$websiteId) and depends  on customer types Guest ( mean guest Not register) and register, i have added  the email  to  subscriber list. For add an email to the subscriber list, we need to call factory class Magento\Newsletter\Model\SubscriberFactory  and need to Customer.Guest customer  use $_subscriberFactory->create()->subscribe($Email);   and register customer ,use…

    read more
    0 Comments

    You May Also Like

    Magento2 programmatically create coupon

    Magento2 programmatically create coupon

    April 12, 2019
    Magento2 Checkout shipping address autofill

    Magento2 Checkout shipping address autofill

    March 23, 2019

    Magento2 get cart and checkout link in block or phtml

    March 24, 2016
 Older Posts

Recent Posts

  • Magento2 php8.1 extension install
  • Magento 2 create yes/no product attribute
  • Api search magento using php
  • Magento2 Custom options do not show at Cart
  • Category page NOINDEX,NOFOLLOW when filters applied

Recent Comments

  • URL on Magento2 Checkout shipping address autofill
  • Magento2 programmatically create coupon l- Amit Bera | amitbera.com on How to get magento2 base url
  • Magento2 programmatically create coupon l- Amit Bera | amitbera.com on Magento2 add a cms page link to menu
  • Magento2 Checkout shipping address autofill- Amit Bera | amitbera.com on magento2 get base url and media url and static url

Archives

  • November 2022
  • September 2022
  • August 2022
  • December 2021
  • September 2021
  • April 2019
  • March 2019
  • January 2019
  • April 2018
  • September 2017
  • June 2017
  • October 2016
  • April 2016
  • March 2016
  • February 2016
  • August 2015
  • January 2015
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • December 2013
  • November 2013

Categories

  • General
  • Magento
  • Magento 2
  • Server
  • Uncategorized
  • Weekly Dairy

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Ashe Theme by WP Royal.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok