In this article, we review the art of creating printer-friendly web pages with CSS. “Who prints web pages?” I hear you cry! Relatively few pages will ever be reproduced on paper. But consider: printing travel or concert tickets reproducing route directions or timetables saving a copy for offline reading accessing […]
Daily Archives: January 7, 2020
PhpStorm doesn’t give me any error for this function block /** * @param array $foo * @return string */ public function test(array $foo): string { return (string)$foo; } Despite casting array to string will result in a notice. Similarly, there’s no error for this /** * @param array|string $foo * […]
I have a function to get the customer group ID and in my phtml file if it equals the customer group id I show content. The issue is that when I test it in a production environment the content doesn’t seem to show but on a development environment it does. […]
I am looking to see if there is a way to pull down all the options that are available for a user. My goal is to create a drop down list so a user can pick a formatted URI that they need to accomplish their task? so for example a […]
I wrote a simple sql upgrade script to add a custom attribute to the customer table. My script : < ?php $installer = $this; $installer->startSetup(); $installer->addAttribute('customer', 'whatsapp_active', array( 'type' => 'static', 'input' => 'boolean', 'label' => 'Is Customer Active', 'default' => '1', 'visible' => true, 'required' => false, 'user_defined' => […]