Title: Bug with Conditional Logic Option
Last modified: December 15, 2022

---

# Bug with Conditional Logic Option

 *  [qandm](https://wordpress.org/support/users/qandm/)
 * (@qandm)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/bug-with-conditional-logic-option/)
 * Hi, I found a bug related to the conditional logic option. I created two select
   fields, one always appears (is the **Gift Wrapping** select field) and the second(
   is the **The gift should be…** required select field) only appears when the user
   selects at least one option in the first field (**Gift Wrapping** select field).
   Apparently everything works fine, but if a user does not select **any** options
   and **adds** the product to the cart, but after that changes his mind and wants
   to select a “**Gift Wrapping**” option that should activate the **“The gift should
   be…**” required select field, this field no longer appears, and even though it
   is a required field (the second select) as it does not appear, the user can simply
   add it to the cart without the second selection.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbug-with-conditional-logic-option%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Facundo A.](https://wordpress.org/support/users/aranofacundo/)
 * (@aranofacundo)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-with-conditional-logic-option/#post-16317032)
 * Hi there,
 * Could you tell us which theme and version are you using so we can try to replicate
   the issue in our local installation?
 * In the meantime, I’ll suggest you try to disable the AJAX Add to cart feature
   of your plugin and then check if the issue is solved.
 * We’ll remain at your disposal.
 *  Thread Starter [qandm](https://wordpress.org/support/users/qandm/)
 * (@qandm)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-with-conditional-logic-option/#post-16382043)
 * Hello,
 * Thank you for your quick response. I am using the **Woodmart theme – Version:
   7.0.4**. I tried disabling the AJAX Add to Cart feature, but nothing changed.
 * Please let me know if you need more information. Thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug with Conditional Logic Option’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-product-add-ons/assets/icon-128x128.gif?
   rev=3142291)
 * [YITH WooCommerce Product Add-Ons](https://wordpress.org/plugins/yith-woocommerce-product-add-ons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-product-add-ons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-product-add-ons/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-product-add-ons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-product-add-ons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-product-add-ons/reviews/)

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [logic](https://wordpress.org/support/topic-tag/logic/)
 * [select](https://wordpress.org/support/topic-tag/select/)

 * 2 replies
 * 2 participants
 * Last reply from: [qandm](https://wordpress.org/support/users/qandm/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/bug-with-conditional-logic-option/#post-16382043)
 * Status: not resolved