• Resolved VUUB

    (@vuubnet)


    Hello, first of all, thank you very much for this wonderful plugin. We would like to add a small feature to the plugin, is it possible? We want our customers to be able to purchase multiple gift packages on the payment page, how can we do this?

    Thank you very much,

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Pexle Chris

    (@pexlechris)

    Hi vuubnet,

    yes I think you can do it with custom PHP code.

    1. You need to add the extra fields in checkout. You can use our hook tgpc_wc_gift_wrapper_checkout_field_after with your own callback that will print the input. For this scope, you can copy Tgpc_Wc_Gift_Wrap_Public::tgpc_add_gift_checkbox_on_checkout() and change only the key (tgpc_enable_checkout_gift_wrapper by default)
    2. You need to save the fee in the $cart. This you can do it with action woocommerce_cart_calculate_fees and save the value to the $cart. You can copy function Tgpc_Wc_Gift_Wrap_Public::tgpc_add_gift_wrapper_fee() and change only the key (tgpc_enable_checkout_gift_wrapper by default)
Viewing 1 replies (of 1 total)
  • The topic ‘Being able to select the number of gift packages’ is closed to new replies.