Yearly Archives: 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 […]
I have layered navigation enabled with a multiple select field, but am having difficulties with the default behavior of every extension out there that I can find. Need to find a way for the user, when selecting multiple options of a multiple select attribute to only display products that match […]
I want to play around with C#8’s new nullability feature. Is there are an online C# compiler/executor like https://try.dot.net around which is C#8 + nullability compatible?
Environment: I have a Linux web server running as a guest VM (Hyper-V) on Win 10. My web store is now requiring 100+ GB for repetitive image files. Because of this size, I can no longer back this up locally to my local backup repository and would rather back it […]
I need to configure our Apache web server to handle the domain name. The phrase is like so: webmin: Handles the name-based server www.my-domain.org on address *. Why do we have: Handles the name-based server www.my-domain.org on address *. Why is it: *. and not *.*?