Hot answers tagged

4

In your .phtml please add following code. <script type="text/x-magento-init"> { "*": { "Magepow_Ajaxcart/js/view/minicartaddons": { "maxpriceShipping": <?= /* @escapeNotVerified */ $maxpriceShipping ?> } } } And in your JS file please add below code to get maxpriceShipping define([ 'ko', '...


2

In your Block file add: public function __construct( ... \Magento\Store\Model\StoreManagerInterface $storeManager, ... ) { $this->storeManager = $storeManager; } /** * @return mixed * @throws \Magento\Framework\Exception\NoSuchEntityException */ public function getMediaUrl() { ...


Only top voted, non community-wiki answers of a minimum length are eligible