AsTecModels wrote: ↑Thu Mar 26, 2026 11:35 pm
Can someone tell me where i am going wrong and how to move button?
-When using $_GET['oID'] nothing is returned, if you don't have "'oID=XYZ" in the URL. You could fetch it from the object, rather than from the URL.
-Does your URL, when the button is clicked, look like: "/envelope.php?oID=0"? - if there's no "oID" in the URL, you might want to adjust your link-function.
-I have already answered how to move the button - at least mostly, you would need to adjust the array, to move your button to the top of the infoBox.
AsTecModels wrote: ↑Thu Mar 26, 2026 11:53 pm
Is the error in the hook I have shown or would it be in the page I have created (envelope.php) ?
If you manually type in a known order_id on envelope.php (fx "/envelope.php?oID=3") - does it then work? If so, all you need is to make your hook pass the order_id in the URL (see above). If not, you have a problem in envelope.php
//Daniel