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 […]
Magento
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 […]
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 […]
I am using “Olegnax Athlete2” theme for my magento2.4.5-p2 store. I want to change my email template fonts to “futura pt book”. can someone guide me to do the same.
I am creating mobile app using magento2 APIs. The problem is that I want to translate messages according to the store on frontend for example i want to translate the error messages and success messages of create account API by using i18 how can i do that without overriding APIs
I’m a newbie magento 2 developer. I’m currently learning how to store data to database using repository-interface-model-api approach. My code is not working. model ItemRepository class ItemRepository implements ItemRepositoryInterface { private $collectionFactory; protected $itemFactory; public function __construct( CollectionFactory $collectionFactory ) { $this->collectionFactory = $collectionFactory; } public function getList() { return […]