• Resolved foots

    (@foots)


    Hi,

    I purchased Booster for Woocommerce and I’m trying to get the PDF module to pull data from some custom product fields.

    I would l like the fields to only show on the product admin page and not to be shown on the front end.

    I’ve tried adding the custom fields using the standard Woocommerce method, by adding code to the functions.php file. I can add the fields, but no data is pulled into the pdf.

    I’ve also tried using Fields Factory to create the custom fields, I set the fields to meta and tried pulling the meta fields into the PDF using the booster shortcode. I can see the metadata on the product admin page.

    I also tried just using the Booster custom product field but no success either.

    For the custom fields I’ve used:
    [wcj_order_checkout_field field_id=”custom_wcj_checkout_field_1″]
    [wcj_order_custom_field name=”wccaf_annual_premium”]
    [wcj_product_custom_field name=”annual_premium”]

    Could you tell me where I’m going wrong or how I can make this function work, please?

    Many thank.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter foots

    (@foots)

    Hi,

    I’m wondering if you had a solution for this?

    Many thanks.

    Hi,

    Sorry for the delay.

    To add Booster’s custom checkout fields please try this:

    [wcj_order_checkout_field field_id="billing_wcj_checkout_field_1"]

    You can check the exact field_id in “WooCommerce > Settings > Booster > Cart & Checkout > Checkout Custom Fields” (below the “Enable” checkbox for each field).

    As for fields created with other plugins, you can try playing a little with the name (i.e. adding billing_ at the beginning) or you can also try using another Booster’s shortcode [wcj_order_meta] (https://booster.io/shortcodes/wcj_order_meta/).

    Hope I made it a little more clear and please let me know if you have nay questions.

    Best regards,
    Tom

    Thread Starter foots

    (@foots)

    Hi Tom,

    Thanks for your reply.

    I tried the solution you posted here and in the email and unfortunately, the info would not push through to the order meta.

    As the site will be selling insurance we need to change premiums etc on renewal, this is now done with Custom Order Fields. I can now enter custom data into the order and push that through to the PDF using Booster Plus.

    Is there a way to rename the custom document? So that the button to create the document shows Policy Certificate rather than Custom Document #1?

    Many thanks for your help.

    Thread Starter foots

    (@foots)

    Closing post.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Info to PDF’ is closed to new replies.