On the product page I have this code: "Magento_Catalog/js/product/view/provider": {//etc which contains a serialized array with product data, including price. The problem is that Google reads this array and extracts the price, previewing it in the serp. In the rest of the page the price appears only to logged in […]
Magento2
Magento 2: Remove the product from the parent category without removing the layered navigation and show the product only in the child category.
i built an after plugin and i need to access data inside $this. In the image you can see the hierarchy. The problem is that i need to access to the id of the CompanyModel value (22). but inside $this i can only call $this->companyRepository and i can’t access data […]
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; […]
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>