Daily Archives: October 5, 2019
I’m going to make a quick seminar for my team on how to improve the testability of our (15 years old) PHP code-base. Do you have any specific tips and tricks we can follow? Currently we’re using the Yii 1.1 framework, with PHPUnit and Facebook WebDriver with Serentiy for functional […]
I am trying to extract the fallback_url of a video from reddit url and JSON using following PHP code: < ?php //URL $url = 'https://www.reddit.com/r/funny/comments/dd63z1/this_kid_is_at_least_100_years_ahead_of_us/.json’; $json = file_get_contents($url); $array = json_decode($json,true); //print_r($array); $media = $array[‘reddit_video’]; echo $media[‘fallback_url’]; ?> But it seems to be not working please help. submitted by /u/scribbbblr […]
Is there a way to remove my custom attribute code and only show the value? I created a custom address attribute “special_instructions” and when I add an address in my account section everything works fine.. but when I add an address in the checkout the address summary shows my attribute […]
In the past, to load a quote by id, i used to use the factory: protected $quoteFactory; public function __construct( ... MagentoQuoteModelQuoteFactory $quoteFactory, .... ) { .... $this->quoteFactory = $quoteFactory; .... } But since moving on, it is more recommended to use the service contract: protected $cartRepository; public function __construct( […]
Anywhere I can edit the text on the shopping cart page to let my customers know that there is an automatic sale going on without a promo code needed?
I am trying install a new theme in magento 2.2.8 and when i run in terminal php bin/magento setup:static-content:deploy -f This is the error that appear: #0 /var/www/clients/client19/web982/web/vendor/magento/framework/App/View/Asset/Publisher.php(73): MagentoFrameworkViewAssetFile->getSourceFile() #1 /var/www/clients/client19/web982/web/vendor/magento/framework/App/View/Asset/Publisher.php(61): MagentoFrameworkAppViewAssetPublisher->publishAsset(Object(MagentoFrameworkViewAssetFile)) #2 /var/www/clients/client19/web982/web/vendor/magento/module-deploy/Service/DeployStaticFile.php(92): MagentoFrameworkAppViewAssetPublisher->publish(Object(MagentoFrameworkViewAssetFile)) #3 /var/www/clients/client19/web982/web/vendor/magento/module-deploy/Service/DeployPackage.php(189): MagentoDeployServiceDeployStaticFile->deployFile('js/owl.carousel...', Array) #4 /var/www/clients/client19/web982/web/vendor/magento/module-deploy/Service/DeployPackage.php(136): MagentoDeployServiceDeployPackage->processFile(Object(MagentoDeployPackagePackageFile), Object(MagentoDeployPackagePackage)) #5 /var/www/clients/client19/web982/web/vendor/magento/module-deploy/Service/DeployPackage.php(107): MagentoDeployServiceDeployPackage->deployEmulated(Object(MagentoDeployPackagePackage), Array, false) #6 [internal […]