Can’t run this operation: deployment configuration is absent. Run ‘magento setup:config:set –help’ for options.

Once running Magento 2 CLI Command

php bin/magento setup:upgrade or any other CLI Command

& getting error as

Can't run this operation: deployment configuration is absent. Run 'magento setup:config:set --help' for options.

Solution : This error getting, while Magento 2 Database Configuration file env.php [app/etc/env.php], not available

Once Database Configuration file env.php [app/etc/env.php] available , issue will be resolved.

Magento 2.x Store Email Addresses

Magento 2 Store Email Addresses having different email addresses for different email transactions, These email addresses are used to send automated emails transactions to customers.

By default, Magento 2, There are five different email addresses for each store(view)

  • General Contact : Defines General Contact Email
  • Sales Representative : Defines Sales Email
  • Customer Support : Defines Customer Support Email
  • Custom Email 1 : Defines Custom Email 1
  • Custom Email 2 : Defines Custom Email 2

There are following steps need to follow.

[1]- Go STORES > Configuration, redirects Configuration section.

[2]- Left panel, Configuration section choose

GERERAL > Store Email Addresses.

[3]- Once Clicked on Store Email Address, Right Panel Opened, with combination of five different email addresses

To Open any any email address, need to expand , particular Email Section

As above image, General Contact Section, Admin need to configure Sender Name and Sender Email for various roles inside your Magento store (Similarly put Sender Name and Sender Email for Sales Representative, Customer Support, Custom Email 1, Custom Email 2).

[5]- Click on Save Config button & run CLI command Flush

Magento 2.x Disable Contact Us Form

There are following steps need to follow.

Magento 2 Admin

[1] Go STORES > Configuration, redirects Configuration section.

[2] Go to General –> Contacts

[3] Right Panel, Expand Contact Us

By Default Contact Us Form Enabled , Select No Option to Disable Contact Us Form

[4] Right Panel, Expand Email Options

Send Emails To: Admin need to put email on which Admin want to receive contact us inquiries.


Email Sender: While configuring the Store Email address section Admin already added sender and store email id, Same Senders are being displayed here, need to select the same Sender

Email Template: By default, "Contact form (Default)" is selected
If Admin want to change, can select any other Email Template

[5] Finally Clicked on Save Config Button

Magento 2.x Events and Observers

What are Magento 2 Events?

Magento 2 events are used to run custom code in response to any particular Magento 2 event or custom event. Events are dispatched by modules when certain actions are triggered. When an event is dispatched, it can pass data to any observers configured to watch that event.

How Can Use Magento 2 Events

Events are dispatched by Magento 2 modules whenever specific actions are triggered. When an event dispatches, it passes data to the observer that is configured to watch (or monitor) that event. You can dispatch Magento 2 Events using the Magento\Framework\Event\Manager class

List of All Events Magento 2 Events-Attachment-PDF-Format

“Events and Observers are used to extend the core functionalities”

What are Observers?

Observers are the particular classes that control the general behavior, performance, or change in the business logic

Which class file is used to create Observers

To create an observer in Magento 2, you must place your class file under the ModuleRoot/Observer directory. The observer class file should use

Magento\Framework\Event\Observer

&

Magento\Framework\Event\ObserverInterface

class and define the executive function.

Declaration Observer

There are following below method to declare observer

“Observer will be executed in all areas: adminhtml, crontab, frontend, graphql, webapi_rest, webapi_soap”

[1]- Observer Global Declaration :

magento2rootdirectory/app/code/vendorname_modulename/etc/events.xml

[2] Observer Frontend Declaration :

magento2rootdirectory/app/code/vendorname_modulename/etc/frontend/events.xml

[3] Observer Adminhtml Declaration :

magento2rootdirectory/app/code/vendorname_modulename/etc/adminhtml/events.xml

[4] Observer Graphql Declaration :

magento2rootdirectory/app/code/vendorname_modulename/etc/graphql /events.xml

[5] Observer Crontab Declaration :

magento2rootdirectory/app/code/vendorname_modulename/etc/crontab/events.xml

[6] Observer RestAPI Declaration :

