WPIntell

Source evidence

An error occured

YITH WooCommerce Gift Cards · support · 2026-06-07T07:55:00+00:00

complaintsentiment
highseverity
0.97relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
hidegandras unresolved
Hello, the plugin used to work fine, now it only gives an error message saying: An error occurred while adding the product to the cart. I checked the logs, console, nothing is shown to trace back to the issue. The page I need help with: [ log in to see the link] I managed to make a hotfix, by replacing if ( isset( $_POST['add-to-cart'] ) ) {//phpcs:ignore WordPress.Security.NonceVerification $cart_item_data['ywgc_product_id'] = absint( $_POST['add-to-cart'] );//phpcs:ignore WordPress.Security.NonceVerification } elseif ( isset( $_REQUEST['ywgc_product_id'] ) ) {//phpcs:ignore WordPress.Security.NonceVerification $cart_item_data['ywgc_product_id'] = sanitize_text_field( wp_unslash( $_POST['ywgc-template-design'] ) );//phpcs:ignore WordPress.Security.NonceVerification } with if ( isset( $_POST['add-to-cart'] ) ) { $cart_item_data['ywgc_product_id'] = absint( $_POST['add-to-cart'] ); } elseif ( isset( $_REQUEST['ywgc_product_id'] ) ) { $cart_item_data['ywgc_product_id'] = absint( $_REQUEST['ywgc_product_id'] ); } elseif ( isset( $_REQUEST['product_id'] ) ) { $cart_item_data['ywgc_product_id'] = absint( $_REQUEST['product_id'] ); } in class-yith-cart-checkout.php

Comments

1 shown
hidegandras 2026-06-07T10:19:00+00:00

I managed to make a hotfix, by replacing if ( isset( $_POST['add-to-cart'] ) ) {//phpcs:ignore WordPress.Security.NonceVerification $cart_item_data['ywgc_product_id'] = absint( $_POST['add-to-cart'] );//phpcs:ignore WordPress.Security.NonceVerification } elseif ( isset( $_REQUEST['ywgc_product_id'] ) ) {//phpcs:ignore WordPress.Security.NonceVerification $cart_item_data['ywgc_product_id'] = sanitize_text_field( wp_unslash( $_POST['ywgc-template-design'] ) );//phpcs:ignore WordPress.Security.NonceVerification } with if ( isset( $_POST['add-to-cart'] ) ) { $cart_item_data['ywgc_product_id'] = absint( $_POST['add-to-cart'] ); } elseif ( isset( $_REQUEST['ywgc_product_id'] ) ) { $cart_item_data['ywgc_product_id'] = absint( $_REQUEST['ywgc_product_id'] ); } elseif ( isset( $_REQUEST['product_id'] ) ) { $cart_item_data['ywgc_product_id'] = absint( $_REQUEST['product_id'] ); } in class-yith-cart-checkout.php