If the form is embedded directly on the product page, you can usually capture the current product URL or product ID when the form is submitted rather than asking the user to enter it.
For example, on the client side, `window.location.href` will give you the current page URL. If you need the product name, it would be better to pass the product ID/name from the product page into a hidden form field and submit it along with the other form data.
In AbanteCart, I'd recommend using the product ID as the reliable value and looking up the product name afterward. URLs and product names can change, while the product ID should remain stable. If you're handling the submission in a controller, you can then use that ID to retrieve the corresponding product information.
For example, on the client side, `window.location.href` will give you the current page URL. If you need the product name, it would be better to pass the product ID/name from the product page into a hidden form field and submit it along with the other form data.
In AbanteCart, I'd recommend using the product ID as the reliable value and looking up the product name afterward. URLs and product names can change, while the product ID should remain stable. If you're handling the submission in a controller, you can then use that ID to retrieve the corresponding product information.

