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
    Posts
  • #4534
    akaFLIP
    Participant

    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:
    https://es.sagear.com/cart?apply_coupon=TEST0293

    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:
    https://es.sagear.com/shop/5-face-shield-pack-2

    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?

    #4538
    Soft79
    Keymaster

    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.

    #4673
    Soft79
    Keymaster

    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.