• Another

    (@mackieinva)


    Hello,

    Great plugin! I was curious if there was an action/function I could use to display the fields in templates in third-party request a quote plugins? Or what would be the best way to go about including that information? I know this is outside of normal support since it includes outside plugins, but I was just curious if you could point me in the right direction. Thanks for the help!

    https://www.ads-software.com/plugins/wc-fields-factory/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Saravana Kumar K

    (@mycholan)

    Hi, yes you can embed these custom fields on any valid wordpress templates.

    Use the following filter to get all fields for a particular product.

    $all_fields = apply_filters( 'wccpf/load/all_fields', 'your-product-id' );

    Above filter return all the custom fields for a given product, You can iterate through $all_fields render these fields.

    refer /WP-PLUGINS/wc-fields-factory/classes/product-form.php LN:49 for rendering custom fields.

    Regards
    Sark

    Thread Starter Another

    (@mackieinva)

    Sorry, I worded it wrong. This does render the fields but I meant the value. So if I have a text field for “Number of Shelves” on a product and the user enters 5 I’d like it to display 5, not the field itself, that’s my mistake. Thanks for pointing me in the right direction! I’ll start looking into it more myself and let you know if I come to a solution on here before you get a chance to look at it.

    Update: The API has changed.

    Now, the filter is called

    wcff/load/all_fields

    Plugin Author Saravana Kumar K

    (@mycholan)

    Thank you @philippze

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using With Quote Request Plugin’ is closed to new replies.