What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hey there.. did anyone ever stumbled upon this kind of exception? ```Spryker\Zed\PriceCartConnector\
Hey there..
did anyone ever stumbled upon this kind of exception?
Spryker\Zed\PriceCartConnector\Business\Exception\PriceMissingException - Cart item "..." can not be priced. in "/var/www/spryker/releases/current/vendor/spryker/price-cart-connector/src/Spryker/Zed/PriceCartConnector/Business/Manager/PriceManager.php::127"
I can’t reproduce the issue for the given product.. and it happens randomly not product specific and across multiple stores.
My best guess has been that the productFacade doesn’t return valid prices, but all data seems to be fine. The error happens on quote validation.
Comments
-
Hi Chris, I think it's a known issue. Let me find some details.
0 -
Steps to Reproduce here `\\Spryker\\Zed\\PriceProduct\\Business\\Model Reader::resolveProductPriceByPriceProductCriteria` , we use static property static::$resolvedPriceProductTransferCollection as a cache. In some cases, when this Reader is used several times during the session, $priceProductCriteriaIdentifier is duplicated by different objects hash names.
How to solve: Variant 1: here `\\Spryker\\Zed\\PriceProduct\\Business\\Model Reader::resolveProductPrices` substitude this line $priceProductCriteriaIdentifier = spl_object_hash($priceProductFilterTransfers[$index]); with $priceProductCriteriaIdentifier = spl_object_hash($priceProductFilterTransfers[$index]) . '#' . $priceProductCriteriaTransfer->getSku(); It will make sure, that $priceProductCriteriaIdentifier always uniq for each product Variant 2: here `\\Spryker\\Zed\\PriceProduct\\Business\\Model Reader::resolveProductPriceByPriceProductCriteria` do not use static variable as a cache.
The proper fix is on its way. I will try to push it through release process.
0 -
thanks for the fast support @valerii.trots! made my day.
0 -
We had some hard time to debug the problem together with @UQ4B55JLV on this one.
0 -
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random