I installed Magento 2.4.6 and varnish 7.1 on ubuntu 22.04, and opened port 8080 on AWS EC2, but I didn’t find varnish HTTP response headers on the Frontpage. But my website works fine. Do you know what I can do? Below are some of my settings. I followed the following […]
Magento
I want people can choose any country for billing but few countries allowed for shipping. I followed this solution it works great for the sipping address but, I need it for the billing country I tried following but it’s not working: <?php namespace TrecksCheckoutcountryPlugin; use MagentoDirectoryHelperData as DirectoryHelper; class LayoutProcessor […]
So I created a custom module that extends a second module. I added a db schema to the new module from the table of the second module. When I try to use the interface, the setData(‘oldColumns’, value) are working but not setData(‘newColumns’, value).
I have this problem in magento 2 checkout. I want that after a check in the billing address fields, if there is an error it stop checkout processing and not go to the success page. How can I stop checkout processing in mixins? file: set-billing-address-mixins.js Here the code: alert($t("Insert SDI […]
When building an order in magento 2 v2.32 and adding a product to the order, we have found that if you use radio buttons, for custom option set that are NOT required, it will NOT allow you to add the product to an order. The NONE option that is automatically […]
My question is if I want to connect a php file that lives externally from Magento meaning not on the Magento server. Where would I find a tutorial I am not looking for how to write a query. I also know what file to find the cridentials for the magento […]
I am trying to write a unit testing, but i am not sure why the actual result is not getting generated correctly. Below are my unit testing code, <?php declare(strict_types=1); namespace VendorProductCustomizerTestUnitModelComponentsPricing; use PHPUnitFrameworkTestCase; use PHPUnitFrameworkMockObjectMockObject; use VendorProductCustomizerModelComponentsPricingAddons; use MagentoFrameworkAppConfigScopeConfigInterface; use MagentoStoreModelScopeInterface; class AddonTest extends TestCase { /** * @var […]
We are using ElasticSearch 7. STEP #1 : we type the first 3 characters of a SKU in the search engine, we get many product suggestions STEP #2 :we type 4 characters of a SKU in the search engine it says “Sorry, nothing has been found for … In our […]
I want to set & save the hidden product image( Hide from Product Page ) programmatically in Magento 2 in admin panel? I tried this way $product = $this->productLoader->create()->load($productId); $mediaAttribute = array (); $productImage = '/Applications/MAMP/htdocs/magento245p1v1/pub/media/catalog/product/W/S/WS03-XS-Red_1219111980.jpg'; $product->addImageToMediaGallery($productImage, $mediaAttribute, false, false); $product->save() This code will create a new image file with […]