Can a Shopify buy button be a URL link instead of HTML code?

I think this is going to be a long shot and I think I know the answer but there are a lot of clever guys and gals out there. Is it possible to have a Shopify buy button as a URL link instead of html code for a button?

We have created editable forms using GRID which allows a visitor to the quantities they will need to complete a project. To save the visitor hassle of having to find each product page and add the correct quantity to the cart we’d like them to be able to do so straight from the form with a link that says ‘add this item to cart’. The limit with GRID is that it is an interactive spreadsheet tool so not really designed to be a web page as such so we can’t add html code. We can however add links. Hence the original question, is it possible to have a buy button as a url link?

If you need an idea of what we are building take a look at the page below and click on the ‘quantity calculator’ tab:

https://advancedacoustics-uk.com/collections/soundproofing-sheet-materials/products/silentboard-18mm-thick-fibre-cement-floorboard

We want a link after each product listed in the materials required section.

https://community.shopify.com/topic/613702

Otherwise if you need to do things before checkout you need to build a custom scheme where you give them a url and that gets interpreted and acted upon on that page to fill out forms or set flags, etc using javascript.

No “buy button” needed just make a regular old button link.

Also see buy button js, or the js buy sdk

https://shopify.dev/custom-storefronts/tools/buy-button

https://shopify.dev/custom-storefronts/tools/js-buy

That’s perfect, thank you @PaulNewton Next questions is, where can do I fInd the product ID?

I have tried looking for the ID here but the two sets of numbers I think could be it don’t work

https://advanced-acoustics.myshopify.com/admin/products/4895401083019.xml