#StackBounty: #magento2 #magento2.3 #configurable-product #simple-product #multi-source-inventory Should Providers be Multi-Sources or …

Bounty: 50

I have a store where

  1. showing catalog from my vendors I don’t have actual inventory
  2. end-customer is not aware of my vendors (so it is not multi-vendor store)
  3. currently, I am using the configurable product for all product info and simple-product(configration) that is linked to the configurable and has (cost, qty, price, and vendorID)
  4. configrations are auto-selected based on cost so the customer does not select which product from which vendor because he is not aware of my vendors

Today I found this (multi-source-inventory-in-magento-2.3)

and now I am confused did I did the wrong implementation?
I read about it but I am still confused

  • how MSI handles different costs from different sources?

  • how to handle different selling prices?

Get this bounty!!!

#StackBounty: #magento2 #configurable-product How to display configurable product discount in percent on product list in Magento 2

Bounty: 50

In the product detail page, it’s showing a discount percentage. when I open the list page it can’t be showing the percentage for the configurable product.

Please give me the solution for that.

I have used the below code for that, but it’s not working for the configurable product.

getTypeId() == "simple") { $simplePrice = $_product->getPrice(); } else { $_children = $_product->getTypeInstance()->getUsedProducts($_product); foreach ($_children as $child){ $simplePrice = $child->getPrice(); break; } } $_finalPrice =$_product->getFinalPrice(); $_price = $simplePrice; if($_finalPrice

Get this bounty!!!