I have a output structure of $collection like this: I have array with sample data: $arr = [ 'id_1' => 10, 'id_2' => 30, 'id_3' => 20 ] I need add $arr to above collection and then i have it’s output: After that, i can filter with price: $collection->addAttributeToFilter('price', ['gt' […]
Magento
When uploading products into Magento 2, by default the system disperses images into folders based on the image name. file.jpg would end up in pub/media/catalog/product/f/i/file.jpg Can anyone explain why Magento is designed this way? What advantages does this offer?
i installed porto theme. but not working theme. im using magento 2.4.2 Exception #0 (BadMethodCallException): Missing required argument $adapters of MagentoSearchModelAdapterFactory.
I have a ViewModel that returns if a user is logged in or not and we need to add this functionality to vendor/magento/module-page-builder/view/frontend/templates/catalog/product/widget/content/carousel.phtml but we’re unsure on the correct way to do this. Cheers
i’ve created a brand new Magento 2.4.3-p1 installation and using the media gallery i’m getting some errors. The main error is when i’m trying to upload images i always get the error below One other issue is when i access one folder…sometimes not all the images are displayed. For example, […]
I’m using magento version 2.4.1 and composer version 1.10.25. i tried to update it to magento 2.4.3-p1 using composer but i always received an error. First i run this command: composer require magento/product-community-edition=2.4.3-p1 --no-update then i run php -d memory_limit=-1 /usr/local/bin/composer update but i always got this error: Problem 1 […]
I am wondering if there are any hosting providers out there that are not VPS that offer Magento 2.4.3+ and have Elasticsearch enabled. My current hosting provider offers Magento on it’s cPanel, but I cannot “ping” the Elasticsearch service and I keep getting an “Could not validate a connection to […]
I am currently trying to install Magento Cloud locally using Docker on my Windows 10 Pro. The issue I am having is when I run the command: curl -sL https://github.com/magento/magento-cloud-docker/releases/download/1.2.0/init-docker.sh | bash -s — –php 7.4 It will run up until its time to install composer packages in which I […]
I need to programmatically create a new attribute set, via setup patch, based on another one, I do not have to use ID because it’s not fixed, only have attribute set namethank you