How to Get Customer address list by customer id Magento 2?

Magento supports Customers with multiple addresses like billing and shipping addresses. Customers can create an address from the My Account Section Address Book tabs from the storefront.

We can get all the list of available customer address by Customer id with AddressRepository Interface. Customer address saved under the customer_address_entity table with parent_id as a customer id. Continue reading “How to Get Customer address list by customer id Magento 2?”

How to get Shipment comments by comment id Magento 2?

You can check the shipment comments by Magento 2 using Shipment Comment Repository Interface with shipment id. Continue reading “How to get Shipment comments by comment id Magento 2?”

How to Get all active Catalog Rules collection Magento 2?

Magento 2 You can retrieve the active catalog rules of the system. Using Active rules, You can identify a number of rules that are active and working for the catalog category pages.

To identify, an active rule you need to filter the catalog collection by is_active field. Value 1 contains the active and 0 used to disable the rule in the system. Continue reading “How to Get all active Catalog Rules collection Magento 2?”