News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

How to get referrer from a form?

Started by timlight10, September 05, 2022, 02:48:51 PM

Previous topic - Next topic

timlight10

I have added a form with Admin > Design > Forms Manager for customers to request a custom quote on a product. It appears on all of my product pages. I would like to have the page URL where the form was submitted to come to me in the e-mail when user clicks submit.

I have tried to add a "hidden" field with Field Value $_SERVER['HTTP_REFERER'] but that did not work.

Any suggestions?

abolabo

try to use session. Set some value (current product url into $this->session->data['product_url']) and set it into your hidden field in the form
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

timlight10

Nope, that doesn't work either. I just get the text "$this->session->data['product_url']" back.

timlight10


Forum Rules Code of conduct
AbanteCart.com 2010 -