Display Configurable product Highest price by defaultmain.CRITICAL: Plugin class doesn't existSet custom price of product when adding to cart code not workingMagento 2 Log Bundle Product Data in List Page?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 override associated product price (configurable and it's child)Magento 2: Add a product to the cart programmaticallyMagento2 - include possible tier price in getProductPrice() product listI have created one field using product form field for my price i want save my field value at product creation time from backend magento2Magento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2 plugin change price of products that have a custom attribute with
Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?
Multiplicative persistence
Are Captain Marvel's powers affected by Thanos' actions in Infinity War
Add big quotation marks inside my colorbox
How can mimic phobia be cured?
Has any country ever had 2 former presidents in jail simultaneously?
How do apertures which seem too large to physically fit work?
Do the primes contain an infinite almost arithmetic progression?
Mixing PEX brands
Quasinilpotent , non-compact operators
Why is the "ls" command showing permissions of files in a FAT32 partition?
The IT department bottlenecks progress, how should I handle this?
What if a revenant (monster) gains fire resistance?
What is the highest possible scrabble score for placing a single tile
How to explain what's wrong with this application of the chain rule?
Creepy dinosaur pc game identification
Probability that THHT occurs in a sequence of 10 coin tosses
What are the balance implications behind making invisible things auto-hide?
When were female captains banned from Starfleet?
What are some good ways to treat frozen vegetables such that they behave like fresh vegetables when stir frying them?
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
Is there a RAID 0 Equivalent for RAM?
How do I delete all blank lines in a buffer?
Unexpected behavior of the procedure `Area` on the object 'Polygon'
Display Configurable product Highest price by default
main.CRITICAL: Plugin class doesn't existSet custom price of product when adding to cart code not workingMagento 2 Log Bundle Product Data in List Page?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 override associated product price (configurable and it's child)Magento 2: Add a product to the cart programmaticallyMagento2 - include possible tier price in getProductPrice() product listI have created one field using product form field for my price i want save my field value at product creation time from backend magento2Magento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2 plugin change price of products that have a custom attribute with
I need to show configurable product highest price in frontend.
currently by default magento is loading lowest price.
please help me to solve this issue.
Tried by overriding
"MagentoConfigurableProductPricingPriceConfigurablePriceResolver"
My code :
class MaxConfigurablePrice
{
protected $productRepository;
protected $productFactory;
protected $dataObjectHelper;
protected $storeManager;
protected $logFilePath = '/var/log/sub_debug.log';
public function __construct(
MagentoCatalogApiProductRepositoryInterface $productRepository,
MagentoCatalogApiDataProductInterfaceFactory $productFactory,
MagentoFrameworkApiDataObjectHelper $dataObjectHelper,
MagentoStoreModelStoreManagerInterface $storeManager
)
$this->productFactory = $productFactory;
$this->productRepository = $productRepository;
$this->dataObjectHelper = $dataObjectHelper;
$this->storeManager = $storeManager;
/**
* @param MagentoFrameworkPricingSaleableInterface|MagentoCatalogModelProduct $subject
* @param callable $proceed
* @param MagentoFrameworkPricingSaleableInterface $product
* @return float
* @throws MagentoFrameworkExceptionLocalizedException
*/
public function aroundResolvePrice($subject, callable $proceed, MagentoFrameworkPricingSaleableInterface $product)
// let the before hooks run.
$returnValue = (float)$proceed($product);
// and then we'll override with our logic
$price = null;
//get parent product id
$parentId = $product['entity_id'];
$childObj = $this->getChildProductObj($parentId);
foreach($childObj as $childProduct)
$productPrice = $childProduct->getPrice();
$specialPrice = $childProduct->getData('special_price');
$price = $price ? max($price, $productPrice) : $productPrice;
// if the product with the highest price is also
// the product that has a special price make sure
// to display the special price (assuming it's valid)
if ($price == $productPrice && isset($specialPrice))
$now = date('Y-m-d H:i:s', time());
$specialFromDate = $childProduct->getData('special_from_date');
$specialToDate = $childProduct->getData('special_to_date');
$this->log('FROM ' . __CLASS__ . '::' . __FUNCTION__ . ' AT LINE ' . __LINE__);
$this->log('$productPrice: ' . var_export($productPrice, true));
$this->log('$specialPrice: ' . var_export($specialPrice, true));
$this->log('$specialFromDate: ' . var_export($specialFromDate, true));
$this->log('$specialToDate: ' . var_export($specialToDate, true));
$this->log('$now: ' . var_export($now, true));
// $this->log('child product debug: ' . print_r($childProduct->debug(), true));
switch (true)
case (isset($specialFromDate) && isset($specialToDate)):
if (($now > $specialFromDate) && ($now < $specialToDate))
$price = $specialPrice;
break;
case (isset($specialFromDate) && !isset($specialToDate)):
if ($now > $specialFromDate)
$price = $specialPrice;
break;
case (!isset($specialFromDate) && isset($specialToDate)):
if ($now < $specialToDate)
$price = $specialPrice;
break;
case (!isset($specialFromDate) && !isset($specialToDate)):
$price = $specialPrice;
break;
default:
// do nothing...leave $price as it is
break;
$this->log('FROM ' . __CLASS__ . '::' . __FUNCTION__ . ' AT LINE ' . __LINE__);
$this->log('returned $price: ' . var_export($price, true));
return $price;
public function getProductInfo($id)
//get product obj using api repository...
if(is_numeric($id))
return $this->productRepository->getById($id);
else
return;
public function getChildProductObj($id)
$product = $this->getProductInfo($id);
// if product with no proper id then return null and exit;
if(!isset($product))
return;
if ($product->getTypeId() != MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE)
return [];
$storeId = $this->getCurrentStoreId();
$productTypeInstance = $product->getTypeInstance();
$productTypeInstance->setStoreFilter($storeId, $product);
$childrenList = [];
foreach ($productTypeInstance->getUsedProducts($product) as $child)
$attributes = [];
$isSaleable = $child->isSaleable();
//get only in stock product info
if($isSaleable)
foreach ($child->getAttributes() as $attribute)
$attrCode = $attribute->getAttributeCode();
$value = $child->getDataUsingMethod($attrCode) ?: $child->getData($attrCode);
if (null !== $value && $attrCode != 'entity_id')
$attributes[$attrCode] = $value;
$attributes['store_id'] = $child->getStoreId();
$attributes['id'] = $child->getId();
/**
* @var MagentoCatalogApiDataProductInterface $productDataObject
*/
$productDataObject = $this->productFactory->create();
$this->dataObjectHelper->populateWithArray(
$productDataObject,
$attributes,
'MagentoCatalogApiDataProductInterface'
);
$childrenList[] = $productDataObject;
$childConfigData = array();
foreach($childrenList as $child)
$childConfigData[] = $child;
return $childConfigData;
public function getCurrentStoreId()
return $this->storeManager->getStore()->getStoreId();
public function log($info)
$writer = new ZendLogWriterStream(BP . $this->logFilePath);
$logger = new ZendLogLogger();
$logger->addWriter($writer);
$logger->info($info);
magento2 configurable-product price
add a comment |
I need to show configurable product highest price in frontend.
currently by default magento is loading lowest price.
please help me to solve this issue.
Tried by overriding
"MagentoConfigurableProductPricingPriceConfigurablePriceResolver"
My code :
class MaxConfigurablePrice
{
protected $productRepository;
protected $productFactory;
protected $dataObjectHelper;
protected $storeManager;
protected $logFilePath = '/var/log/sub_debug.log';
public function __construct(
MagentoCatalogApiProductRepositoryInterface $productRepository,
MagentoCatalogApiDataProductInterfaceFactory $productFactory,
MagentoFrameworkApiDataObjectHelper $dataObjectHelper,
MagentoStoreModelStoreManagerInterface $storeManager
)
$this->productFactory = $productFactory;
$this->productRepository = $productRepository;
$this->dataObjectHelper = $dataObjectHelper;
$this->storeManager = $storeManager;
/**
* @param MagentoFrameworkPricingSaleableInterface|MagentoCatalogModelProduct $subject
* @param callable $proceed
* @param MagentoFrameworkPricingSaleableInterface $product
* @return float
* @throws MagentoFrameworkExceptionLocalizedException
*/
public function aroundResolvePrice($subject, callable $proceed, MagentoFrameworkPricingSaleableInterface $product)
// let the before hooks run.
$returnValue = (float)$proceed($product);
// and then we'll override with our logic
$price = null;
//get parent product id
$parentId = $product['entity_id'];
$childObj = $this->getChildProductObj($parentId);
foreach($childObj as $childProduct)
$productPrice = $childProduct->getPrice();
$specialPrice = $childProduct->getData('special_price');
$price = $price ? max($price, $productPrice) : $productPrice;
// if the product with the highest price is also
// the product that has a special price make sure
// to display the special price (assuming it's valid)
if ($price == $productPrice && isset($specialPrice))
$now = date('Y-m-d H:i:s', time());
$specialFromDate = $childProduct->getData('special_from_date');
$specialToDate = $childProduct->getData('special_to_date');
$this->log('FROM ' . __CLASS__ . '::' . __FUNCTION__ . ' AT LINE ' . __LINE__);
$this->log('$productPrice: ' . var_export($productPrice, true));
$this->log('$specialPrice: ' . var_export($specialPrice, true));
$this->log('$specialFromDate: ' . var_export($specialFromDate, true));
$this->log('$specialToDate: ' . var_export($specialToDate, true));
$this->log('$now: ' . var_export($now, true));
// $this->log('child product debug: ' . print_r($childProduct->debug(), true));
switch (true)
case (isset($specialFromDate) && isset($specialToDate)):
if (($now > $specialFromDate) && ($now < $specialToDate))
$price = $specialPrice;
break;
case (isset($specialFromDate) && !isset($specialToDate)):
if ($now > $specialFromDate)
$price = $specialPrice;
break;
case (!isset($specialFromDate) && isset($specialToDate)):
if ($now < $specialToDate)
$price = $specialPrice;
break;
case (!isset($specialFromDate) && !isset($specialToDate)):
$price = $specialPrice;
break;
default:
// do nothing...leave $price as it is
break;
$this->log('FROM ' . __CLASS__ . '::' . __FUNCTION__ . ' AT LINE ' . __LINE__);
$this->log('returned $price: ' . var_export($price, true));
return $price;
public function getProductInfo($id)
//get product obj using api repository...
if(is_numeric($id))
return $this->productRepository->getById($id);
else
return;
public function getChildProductObj($id)
$product = $this->getProductInfo($id);
// if product with no proper id then return null and exit;
if(!isset($product))
return;
if ($product->getTypeId() != MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE)
return [];
$storeId = $this->getCurrentStoreId();
$productTypeInstance = $product->getTypeInstance();
$productTypeInstance->setStoreFilter($storeId, $product);
$childrenList = [];
foreach ($productTypeInstance->getUsedProducts($product) as $child)
$attributes = [];
$isSaleable = $child->isSaleable();
//get only in stock product info
if($isSaleable)
foreach ($child->getAttributes() as $attribute)
$attrCode = $attribute->getAttributeCode();
$value = $child->getDataUsingMethod($attrCode) ?: $child->getData($attrCode);
if (null !== $value && $attrCode != 'entity_id')
$attributes[$attrCode] = $value;
$attributes['store_id'] = $child->getStoreId();
$attributes['id'] = $child->getId();
/**
* @var MagentoCatalogApiDataProductInterface $productDataObject
*/
$productDataObject = $this->productFactory->create();
$this->dataObjectHelper->populateWithArray(
$productDataObject,
$attributes,
'MagentoCatalogApiDataProductInterface'
);
$childrenList[] = $productDataObject;
$childConfigData = array();
foreach($childrenList as $child)
$childConfigData[] = $child;
return $childConfigData;
public function getCurrentStoreId()
return $this->storeManager->getStore()->getStoreId();
public function log($info)
$writer = new ZendLogWriterStream(BP . $this->logFilePath);
$logger = new ZendLogLogger();
$logger->addWriter($writer);
$logger->info($info);
magento2 configurable-product price
1
what have you tried besides using google?
– Philipp Sander
yesterday
tried to override "MagentoConfigurableProductPricingPriceConfigurablePriceResolver" and make the chages to get the highest price.. after changes its working.. but when i select option all the price showing as 0 except the highest price associated product.
– SUBIN CHANDRAN
yesterday
maybe show us the code?
– Philipp Sander
yesterday
add a comment |
I need to show configurable product highest price in frontend.
currently by default magento is loading lowest price.
please help me to solve this issue.
Tried by overriding
"MagentoConfigurableProductPricingPriceConfigurablePriceResolver"
My code :
class MaxConfigurablePrice
{
protected $productRepository;
protected $productFactory;
protected $dataObjectHelper;
protected $storeManager;
protected $logFilePath = '/var/log/sub_debug.log';
public function __construct(
MagentoCatalogApiProductRepositoryInterface $productRepository,
MagentoCatalogApiDataProductInterfaceFactory $productFactory,
MagentoFrameworkApiDataObjectHelper $dataObjectHelper,
MagentoStoreModelStoreManagerInterface $storeManager
)
$this->productFactory = $productFactory;
$this->productRepository = $productRepository;
$this->dataObjectHelper = $dataObjectHelper;
$this->storeManager = $storeManager;
/**
* @param MagentoFrameworkPricingSaleableInterface|MagentoCatalogModelProduct $subject
* @param callable $proceed
* @param MagentoFrameworkPricingSaleableInterface $product
* @return float
* @throws MagentoFrameworkExceptionLocalizedException
*/
public function aroundResolvePrice($subject, callable $proceed, MagentoFrameworkPricingSaleableInterface $product)
// let the before hooks run.
$returnValue = (float)$proceed($product);
// and then we'll override with our logic
$price = null;
//get parent product id
$parentId = $product['entity_id'];
$childObj = $this->getChildProductObj($parentId);
foreach($childObj as $childProduct)
$productPrice = $childProduct->getPrice();
$specialPrice = $childProduct->getData('special_price');
$price = $price ? max($price, $productPrice) : $productPrice;
// if the product with the highest price is also
// the product that has a special price make sure
// to display the special price (assuming it's valid)
if ($price == $productPrice && isset($specialPrice))
$now = date('Y-m-d H:i:s', time());
$specialFromDate = $childProduct->getData('special_from_date');
$specialToDate = $childProduct->getData('special_to_date');
$this->log('FROM ' . __CLASS__ . '::' . __FUNCTION__ . ' AT LINE ' . __LINE__);
$this->log('$productPrice: ' . var_export($productPrice, true));
$this->log('$specialPrice: ' . var_export($specialPrice, true));
$this->log('$specialFromDate: ' . var_export($specialFromDate, true));
$this->log('$specialToDate: ' . var_export($specialToDate, true));
$this->log('$now: ' . var_export($now, true));
// $this->log('child product debug: ' . print_r($childProduct->debug(), true));
switch (true)
case (isset($specialFromDate) && isset($specialToDate)):
if (($now > $specialFromDate) && ($now < $specialToDate))
$price = $specialPrice;
break;
case (isset($specialFromDate) && !isset($specialToDate)):
if ($now > $specialFromDate)
$price = $specialPrice;
break;
case (!isset($specialFromDate) && isset($specialToDate)):
if ($now < $specialToDate)
$price = $specialPrice;
break;
case (!isset($specialFromDate) && !isset($specialToDate)):
$price = $specialPrice;
break;
default:
// do nothing...leave $price as it is
break;
$this->log('FROM ' . __CLASS__ . '::' . __FUNCTION__ . ' AT LINE ' . __LINE__);
$this->log('returned $price: ' . var_export($price, true));
return $price;
public function getProductInfo($id)
//get product obj using api repository...
if(is_numeric($id))
return $this->productRepository->getById($id);
else
return;
public function getChildProductObj($id)
$product = $this->getProductInfo($id);
// if product with no proper id then return null and exit;
if(!isset($product))
return;
if ($product->getTypeId() != MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE)
return [];
$storeId = $this->getCurrentStoreId();
$productTypeInstance = $product->getTypeInstance();
$productTypeInstance->setStoreFilter($storeId, $product);
$childrenList = [];
foreach ($productTypeInstance->getUsedProducts($product) as $child)
$attributes = [];
$isSaleable = $child->isSaleable();
//get only in stock product info
if($isSaleable)
foreach ($child->getAttributes() as $attribute)
$attrCode = $attribute->getAttributeCode();
$value = $child->getDataUsingMethod($attrCode) ?: $child->getData($attrCode);
if (null !== $value && $attrCode != 'entity_id')
$attributes[$attrCode] = $value;
$attributes['store_id'] = $child->getStoreId();
$attributes['id'] = $child->getId();
/**
* @var MagentoCatalogApiDataProductInterface $productDataObject
*/
$productDataObject = $this->productFactory->create();
$this->dataObjectHelper->populateWithArray(
$productDataObject,
$attributes,
'MagentoCatalogApiDataProductInterface'
);
$childrenList[] = $productDataObject;
$childConfigData = array();
foreach($childrenList as $child)
$childConfigData[] = $child;
return $childConfigData;
public function getCurrentStoreId()
return $this->storeManager->getStore()->getStoreId();
public function log($info)
$writer = new ZendLogWriterStream(BP . $this->logFilePath);
$logger = new ZendLogLogger();
$logger->addWriter($writer);
$logger->info($info);
magento2 configurable-product price
I need to show configurable product highest price in frontend.
currently by default magento is loading lowest price.
please help me to solve this issue.
Tried by overriding
"MagentoConfigurableProductPricingPriceConfigurablePriceResolver"
My code :
class MaxConfigurablePrice
{
protected $productRepository;
protected $productFactory;
protected $dataObjectHelper;
protected $storeManager;
protected $logFilePath = '/var/log/sub_debug.log';
public function __construct(
MagentoCatalogApiProductRepositoryInterface $productRepository,
MagentoCatalogApiDataProductInterfaceFactory $productFactory,
MagentoFrameworkApiDataObjectHelper $dataObjectHelper,
MagentoStoreModelStoreManagerInterface $storeManager
)
$this->productFactory = $productFactory;
$this->productRepository = $productRepository;
$this->dataObjectHelper = $dataObjectHelper;
$this->storeManager = $storeManager;
/**
* @param MagentoFrameworkPricingSaleableInterface|MagentoCatalogModelProduct $subject
* @param callable $proceed
* @param MagentoFrameworkPricingSaleableInterface $product
* @return float
* @throws MagentoFrameworkExceptionLocalizedException
*/
public function aroundResolvePrice($subject, callable $proceed, MagentoFrameworkPricingSaleableInterface $product)
// let the before hooks run.
$returnValue = (float)$proceed($product);
// and then we'll override with our logic
$price = null;
//get parent product id
$parentId = $product['entity_id'];
$childObj = $this->getChildProductObj($parentId);
foreach($childObj as $childProduct)
$productPrice = $childProduct->getPrice();
$specialPrice = $childProduct->getData('special_price');
$price = $price ? max($price, $productPrice) : $productPrice;
// if the product with the highest price is also
// the product that has a special price make sure
// to display the special price (assuming it's valid)
if ($price == $productPrice && isset($specialPrice))
$now = date('Y-m-d H:i:s', time());
$specialFromDate = $childProduct->getData('special_from_date');
$specialToDate = $childProduct->getData('special_to_date');
$this->log('FROM ' . __CLASS__ . '::' . __FUNCTION__ . ' AT LINE ' . __LINE__);
$this->log('$productPrice: ' . var_export($productPrice, true));
$this->log('$specialPrice: ' . var_export($specialPrice, true));
$this->log('$specialFromDate: ' . var_export($specialFromDate, true));
$this->log('$specialToDate: ' . var_export($specialToDate, true));
$this->log('$now: ' . var_export($now, true));
// $this->log('child product debug: ' . print_r($childProduct->debug(), true));
switch (true)
case (isset($specialFromDate) && isset($specialToDate)):
if (($now > $specialFromDate) && ($now < $specialToDate))
$price = $specialPrice;
break;
case (isset($specialFromDate) && !isset($specialToDate)):
if ($now > $specialFromDate)
$price = $specialPrice;
break;
case (!isset($specialFromDate) && isset($specialToDate)):
if ($now < $specialToDate)
$price = $specialPrice;
break;
case (!isset($specialFromDate) && !isset($specialToDate)):
$price = $specialPrice;
break;
default:
// do nothing...leave $price as it is
break;
$this->log('FROM ' . __CLASS__ . '::' . __FUNCTION__ . ' AT LINE ' . __LINE__);
$this->log('returned $price: ' . var_export($price, true));
return $price;
public function getProductInfo($id)
//get product obj using api repository...
if(is_numeric($id))
return $this->productRepository->getById($id);
else
return;
public function getChildProductObj($id)
$product = $this->getProductInfo($id);
// if product with no proper id then return null and exit;
if(!isset($product))
return;
if ($product->getTypeId() != MagentoConfigurableProductModelProductTypeConfigurable::TYPE_CODE)
return [];
$storeId = $this->getCurrentStoreId();
$productTypeInstance = $product->getTypeInstance();
$productTypeInstance->setStoreFilter($storeId, $product);
$childrenList = [];
foreach ($productTypeInstance->getUsedProducts($product) as $child)
$attributes = [];
$isSaleable = $child->isSaleable();
//get only in stock product info
if($isSaleable)
foreach ($child->getAttributes() as $attribute)
$attrCode = $attribute->getAttributeCode();
$value = $child->getDataUsingMethod($attrCode) ?: $child->getData($attrCode);
if (null !== $value && $attrCode != 'entity_id')
$attributes[$attrCode] = $value;
$attributes['store_id'] = $child->getStoreId();
$attributes['id'] = $child->getId();
/**
* @var MagentoCatalogApiDataProductInterface $productDataObject
*/
$productDataObject = $this->productFactory->create();
$this->dataObjectHelper->populateWithArray(
$productDataObject,
$attributes,
'MagentoCatalogApiDataProductInterface'
);
$childrenList[] = $productDataObject;
$childConfigData = array();
foreach($childrenList as $child)
$childConfigData[] = $child;
return $childConfigData;
public function getCurrentStoreId()
return $this->storeManager->getStore()->getStoreId();
public function log($info)
$writer = new ZendLogWriterStream(BP . $this->logFilePath);
$logger = new ZendLogLogger();
$logger->addWriter($writer);
$logger->info($info);
magento2 configurable-product price
magento2 configurable-product price
edited yesterday
magefms
1,9271425
1,9271425
asked yesterday
SUBIN CHANDRANSUBIN CHANDRAN
145116
145116
1
what have you tried besides using google?
– Philipp Sander
yesterday
tried to override "MagentoConfigurableProductPricingPriceConfigurablePriceResolver" and make the chages to get the highest price.. after changes its working.. but when i select option all the price showing as 0 except the highest price associated product.
– SUBIN CHANDRAN
yesterday
maybe show us the code?
– Philipp Sander
yesterday
add a comment |
1
what have you tried besides using google?
– Philipp Sander
yesterday
tried to override "MagentoConfigurableProductPricingPriceConfigurablePriceResolver" and make the chages to get the highest price.. after changes its working.. but when i select option all the price showing as 0 except the highest price associated product.
– SUBIN CHANDRAN
yesterday
maybe show us the code?
– Philipp Sander
yesterday
1
1
what have you tried besides using google?
– Philipp Sander
yesterday
what have you tried besides using google?
– Philipp Sander
yesterday
tried to override "MagentoConfigurableProductPricingPriceConfigurablePriceResolver" and make the chages to get the highest price.. after changes its working.. but when i select option all the price showing as 0 except the highest price associated product.
– SUBIN CHANDRAN
yesterday
tried to override "MagentoConfigurableProductPricingPriceConfigurablePriceResolver" and make the chages to get the highest price.. after changes its working.. but when i select option all the price showing as 0 except the highest price associated product.
– SUBIN CHANDRAN
yesterday
maybe show us the code?
– Philipp Sander
yesterday
maybe show us the code?
– Philipp Sander
yesterday
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266828%2fdisplay-configurable-product-highest-price-by-default%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266828%2fdisplay-configurable-product-highest-price-by-default%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
what have you tried besides using google?
– Philipp Sander
yesterday
tried to override "MagentoConfigurableProductPricingPriceConfigurablePriceResolver" and make the chages to get the highest price.. after changes its working.. but when i select option all the price showing as 0 except the highest price associated product.
– SUBIN CHANDRAN
yesterday
maybe show us the code?
– Philipp Sander
yesterday