Daily Archives: January 25, 2020
Is there an alternate way to change the resources available to each user role? The “System” resource has been removed from the admin role, so alas, I can’t access the role resource UI in order to restore these permissions. Any suggestions?
Want to display a message after certain conditions, how to achieve that? class ShipmentEstimationPlugin { public function __construct( MagentoCustomerModelSession $customerSession ) { $this->customerSession = $customerSession; } public function aroundEstimateByExtendedAddress( ShipmentEstimationInterface $subject, Closure $proceed, $cartId, MagentoQuoteApiDataAddressInterface $address ) { $writer = new ZendLogWriterStream(BP . '/var/log/testshipping.log'); $logger = new ZendLogLogger(); $logger->addWriter($writer); $objectManager […]
I have an observer in my module (fired on controller_action_predispatch) which checks the current logged in customer billing country, and sets the store view accordingly. For example: $this->storeManager->setCurrentStore('1'); However, the new store view isn’t loading on the frontend? I have logged the store id from the observer to check it […]
I want to change the url of the review list page from the default URL like https://eample.com/review/product/list/id/3443/ But I want to override that Code to change it to something that more user friendly like https://eample.com/product-url-key/customer-reviews I knows how to create custom modules But I don’t knows how to override this […]