How to Get Total Segment Using Magento 2 Rest API

Get Total Segment Using Magento 2 Rest API

While creating a custom rest API in Magento 2, you may need to work with the order total and use their values. Today, I have come up with the blog to get total segment using Magento 2 rest API. Steps to Get Total Segment Using Magento 2 Rest API: Create app/code/Vendor/Extension/etc/webapi.xml file and put the below code: [crayon-5e299b6af1b9a452252648/]   Now, create app/code/Vendor/Extension/Api/GuestFeesInformationManagementInterface.php and put below code: [crayon-5e299b6af1bb4172490953/]   Go to app/code/Vendor/Extension/etc/di.xml and put the below code: [crayon-5e299b6af1bb6225299053/]   Create app/code/Vendor/Extension/Model/Api/GuestFeesInformationManagement.php file with

Continue Reading

How to Create Custom Rest API in Magento 2

Create Custom Rest API in Magento 2

Rest API in Magento 2 defines a set of functions used by the developers to perform requests and get responses using the HTTP protocol. By default, Magento 2 provides some predefined rest APIs like Product API, Order API, Customer data API with which you can take virtual control of everything happening on the site. Even though Magento 2 has these many rest APIs, they are not enough when it comes to using the custom data and their values. To manage

Continue Reading

How to Get Store Information on Magento 2 Checkout Page by Knockout Js

How to Get Store Information on Magento 2 Checkout Page by Knockout Js

Knockout is a JavaScript library that is widely used to develop the Magento 2 frontend part, particularly the checkout page. You can create dynamic pages based on the user’s action as Knockout implements the Model-View-View Model (MVVM) design pattern. With the introduction to the Knockout Js in Magento 2, it’s now become easy to develop responsive frontend components such as date picker, color picker, custom image viewer, popups, and other custom design elements which contribute a lot to UI convenience.

Continue Reading

How to Get Table Name with Prefix in Magento 2

How to Get Table Name with Prefix in Magento 2

  While installing Magento 2, You get the option to set the database prefix for the Magento 2 tables. Keeping the default table names makes it easier for hackers to attack. Using database prefix adds the layer of the security which restricts the attack of the generic SQL injection attacks. Now, when you call the table to fetch the value it holds in some custom extension, you require to get table name with prefix in Magento 2 to get the

Continue Reading

Magento 2.3.4: What’s New in Latest Magento 2.3.4 [January 2020]

Magento 2.3.4 Release

Howdy Magento Peeps?! Ready for the new version Magento 2.3.4 GA release scheduled on 28th January? 💪🏻 If not, read this pre-release to get details of the features and functional fixes, and if you are ready, follow this blog to confirm you have not missed any important feature in your checklist. 🚀 According to pre-release, Magento 2.3.4 offers significant platform upgrades, substantial security updates, and PSD2-compliant core payment methods and includes 220 functional fixes to the core product and over 30 security enhancements. What’s New

Continue Reading

How to Get Product Image URL in Magento 2

How to Get Product Image URL in Magento 2

You may require to import product images in Magento 2 while migrating the website data or require to get the product image URL to fetch product images, implement custom functionality or developing some features. Today, I’ve come up with the solution to get product image URL in Magento 2. Steps to get product image URL in Magento 2: [crayon-5e299b6af2614556030295/] That’s all about getting Magento 2 product image URL. Let me know if you have any query regarding it by commenting

Continue Reading

Magento 2: Show Loader till Ajax Call not Completed

Magento 2: Show Loader till Ajax Call not Completed

For Ajax requests in Magento 2, you can show loader on the pages as the request may take less or more time based on the data to be fetched, processing time, server types, etc. The primary benefit of showing loader on Ajax call in Magento 2 is let people know the request in progress and the response is awaited. On Ajax call, the loader can be started and immediately after the response is received, it can be stopped. You can

Continue Reading

How to Get Static Block Content in Block File in Magento 2

Get Static Block Content in Block File in Magento 2

CMS blocks help to manipulate content of the Magento 2 stores. Static blocks can carry a simple text or html, CSS, Javascript to display content. It makes the reuse of the content in a modular and manageable way. Previously, I had come up with the solution to Call CMS Static Block in Phtml File in Magento 2. Today, I will help you get static block content in block file in Magento 2. Steps to Get Static Block Content in Block File in

Continue Reading

How to Disable Ajax Add to Cart on Product page in Magento 2

Disable Ajax Add to Cart on Product page in Magento 2

Happy New Year Readers! 🎉 Let’s make a good start of the new year with a new Magento solution! 📖 Do your large number of customers abandon cart due to lengthy checkout process? Do you want to optimize the checkout process so that you never lose a chunk of users who could have been your potential customers?! The default behavior of the Magento 2 “Add to Cart” button is on click, it uses an ajax to add the product to cart

Continue Reading

How To Create Customer Group Programmatically In Magento 2

How To Create Customer Group Programmatically In Magento 2

After creating customers programmatically in Magento 2, you may require to group them based on similar buying behavior, let’s say, to organize them with ease, give them discounts, and restrict access to specific products or categories. Magento 2 offers a solution to divide the customers into groups called Magento 2 Customer Groups. This arrangement helps store owners with targeted customer management and marketing. Efficiently manage the user experience offered, rules, tax classes, etc. based on the customer groups. The default

Continue Reading