Support » Plugin: Product Addons for Woocommerce » How can I change the position of the form.

  • Resolved Shahadat Shuvo

    (@shuvombm02)


    Hello. First of all, thank you so much for the awesome plugin.
    I want to change the position of the form. Definitely, the change will be inside the add-to-cart form. Do you have any shortcode or something else for the form? Right now the form is before the “add to cart” button. But, I want to show it before product variation. How can I do this? Please help me. Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rahul K

    (@rahulacodez)

    Hi,

    Sorry for the delay in response,

    add_filter('wcpa_display_hooks', function ($hooks) {
    $hooks["fields"] = ["woocommerce_after_add_to_cart_button", 10];
    return $hooks;
    });

    You can use this filter to change the hook value.

    Please note that form only works when the fields are inside <form></form> tag. ie, works only when form fields inside add to cart form tags.

    Thank you

    • This reply was modified 2 months, 3 weeks ago by Rahul K.
    Plugin Support Rahul K

    (@rahulacodez)

    Hi,
    We didn’t got any reply from your side for past 6 days.
    We hope that issue with our plugin is resolved.

    Please feel free to contact us if you have further queries, by submitting a new ticket.

    Thank You!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.