Solved Unable to Unserialize Value” in Magento 2.3.0

vendor/magento/framework/Serialize/Serializer/Json.php class Json implements SerializerInterface { public function serialize($data) { $result = json_encode($data); if (false === $result) { throw new \InvalidArgumentException(‘Unable to serialize value.’); } return $result; } /** * {@inheritDoc} * @since 101.0.0 */ public function unserialize($string) { if($this->is_serialized($string)) { $string = $this->serialize($string); } $result = json_decode($string, true); if (json_last_error() !== JSON_ERROR_NONE) { throw…

Disable URL redirection from catalog to product view in case of the error “The requested qty is not available” when adding too much products to cart

I can’t figure where to find the code displaying “The requested qty is not available” and redirecting to the product URL when we add more product than the stock. [I’m using Magento 2.3.3 and custom theme and module] I want to do TWO things : Remove the href redirecting from the catalog to the product…