Skip to content

How to make oauth request using guzzlehttp

I am trying to connect two magento2 instances through REST API. I have already created Endpoints. I am using GuzzleHttpClient to make request. How to implement Oauth Using guzzlehttp. Any other solutions also fine.

Magento 2: Nginx Rewrite Rule for Updated Media Base URL

I recently updated my media base URL to {{unsecure_base_url}}media/version1234567/. While attempting to create a rewrite rule in Nginx, I’ve encountered some difficulties. For a single URL, I used the following configuration which works as expected: location = /media/version1234567/wysiwyg/banners/WebsiteBanners2/HomePageBanners/Snom_Web_May_HP.png { return… Read More »Magento 2: Nginx Rewrite Rule for Updated Media Base URL

Magento 2.4.6: Creat admin product edit form button with modal and ajax submission

Magento 2.4.6-p6 I am trying to create a button on Product edit form which can translate one store product attribute data and store into another store attribute data. ‘Vendor/ModuleName/view/adminhtml/ui_component/product_form.xml‘ <?xml version=”1.0″ encoding=”UTF-8″?> <!– /** * Copyright © Magento, Inc. All… Read More »Magento 2.4.6: Creat admin product edit form button with modal and ajax submission

Magento 2 – Access to XMLHttpRequest – /adminhtml/Magento/spectrum/en_US/js-translation.json has been blocked

Currently we are using magento 2.4.6-p6, we are recently noticing below issue in the console, while opening the cms blocks / cms pages from admin. Access to XMLHttpRequest at ‘https://website.com/static/version1721183017/adminhtml/Magento/spectrum/en_US/js-translation.json’ from origin ‘null’ has been blocked by CORS policy: Response… Read More »Magento 2 – Access to XMLHttpRequest – /adminhtml/Magento/spectrum/en_US/js-translation.json has been blocked

Select configurable product option, Magento 2

I have a module that redirects the url of a simple product to the configurable product. For this I have this: events.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <event name=”controller_action_predispatch_catalog_product_view”> <observer name=”vendor_redirectsimpletoconfigurable_products_observer_predispatch” instance=”VendorRedirectSimpleToConfigurableObserverPredispatch”/> </event> </config> Predispatch.php <?php declare(strict_types=1); namespace VendorRedirectSimpleToConfigurableObserver; use… Read More »Select configurable product option, Magento 2