• Resolved JamesBates

    (@jamesbates)


    The wccpf_before_field_start and wccpf_after_field_end actions are not wrapping the fields properly. They are being added to wccpf-fields-container but all my fields are in the wccpf-fields-group-1 element.

    I am using a variable product.

    Here is a screenshot of the html:

    View post on imgur.com

    • This topic was modified 2 years, 8 months ago by JamesBates.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Saravana Kumar K

    (@mycholan)

    I agree that its poorly designed.
    Everything is reworked with our upcoming release.

    Meanwhile, pls use wccpf_before_fields_renderingfilter.

    function custom_field_wrapper($_field, $_html) {
        return '<div class="test">'. $_html .'</div>';
    }
    add_filter("wccpf_before_fields_rendering", "custom_field_wrapper", 10, 2);

    Let me know if that solved your issue.

    Thread Starter JamesBates

    (@jamesbates)

    That worked great.
    Thank you for the quick reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Field wrapper not working correctly’ is closed to new replies.