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')); $method->setMethod($this->_code); $method->setMethodTitle($this->getConfigData('name')); $shippingCost = (float)$this->getConfigData('shipping_cost'); $method->setPrice($shippingCost); $method->setCost($shippingCost); $result->append($method); return $result; […]
Blog
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 @doc(description: "The page of results to return. The default value […]
In my magento 2 store we are facing an issue with accessiBe where accessiBe contents are not loading, when i check the console seeing the below error. when we reach accessiBe team they have given meta tag like below and told to add in the header tag. <meta http-equiv="Content-Security-Policy" content="default-src […]
I was able to add the applications, CISCO WebEx and Zoom, to the Microphone and Camera permission to access using TCCPlus from another thread. The toggle button works, but the app does not recognize this. I noticed that though the toggle works, it is gray when I slide it [enter […]
Hello Stack Overflow community, I’m currently facing an issue while trying to test my Python-based ARP spoofing program in a Kali Linux virtual machine running on VirtualBox on my PC. The VM is connected to my network using a network bridge, allowing me to reach other devices on my network. […]
I’m trying to get all categories and subcategories i want to select them dynamically where if i add in the subcategory another subcategory and whenever i add … , it will return them all but i dont want to return them all in the same function because when i want […]
I have a set of bright wallpapers and set of darker wallpapers. I wanted to see if there’s a way of syncing them with the system light/dark theme depending on time of day. If possible, I’d like to know more generally how to toggle any setting based on time of […]
I have a Samsung Android tablet with an external loudspeaker plugged into the sound jack socket. However, the tablet keeps speaking in Youtube throuh its own internal loudspeaker (quiet-murmurer I would call it). I checked that the external loudspeaker works OK with a phone and the jack is firmly inserted […]
I have a huge data and the following image is a part of my data, First column is always a natural number (not necessary consecutive) and for the rows which have the same first column data I want to find the average of each of its next column data. For […]