Skip to content

magento man

Add magento 2 module in ubuntu error

Repositories code generation… 1/9 [===>————————] 11% < 1 sec 117.0 MiBsyntax error, unexpected token “&”, expecting “function” or “const”#0 /var/www/myshop/vendor/composer/ClassLoader.php(433): ComposerAutoload{closure}() #1 [internal function]: ComposerAutoloadClassLoader->loadClass() #2 /var/www/myshop/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists() #3 /var/www/myshop/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): MagentoSetupModuleDiCodeReaderClassesScanner->includeClass() #4 /var/www/myshop/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): MagentoSetupModuleDiCodeReaderClassesScanner->extract() #5 /var/www/myshop/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): MagentoSetupModuleDiCodeReaderClassesScanner->getList() #6 /var/www/myshop/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): MagentoSetupModuleDiAppTaskOperationRepositoryGenerator->doOperation()… Read More »Add magento 2 module in ubuntu error

Magento layout file not called?

This is my Controller Index.php <?php namespace HikmadhMenuControllerAdminhtmlProduct; class Index extends MagentoFrameworkAppActionAction { /** @var MagentoFrameworkViewResultPageFactory */ protected $resultPageFactory; public function __construct( MagentoFrameworkAppActionContext $context, MagentoFrameworkViewResultPageFactory $resultPageFactory ) { $this->resultPageFactory = $resultPageFactory; parent::__construct($context); } /** * Load the page defined in… Read More »Magento layout file not called?

Need to know how to have calculated results added to cart, using Add to Cart button

I have written a math html to figure out the square footage of boxes of material that a client needs to order. I have loaded it and here is an example page: [https://oflooring.com/hardwood/hf-design-canon-brentwood-hills-collection-bh537ocn-millstone-european-white-oak-7-5-inch-wide-hardwood-flooring.html][1] As you can see on this page,… Read More »Need to know how to have calculated results added to cart, using Add to Cart button