Upgrade to CE 2.1.0
Sign in
Go to wishlist
Products showed with price
Products showed with $0.00 value

@Serzhik This happens when you add a configurable/virtual product without selecting the options. When you add a configurable product to the cart, you never really buy the configurable product but the products associated to its options.
Try to selecting a color/size before you add them to your wishlist. You can also try adding a simple product to see if the price shows in the wishlist.
@pobrassard That's true, but we need to tell about this our clients somehow, b/c this product doesn't cost 0.00$ in any configuration.
So there are few scenarios how it should be fixed:
PS. Preconditions are much simpler - it's possible to reproduce on any stable M2 version.
Steps to reproduce - Add configurable product to wishlist from category page.
Hi @Serzhik ,
Thanks for reporting this issue. We've created internal ticket MAGETWO-59512.
Regards,
Anton.
UPD: It's don't work on clean Magento EE 2,1.1 install with sample data.
Look at vendor\magento\module-wishlist\Pricing\ConfiguredPrice\ConfigurableProduct.php
public function getValue()
{
$result = 0.;
/** @var \Magento\Wishlist\Model\Item\Option $customOption */
$customOption = $this->getProduct()->getCustomOption('simple_product');
if ($customOption) {
/** @var \Magento\Framework\Pricing\PriceInfoInterface $priceInfo */
$priceInfo = $customOption->getProduct()->getPriceInfo();
$result = $priceInfo->getPrice(self::PRICE_CODE)->getValue();
}
return max(0, $result);
}
The fix is delivered to develop branch. Closing the issue.
It's going to be released as standalone update to Magento_Wishlist module or we have to wait for 2.2 to get this fix?
@Igloczek use the above commits and do a diff comparison on your code.
I know that I can handle everything on my own, but it's painful when you have ~10-20 modules to just fix something, flying around ~5 projects, with ~20 devs working on them...
I'm pretty sure that there was a plan to release patches to modules independently from main project releases and AFAIK you are talking about doing that after 2.1.2 (same as about smaller, but frequent updates of whole product)
CC @benmarks @piotrekkaminski @pboisvert
@Igloczek I have no doubt they will release it in some up coming patch or upgrade. I don't work for Magento so I don't really know. I assumed you needed a quick fix and that's the only method I know. Sorry for misunderstanding.
I'm using Magento 2.1.6. This is still a problem. Any fix any time soon?
@zzvara, not likely
As I understand it, no backport is planned "by default" and closed tasks are not tracked by the core team neither (see here for an detailed official Magento Inc.'s response about that).
In general, here's what you could do if you're interested to get it backported:
a) create a pull request pointing at 2.1-develop as described here
b) create a new GitHub Issue referencing the original one and asking to backport the fix into 2.1.
Additionally, mentioning a certain relevant Magento, Inc. employee somewhere in the discussion (just Igloczek did) _might_ help bringing attention to it.
Main issue fix but still showing 0.00 on sidebar
Internal ticket to track issue progress: MAGETWO-69023
This problem still occurs in Magento 2.1.7. Both in sidebar as on the 'My account' page.
I managed to pinpoint the problem in the following function:
\Magento\Wishlist\Pricing\ConfiguredPrice\ConfigurableProduct::getValue
Which checks if a configurable product has an option selected. If that is not the case it just returns 0.0.
I wrote a plugin for this function returning the Minimum price instead.
/**
* @param BaseConfigurableProduct $subject
* @param callable $proceed
*
* @return float
*/
public function aroundGetValue(BaseConfigurableProduct $subject, callable $proceed)
{
/** @var \Magento\Wishlist\Model\Item\Option $customOption */
$customOption = $subject->getProduct()->getCustomOption('simple_product');
if ($customOption) {
/** @var \Magento\Framework\Pricing\PriceInfoInterface $priceInfo */
$priceInfo = $customOption->getProduct()->getPriceInfo();
return $priceInfo->getPrice($subject::PRICE_CODE)->getValue();
}
return (float)$subject->getProduct()->getMinPrice();
}
This solves both issues ('My account' page and the sidebar).
Most helpful comment
I know that I can handle everything on my own, but it's painful when you have ~10-20 modules to just fix something, flying around ~5 projects, with ~20 devs working on them...
I'm pretty sure that there was a plan to release patches to modules independently from main project releases and AFAIK you are talking about doing that after 2.1.2 (same as about smaller, but frequent updates of whole product)
CC @benmarks @piotrekkaminski @pboisvert