Archived topic
Block Element Hook to Check Out Page, which location to use?
3 replies · Started by melvin on March 30, 2021
Hi,
I'm trying to hook [woocommerce_review_order_after_submit] a Block Element to Woocommerce Check out form.
Problem: Location I have to choose entire site only the block element appear on check out form, if i were to choose [page - check out page] the block element doesn't appear.
https://imgur.com/a/3cxL5Rs
Could you please advise what location i have to choose to so that this block element appear on the woocommerce check out form?
Using entire site might be causing performance issue.
TQ
Melvin
Hi there,
i can't see an issue with using the entire site location. This just eliminates any conditions from the element. As that Hook only exists on the checkout form template, the function ( block element ) you're adding will only ever get a callback on the Checkout page.
Hi David,
Thanks for your response.
I will stick with entire site then.
TQ and have a nice day :)
Regards,
Melvin
You're welcome