v1.2.2, M2.3.7: Fix error "This product does not exist" and the Add to Cart button greyed out

Created by Esther Nguyen, Modified on Wed, 20 Apr, 2022 at 2:29 PM by Esther Nguyen

ISSUE:

I updated the development website from Magento 2.3.4 to Magento 2.3.7. After that checkout for configurable products stopped working. Clicking product listing results in the error "This product does not exist." Navigating to product the dropdowns work but add to cart button is greyed out and nonfunctional. Disabling BSS Hideprice returns the website to functioning normally. 


SOLUTION:

After checking our local environment, we found two bugs existing in our Hide Price module as below:

- The error "This product does not exist": The module is checking if no child product exists, it will throw an error message without redirecting customers to the configurable product page to choose options like default.

- The error "add to cart button is greyed out": It happens when your configurable products have more than 1 dropdown option. 


To temporarily resolve the issue, please edit the following files: 

1. app/code/Bss/HidePrice/Plugin/Checkout/Model/Cart.php

 

2. app/code/Bss/HidePrice/view/frontend/web/js/configurable.js


Or download the files attached below to override the current files on your site.


If you need any further assistance, please feel free to contact us. We'd be happy to support you!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article