Setting Pagination in Order

It will only work when the field is in the form of an array. ‘created_at’ is given here because it’s a field in the database and it can be any other name. It can also be in ‘desc’ or ‘asc’ order.

Published
Categorized as Magento

How to Configure Price Per Customer

One of the Magento 2 features is Customer Group Price. It allows you to set different prices of products in accordance with their quantity as well as depending on the customer group.  STEP-BY-STEP PROCESS TO CONFIGURE PRICE PER CUSTOMER IN MAGENTO 2 1. Navigate to Catalog > Products and select a product you want to define the group prices for. 3.… Continue reading How to Configure Price Per Customer

Published
Categorized as Magento

Create a custom filed on the customers section

Create setup file InstallData.php Firstly, we will create the InstallData. File: app/code/<vendorname>/<foldername>/Setup/InstallData.php Define the install() method After that, we have to define the install() method and create eav setup model: Create custom attribute Finally, we need to set the forms in which the attributes will be used. In this step, we need define the eavConfig object which allow us… Continue reading Create a custom filed on the customers section

Published
Categorized as Magento