magento2rootdirectory/app/code/vendorname_modulename/etc/webapi_rest /events.xml

[7] Observer SAOPAPI Declaration :

magento2rootdirectory/app/code/vendorname_modulename/etc/webapi_soap/events.xml

How To Create Events & Observer Using Custom Module in Magento / Adobe Commerce 2.x


How To Create Preference Using Custom Module in Magento / Adobe Commerce 2.x


How To Create Plugin Using Custom Module in Magento / Adobe Commerce 2.x


How To Get Base URL in Magento 2.x / Adobe Commerce 2.x


How To Create Custom Module in Magento 2.x / Adobe Commerce 2.x


How To Add Custom Block on Cart Page in Magento 2.x / Adobe Commerce 2.x


How To Create a Custom Log File in Magento 2.x / Adobe Commerce 2.x


How To Create Custom Controller in Magento 2.x / Adobe Commerce 2.x


How To Create a Custom Console Command in Magento 2.x / Adobe Commerce 2.x


How To Add Customer Groups Dropdown in Magento 2.x Admin Form and Grid By UI Component in Magento 2.x / Adobe Commerce 2.


How To Get all Customers Data in Magento 2.x / Adobe Commerce 2.x


How To Set Tier Price With Percentage Value Programmatically in Magento 2.x / Adobe Commerce 2.x


How To Add Tier Price Programmatically in Magento 2.x / Adobe Commerce 2.x


How To Add Websites Dropdown in Admin Form and Grid By UI Component in Magento 2.x / Adobe Commerce 2.x


Magento 2 All Database Tables [500 & more Tables]


How To Set Multi Shipping Settings In Magento 2


How To Set Origin Shipping in Magento 2


Difference Between Offline Shipping Method and Online Shipping Method


Magento 2 Online Customers Options



How To Apply Customer Group Price of Products in Magento 2


How To Add Customer Groups Dropdown in Magento 2 Admin Form and Grid By UI Component


How To Get all Customers Data in Magento 2


How To Create Customer Order in Magento 2 Admin Panel


Magento 2 Login As Customer Not Enabled


How To Configure Customer Account Sharing Options in Magento 2


Magento 2 Redirect To Customer Dashboard After Login


Which Magento 2 database table store customer shipping and billing address


How To Remove Sales Order Data & Customer Data in Magento 2


Which Magento 2 database table store customer’s Email Data


Which Magento 2 Database Table Store Customer Newsletter Data


Which Magento 2 database table store customer’s shipping and billing address


How To Remove Sales Order Data & Customer Data in Magento 2


Which Magento 2 Database Tables Store Customer Rating


Which Magento 2 Database Tables Store Customer Wishlist Products


Magento 2 Increase Customer Session Time


Which Magento 2 Database Table Store Patches

Magento 2.x Enable Allow Guest Checkout

There are following steps need to follow.

Step-[1] Go STORES > Configuration, redirects Configuration section.

Step-[2] Left panel, choose Sales > Checkout.

Step-[3] Once Clicked on Checkout, Right panel opened Checkout Options & expand

Step-[3.1] Enable Onepage Checkout: select Yes

Step-[3.2] If Admin want to allow Guest Checkout,
Allow Guest Checkout: select Yes

Step-[3.3] If Admin want to enable Terms & Conditions

Enable Terms and Conditions: select Yes

Step- [4] Finally, One Page Checkout has been enabled

Step- [5] Frontend View One Page Checkout

Reasons of Shopping Cart Abandonment

There are following below reasons, Why Shopping Cart Abandonment

[1]- High hidden costs at payment time which are not mentioned upfront(total of shipping and taxes cost and product price).
[2]- High shipping and taxes cost
[3]- A long and complicated checkout flow with multiple steps.
[4]- Fear of the product looking different from the picture/description.
[5]- Lack of payment options.
[6]- Website Browsing & slow speed Issue.
[7]- Forced customer account creation.
[8]- Terms & Condition & Return Policy not Satisfactory.
[9]- Credit Card or Payment declined.
[10]- Lack of Customer Support.
[11]- Lack of coupon code or discount code.
[12]- Need some research before payment done.

