• Resolved maniegrove

    (@maniegrove)


    Hi,

    Thanks for your valuable plugin.

    I have created some fields with visible rule based on another select option value. It’s working perfectly as i expected. But if i not selected to visible rule based field, still it appear in checkout page with first option value.

    So what we need is, Fields which i chosen to visible only display in checkout page.

Viewing 1 replies (of 1 total)
  • Thread Starter maniegrove

    (@maniegrove)

    Hi,
    I found solution for that. If any field selected by user only display/added on checkout/order page/email and if not chosen doesn’t add it.

    Solution (src->Woocommerce->Product.php):
    Just additional condition should be added in condition checking,

    if (isset($cart_item[‘wckalkulator_fields’][$name]))
    to
    if (isset($cart_item[‘wckalkulator_fields’][$name]) && $cart_item[‘wckalkulator_fields’][$name] != ”)

    if (isset($order_fields[$name]))
    to
    if (isset($order_fields[$name]) && $order_fields[$name]!=”)

Viewing 1 replies (of 1 total)
  • The topic ‘Disable Invisible Field Values In Checkout Page’ is closed to new replies.