templaza / templaza-framework

TemPlaza Framework - Wordpress Plugin
GNU General Public License v2.0
2 stars 1 forks source link

View cart don't work for Probike #19

Closed AzizVorrez closed 7 months ago

AzizVorrez commented 7 months ago

Hello I bought your Probike theme.

And I have a problem.

Urgent for me to solve it.

When I want to visit the ViewCart page, I get the following error: Capture d'écran 2024-03-09 201648

Please resolve it,

AzizVorrez commented 7 months ago

Problem: Fatal error occurring when calling the is_type() method on an undefined product object, resulting in an interruption on the WooCommerce shopping cart page.

Solution implemented: We've added a check to ensure the existence of the product object before calling the is_type() method. This prevents the fatal error from occurring and ensures that the code works correctly even when the product information is not appropriately available.

Pull request validation request: Please review this change and merge it with the main repository. This will resolve the issue encountered by other users and ensure a smoother user experience when navigating the shopping cart page in WooCommerce.