Use \Magento\Quote\Api\CartRepositoryInterface Repository as a dependency to create its instance and load the quote using id. Alternatively you can also get quote using \Magento\Quote\Model\QuoteFactory model. But this has
To get url of the current page, the code below works everywhere: $objectManagerInstance = \Magento\Framework\App\ObjectManager::getInstance(); $url = objectManagerInstance -> get('Magento\Framework\UrlInterface'); echo $url -> getCurrentUrl(); From a .phtml template
Inject Resolver Dependency and get locale in your phtml And in your phtml:
Create Instance to Object Manager then inject dependency to perform your query: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); Now load your country by the following code: While AE is the country
To get country list data, you need to create instance of Country collection model `Magento\Directory\Model\ResourceModel\Country\CollectionFactory`. Once instance is created, you can load it by current store.
1. Path Retrieval in Static Block or CMS Page Get Base Url: Get Store Url: Get Media Url: Get Skin Url: 2. Path Retrieval in phtml files
There are the times when we need few admin roles bounded under specific permissions. So Today I am showing you how to create another admin with custom roles.