How to get Product Attribute Code by attribute id Magento 2?

You can retrieve the Product/Category Attribute code value by the id in Magento 2.

You are developing feature and you required to fetch attribute code value by the attribute id, in this scenario, this article will be helpful. Continue reading “How to get Product Attribute Code by attribute id Magento 2?”

How to get currency symbol by store Magento 2?

Retrieve Currency symbol for the current store or any specific store currency symbol by store id or name.

Use Interface to fetch symbol Magento\Framework\Pricing\PriceCurrencyInterface with getCurrencySymbol() method. Continue reading “How to get currency symbol by store Magento 2?”

Get Sandbox and Gateway URL of DHL Shipping Programmatically Magento 2.

Magento comes with Out of the box DHL shipping Method to use the shipping provider as the DHL method.

While you are developing features related to the DHL shipment and you need sandbox URL for the test shipping method or real gateway URL you can achieve this using a programmatic way.

DHL has already sandbox and gateway URL available, You can retrieve both of the URL by simple Code snippet, Continue reading “Get Sandbox and Gateway URL of DHL Shipping Programmatically Magento 2.”