skip to Main Content

Location to redirect PHP – Magento

<?php $url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $find = array( 'equipamiento/impermeable-moto', 'equipamiento/ropa-termica-moto', 'equipamiento/ropa-accesorios', 'equipamiento/protecciones', 'equipamiento/electronica-moto', 'equipamiento/mono-moto', 'equipamiento/pantalon-moto', 'equipamiento/botas-moto', 'equipamiento/chaquetas-moto', 'equipamiento/cascos-moto', 'equipamiento/equipaje', 'equipamiento/guantes-moto', 'equipamiento', 'recambios/accesorios', 'recambios/lubricantes', 'recambios/sistema-frenado-moto', 'recambios/suspension', 'recambios/baterias-moto', 'recambios/baterias-moto', 'recambios' ); foreach ($find…

VIEW QUESTION

Magento 2 – add a category attribute

I'm tryng to create a custom category attribute using this guide but it doesn't work for me, this is the code that I'm using for the InstallData.php: use MagentoFrameworkSetupModuleContextInterface; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupInstallDataInterface; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; class InstallData implements…

VIEW QUESTION

Error in magento 2.2 admin panel login

{"0":"Source class "TemandoShippingModelResourceModelCheckoutAddressInterface" for "TemandoShippingModelResourceModelCheckoutAddressRepository" generation does not exist.","1":"#0 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Code/Generator.php(112): MagentoFrameworkCodeGenerator->tryToLoadSourceClass('Temando\Shippin...', Object(MagentoFrameworkObjectManagerCodeGeneratorRepository))n#1 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Code/Generator/Autoloader.php(35): MagentoFrameworkCodeGenerator->generateClass('Temando\Shippin...')n#2 [internal function]: MagentoFrameworkCodeGeneratorAutoloader->load('Temando\Shippin...')n#3 [internal function]: spl_autoload_call('Temando\Shippin...')n#4 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/Relations/Runtime.php(38): class_exists('Temando\Shippin...')n#5 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Interception/Config/Config.php(166): MagentoFrameworkObjectManagerRelationsRuntime->has('Temando\Shippin...')n#6 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Interception/Config/Config.php(189): MagentoFrameworkInterceptionConfigConfig->_inheritInterception('Temando\Shippin...')n#7 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/Interception/ObjectManager/Config/Developer.php(61): MagentoFrameworkInterceptionConfigConfig->hasPlugins('Temando\Shippin...')n#8 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(47): MagentoFrameworkInterceptionObjectManagerConfigDeveloper->getInstanceType('Temando\Shippin...')n#9 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Temando\Shippin...')n#10 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): MagentoFrameworkObjectManagerObjectManager->get('Temando\Shippin...')n#11 /var/www/html/projects/magento22pruthvi/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, 'Temando\Shippin...', NULL, 'checkoutAddress...', 'Temando\Shippin...')n#12…

VIEW QUESTION

Magento 2 Custom drop down attribute added options not shown

I created a new Product drop-down attribute (Typ) programmatically : $eavSetupFactory->addAttribute( Product::ENTITY, $name, [ 'type' => 'int', 'label' => $name, 'input' => 'select', 'required' => true, 'backend' => 'MagentoEavModelEntityAttributeBackendArrayBackend', 'global' => ScopedAttributeInterface::SCOPE_STORE, 'visible' => true, 'searchable' => true, 'filterable' =>…

VIEW QUESTION

Error 500 in Magento

I have successfully installed Magento in mylocalhost server and when i tried to open the admin and index i got this error [Wed Aug 01 00:47:57.088443 2018] [php7:error] [pid 12976] [client ::1:48615] PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/magento2/var/page_cache" is…

VIEW QUESTION
Back To Top
Search