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; […]
Magento
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’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 would like to know why whenever a new cart price rule is created it is incorporated into the magento_salesrule_filter table with the column filter_text = ‘true’ and what is this attribute for or what does it impact? I noticed that even when a coupon or cart rule is disabled, […]
<route url="/V1/wishlist/customer/items" method="GET"> <service class="XteamWishlistApiWishlistManagementInterface" method="getWishlistItemsByCustomerId"/> <resources> <resource ref="anonymous" /> </resources> <data> <parameter name="customerId" force="true">%customer_id%</parameter> </data> </route> <route url="/V1/wishlist/customer/item/:customerId/:productId" method="DELETE"> <service class="XteamWishlistApiWishlistManagementInterface" method="removeProductFromWishlist"/> <resources> <resource ref="anonymous" /> </resources> </route>
Recently I upgrated magento to 2.4.2 and now I’m facing a problem with the Price Range filter by Mageplaza Layered Navigation. I have managed to solve a previous problem of the price slider not appearing at all, but now there is another problem related to the product prices. The filter […]
I want to move system Configuration values and values stored in database to production server using Git. Can anyone let me know how can I push Admin Changes to Production using Git. Is it possible through Git?
We are using uni commerce for ship products. our magento all price calculation are working correctly without any issue. but in magento orders rest api response items base price is coming including tax & they are using base price including tax in their system. I am getting the orders API […]