Skip to content

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?