Repository Forums Support WooCommerce Extended Coupon Features PRO Moving free gift options cart and checkout hooks

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #4534

    Hello Great plugin!

    I’d like to move the free products select to be on top of the cart and checkout page.

    I found the hook :

    //Frontend hooks for ‘Select free gift’-form
    add_action( ‘woocommerce_checkout_before_customer_details’, array( $this, ‘render_checkout_select_free_product’ ) );
    add_action( ‘woocommerce_cart_contents’, array( $this, ‘render_cart_select_free_product’ ) );

    and have changed it to:

    add_action( ‘woocommerce_before_cart‘, array( $this, ‘render_cart_select_free_product’ ) );

    This moved the free gift select to the top of the page which is great but unfortunately now it doesn’t work because the cart doesn’t update anymore after the free gift is selected.

    You can see for yourself here with this link to our store:

    this link will automatically add the coupon to the cart but you might need to add something to the cart like this product for example:

    Also for some reason the select free gift options do not show up on the checkout page 🙁

    Are you able to help us out with this?


    The coupon selection elements must be within form.woocommerce-cart-form, otherwise the data won’t be sent when pressing ‘Update cart’.

    I do see the selection elements appear on your checkout page. Please note that they’re only displayed on the checkout page if no selection has been made yet.


    Is it working as expected now?

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