Skip to content

Magento 2 custom API working for Bearer Token and not working for OAuth1.0

I have created a custom API endpoint to retrieve data from a custom table in magento 2. Webapi.xml file content <route url=”/V1/bs-customer-price-information/:email/:website_id” method=”GET”> <service class=”BSKoRPricingApiKoRPricingRepositoryInterface” method=”getPriceListByCustomerAndWebsite”/> <resources> <resource ref=”Magento_Catalog::products”/> </resources> </route> This endpoint giving result with Bearer Token. If I… Read More »Magento 2 custom API working for Bearer Token and not working for OAuth1.0

Images attached to page builder vanish on save but the data is saved on my table (the problem is on arabic_image_one)

<?php namespace magentotestControllerAdminhtmlIndex; use MagentoBackendAppActionContext; use MagentoFrameworkApiDataObjectHelper; use MagentoFrameworkAppRequestInterface; use MagentoFrameworkExceptionLocalizedException; use MagentoFrameworkSerializeSerializerInterface; use magentotestApiBannersRepositoryInterface; use magentotestApiDataBannersInterfaceFactory; use magentotestModelResourceModelBannersCollectionFactory as BannersItemFactory; class Save extends MagentoBackendAppAction { /** * @var RequestInterface */ private $request; private $dataObjectHelper; /** * @var SerializerInterface */… Read More »Images attached to page builder vanish on save but the data is saved on my table (the problem is on arabic_image_one)

Magento2 | Change subject email of new order if condition is true

I created an observer that changes the email subject when I place a new order: This is the ChangeOrderEmailSubject.php file: <?php namespace SalesOrderCustObserver; use MagentoFrameworkEventObserverInterface; use MagentoFrameworkEventObserver; use MagentoSalesModelOrder; class ChangeOrderEmailSubject implements ObserverInterface { public function execute(Observer $observer) { /**… Read More »Magento2 | Change subject email of new order if condition is true

product.info.options.wrapper cacheable false

<block class=”MagentoCatalogBlockProductView” name=”product.info.options.wrapper” as=”product_options_wrapper” template=”Magento_Catalog::product/view/options/wrapper.phtml”> <block class=”MagentoCatalogBlockProductViewOptions” name=”product.info.options” as=”product_options” template=”Magento_Catalog::product/view/options.phtml”> <block class=”MagentoCatalogBlockProductViewOptionsTypeDefaultType” name=”product.info.options.default” as=”default” template=”Magento_Catalog::product/view/options/type/default.phtml”/> <block class=”MagentoCatalogBlockProductViewOptionsTypeText” name=”product.info.options.text” as=”text” template=”Magento_Catalog::product/view/options/type/text.phtml”/> <block class=”MagentoCatalogBlockProductViewOptionsTypeFile” name=”product.info.options.file” as=”file” template=”Magento_Catalog::product/view/options/type/file.phtml”/> <block class=”MagentoCatalogBlockProductViewOptionsTypeSelect” name=”product.info.options.select” as=”select” template=”Magento_Catalog::product/view/options/type/select.phtml”/> <block class=”MagentoCatalogBlockProductViewOptionsTypeDate” name=”product.info.options.date” as=”date” template=”Magento_Catalog::product/view/options/type/date.phtml”/> </block> <block class=”MagentoFrameworkViewElementHtmlCalendar” name=”html_calendar” as=”html_calendar”… Read More »product.info.options.wrapper cacheable false

Hostpoco Support

Dear All, Ask for help, maybe there are friends who know Hostpoco support. On Monday, May 20, 2024, my whm account as a Hostpoco reseller… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1919379&goto=newpost

how to get dependency graphs – problems in generated code

I am trying to look at dependency graphs by setting MAGE_PROFILER=2, as explained here. When I do, I get an error like Fatal error: Declaration of MagentoFrameworkInterceptionConfigCacheManagerLogger::load(string $key) must be compatible with MagentoFrameworkInterceptionConfigCacheManager::load(string $key): ?array in /var/www/html/generated/code/Magento/Framework/Interception/Config/CacheManager/Logger.php on line 69… Read More »how to get dependency graphs – problems in generated code