What is a REST API? An API, or application programming interface, is a set of rules that define how applications or devices can connect to and communicate with each other. A REST API is an API that conforms to the design principles of the REST, or representational state transfer architectural style. For this reason, REST APIs are sometimes… Continue reading BASICS OF REST API
Category: Magento
Check the saleable quantity of a product in Magento2
To check whether the item is available or not for the purchase. In Magento, the quantity is always remain the same when we purchase an item from the website. But the saleable quantity count will be reduced based on the purchase of the product. So in the case of checking the available quantity of a… Continue reading Check the saleable quantity of a product in Magento2
Stripe configuration on a custom page in Magento2
The stripe payment configuration on a custom page has been been done using a form method provided by skype.
How to change Product image with swatch colour
The main image of a configurable product changes with the swatch color tiles in Magento 2. However, there are a few settings to check if this doesn’t work out of the box. Update Product Preview Image In the product attribute section in Stores >> Attributes >> Product >> Color, make sure “Update Product Preview Image”… Continue reading How to change Product image with swatch colour
How to Add Pagination in Magento 2 Custom Collection
Pagination is the process of separating print or digital content into discrete pages. It is an ordinal numbering of pages, which is usually located at the bottom of the site pages. Pagination also refers to the automated process of adding consecutive numbers to identify the sequential order of pages. Some types of website content benefit… Continue reading How to Add Pagination in Magento 2 Custom Collection
price level settings in magento2
In Magento, the price level settings can be only done by the customer group pricing. Price levels are considered as customer groups and for each customer group, we will set the price. Also, each customer should be assigned to a customer group. Through this, the price level on the Netsuite will be integrated into Magento.… Continue reading price level settings in magento2
Magento 2 Configure Design: HTML Head, Header, Footer, Transactional Emails
6 Steps to Configure Design Settings: Step 1: Access to Content Step 2: Configure the design settings Step 3: Change the Default Theme Step 4: Change the Theme Step 5: Edit Design Configuration Step 6: Complete, Click Save Configuration Step 1: Access to Content On the Admin Sidebar, click Content Select Design Then, select Configuration Step 2: Configure the… Continue reading Magento 2 Configure Design: HTML Head, Header, Footer, Transactional Emails
How to upload file using AJAX and PHP
Create index.html file and put following contents into it Create a js file, you can name it main.js Create a PHP file, you can name it upload.php
Magento2: get custom customer attribute value
Custom attributes can also be obtained using getData() method. Below example fetches a customer custom attribute, custom_attribute_name, in an observer. }
Get store e-mail in phtml file in Magneto 2
To get store email id to phtml file create a php tag to input the email field to the project. For creating a php tag must be imported and it must contain the following code to retrieve the store email address. the output for the code will be the store email address.