Ecommerce Abandonment or Shopping Cart Abandonment

Ecommerce Abandonment or Shopping Cart Abandonment as “Once potential customers visiting shopping websites, added products as per their need into Shopping Cart & process for checkout step, but they did not complete payment step & left shopping websites”

Shopping cart abandonment rate is calculated by dividing the total number of completed transactions by the total number of transactions that were initiated, This indicates what percentage of a shopping website’s users signal purchase intent by adding an item to the cart, but do not complete the purchase

Magento 2.x Redirect To Customer Dashboard After Login

Admin can enable redirecting customers feature to customer dashboard after they logged in. by default this feature (Redirect Customer to Account Dashboard after Logging in) disabled.

If Admin wants as customers logged & redirects on Customer Dashboard page, this feature (Redirect Customer to Account Dashboard after Logging in) need to enable.

If Admin wants as customers logged & redirects on same page or current page need to disable this feature (Redirect Customer to Account Dashboard after Logging in), this feature By Default Disabled.

There are following steps need to follow.

Magento 2 Admin End

[1] Go STORES > Configuration, redirects Configuration section.

[2] Left panel, choose CUSTOMERS > Customer Configuration.

[3] Once expanded Login Options.

[4] Redirect Customer to Account Dashboard after Logging in By Default Yes, need to set No

Select Yes: allow showing the customer account dashboard when customers log in to their accounts.
Select No : no redirect to customer account dashboard when customers log in to their accounts, customer stay on same page.

[5] Finally clicked on Save Config Button & run CLI command Flush

Magento 2 All Database Tables [500 & more Tables]


How To Set Multi Shipping Settings In Magento 2


How To Set Origin Shipping in Magento 2


Difference Between Offline Shipping Method and Online Shipping Method


Magento 2 Online Customers Options



How To Apply Customer Group Price of Products in Magento 2



How To Add Customer Groups Dropdown in Magento 2 Admin Form and Grid By UI Component


How To Get all Customers Data in Magento 2


How To Create Customer Order in Magento 2 Admin Panel


Magento 2 Login As Customer Not Enabled


How To Configure Customer Account Sharing Options in Magento 2


Magento 2 Redirect To Customer Dashboard After Login


Which Magento 2 database table store customer shipping and billing address


How To Remove Sales Order Data & Customer Data in Magento 2


Which Magento 2 database table store customer’s Email Data


Which Magento 2 Database Table Store Customer Newsletter Data


Which Magento 2 database table store customer’s shipping and billing address



How To Remove Sales Order Data & Customer Data in Magento 2


Which Magento 2 Database Tables Store Customer Rating


Which Magento 2 Database Tables Store Customer Wishlist Products



Magento 2 Increase Customer Session Time


Which Magento 2 Database Table Store Patches

Magento 2.x Newsletter

Newsletter is a essential things for Store to notify their customers about some discount offers, special offers, occasion offers or weekly / monthly special sales running as well as provide them with latest product updates.

There are following steps need to follow.

[1] Go STORES > Configuration, redirects Configuration section.

[2] Left panel, choose CUSTOMERS > Newsletter.

[3] Once Clicked Newsletter, Right Panel opened with

General Options & Subscription option

[4] Once expanded General Options & Subscription option

The following below things enabled / disabled

  • General Options: Enable newsletters.
  • Allows Guest Subscription: Set as Yes, Allows Guest Subscription option to Yes, if Admin wants unregistered users to be able to subscribe to store newsletter
  • Need To Confirm: Choose whether the newsletter subscription Needs to be Confirmed by the user. This option is to prevent users from being subscribed to a newsletter without their confirmation.
  • Confirmation Email Sender: Select Confirmation Email Sender and Confirmation Email Template to set store contact and the email template that will appear in the email about the newsletter confirmation
  • Success Email Sender : Select Success Email Sender
  • Success Email Template : Select Success Email Template
  • Unsubscription Email Sender : Select Unsubscription Email Sender
  • Unsubscription Email Template : Select Unsubscription Email Template

[5] Finally clicked on Save Config Button & run CLI command Flush

Which Magento 2 Database Table Store Customer Newsletter Data