Skip to content

How to convert csp meta tag into csp_whitelist.xml format in magento 2

below is the meat tag i want covert as per magento 2 <meta http-equiv=”Content-Security-Policy” content=”default-src ‘self’ ‘unsafe- inline’;script-src ‘self’ ‘unsafe-inline’ *.acsbapp.com *.acsbap.com acsbap.com acsbapp.com;connect-src ‘self’ ‘unsafe-inline’ *.acsbapp.com *.acsbap.com acsbap.com acsbapp.com *.wikipedia.org;media-src ‘self’ ‘unsafe-inline’ data:;img-src ‘self’ ‘unsafe -inline’ data: *.acsbapp.com *.acsbap.com… Read More »How to convert csp meta tag into csp_whitelist.xml format in magento 2

Magento 2.4.5 recaptcha issue when move discount form to before methods

In checkout i moved “Apply Discount Code” form from afterMethods to beforeMethods. After upgrade to 2.4.5 recaptcha was added to this form. But doesnt load correctly <div data-bind=”{ attr: { ‘id’: getReCaptchaId() + ‘-wrapper’ }, ‘afterRender’: renderReCaptcha() }” id=”recaptcha-checkout-coupon-apply-wrapper”> <div… Read More »Magento 2.4.5 recaptcha issue when move discount form to before methods

what is the use of shipping setprice and shipping setcost

What is the use of setprice and setcost in shipping carrier? public function collectRates(RateRequest $request) { if (!$this->getConfigFlag(‘active’)) { return false; } /** @var MagentoShippingModelRateResult $result */ $result = $this->rateResultFactory->create(); /** @var MagentoQuoteModelQuoteAddressRateResultMethod $method */ $method = $this->rateMethodFactory->create(); $method->setCarrier($this->_code); $method->setCarrierTitle($this->getConfigData(‘title’));… Read More »what is the use of shipping setprice and shipping setcost

Magento 2 : How to create a graphql api for fetch the best seller product collection with arguments search and filter like in the product graphql?

I am trying to fetch Best seller product collections using graphql like the one below. bestSellers ( pageSize: Int = 20 @doc(description: “The maximum number of results to return at once. The default value is 20.”), currentPage: Int = 1… Read More »Magento 2 : How to create a graphql api for fetch the best seller product collection with arguments search and filter like in the product graphql?