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-5e29b08e40e00300082411/]   Now, create app/code/Vendor/Extension/Api/GuestFeesInformationManagementInterface.php and put below code: [crayon-5e29b08e40e0a195259412/]   Go to app/code/Vendor/Extension/etc/di.xml and put the below code: [crayon-5e29b08e40e0c968474133/]   Create app/code/Vendor/Extension/Model/Api/GuestFeesInformationManagement.php file with

Continue Reading

How To Fix “data-vocabulary.org schema deprecated” Error

How To Fix "data-vocabulary.org schema deprecated" Error

Google announces the end of support for data-vocabulary from April 6, 2020! With the increasing usage and popularity of https://t.co/hGrr8MSS40 we decided to focus our development on a single scheme. As of April 6, 2020, https://t.co/N98EXBIRJ6 markup will no longer be eligible for Google rich result features. Read more at https://t.co/n8qsmdLgxE pic.twitter.com/JIg9yqMxRB — Google Webmasters (@googlewmc) January 21, 2020 Do not panic, webmasters. The post includes the fix for your site to convert data-vocabulary to schema.org Schema.org structured data scheme

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

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-5e29b08e41c97011501962/] That’s all about getting Magento 2 product image URL. Let me know if you have any query regarding it by commenting

Continue Reading

Solved: Magento 2 Plugin Issue in Catalog Search

Solved: Magento 2 Plugin Issue in Catalog Search

You can create a plugin in Magento 2 to insert code dynamically without changing the original class behavior. It allows extending the core functionality without any modification to the core files. In Magento 1, you can rewrite a class to customize different classes and methods, but the drawback of it is, no module could rewrite the same class, and thus it has no flexibility. To overcome the rewrite conflicts and instability, Magento 2 is being introduced with inceptors or plugins! But in Magento 2,

Continue Reading

How to Get Value of Custom Attribute on Magento 2 Rest API

Get Value of Custom Attribute on Magento 2 Rest API

Magento 2 REST API is the best way of developing the cross-platform app to communicate with your Magento 2 stores. While developing an app, you would require to get value of custom attribute on Magento 2 REST API and use this further in the app. Today, I have come up with the complete guide to get value ofcustom attribute on Magento 2 REST API. Steps to Get Value of Custom Attribute on Magento 2 Rest API: Create/Add a new column in ‘sales_order‘ table

Continue Reading

How to Exclude Custom Module JS from Minification of JS in Magento 2

Exclude Custom Module JS from Minification of JS in Magento 2

JavaScript minification in Magento 2 deletes odd components like spaces or symbols from JS files to decrease the size of the code and to improve the website load time. To minify JavaScript from Magento 2 backend, go to Stores > Configuration > Advanced > Developer when the developer mode is on. Note: If the store is in Production mode, the above option will not be visible. When “Minify JavaScript Files” is turned on, Magento 2 adds .min to the script. The core benefit

Continue Reading

How To Get Payment Method Title Of Order In Magento 2

How To Get Payment Method Title Of Order In Magento 2

An E-commerce store demands attention to even small details like the color of a button or details in the Thank you page or showing what order information! It is because every step plays a role either in pushing the user towards conversion or improving customer experience. One such minute detail is to get payment method title of order in Magento 2. What order information you are going to display in My Orders section of Magento 2 matters as a part

Continue Reading