Hot answers tagged

3

I think this code will help you!! $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cart = $objectManager->get('\Magento\Checkout\Model\Cart'); // get quote items collection $itemsCollection = $cart->getQuote()->getItemsCollection(); // get array of all items what can be display directly ...


2

Explanation: Your frontend is using http, but in your config you've set it to force https in frontend (web/secure/use_in_frontend value 1, meaning "yes/true"). Therefore by visiting https, magento2 redirects to http, but the http reads the m2 config and goes back to https. Hence the loop. Solution 1: Try setting web/secure/use_in_frontend to 0 php bin/...


2

You can't with cache enabled, all files aren't re-interpreted. You should get it with customer data. You can try to add the following code in your phtml file. <script type="text/javascript"> require([ 'Magento_Customer/js/customer-data' ], function (customerData) { 'use strict'; customerData.get('cart').subscribe(...


1

Magento provides a more flexible way for you to set file ownership and permissions. Instead of setting permissions explicitly, you only need to make sure files and directories are writable for installation. We provide different suggestions for doing this, depending on whether you access your Magento server with one user account (typical of shared ...


1

"/opt/bitnami/apps/magento/htdocs/var/cache/" is not writable in /opt/bitnami/apps/magento/htdocs/vendor/magento/zendframework1/library/Zend/Cache.php:209 Stack trace: #0 Looks like you got problem with permissions. Refer this and remeber to run that as web server user :) like: www-data but this would be based on your server configuration.


1

Magento 2.3.3 is not compatible with PHP 7.4. Please downgrade your PHP version to 7.3.x to resolve this issue


1

Once you delete the generation folder your generated construction will be removed so you need to regenerate that construction you can generate by following command php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f


Only top voted, non community-wiki answers of a minimum length are eligible