Quantity option change link in "add to cart" button

Hello all,
Is there any way when i select a buy option in quantity and then the url in the “add to cart” button will change automatically into that option in shopitfy? Do i have to do any custom code?
Thank you.

Here is my public share link: https://preview.webflow.com/preview/planta-protein?utm_medium=preview_link&utm_source=designer&utm_content=planta-protein&preview=02dcf5abd0426274b0ac2873aa5159a5&pageId=5ebf260a2ce66601aa25f7d2&mode=preview
(how to access public share link)